I'm new to audio programming and I'm using NAudio to convert an mp3 file on my web application backend. The NAudio conversion is handled within an ApiController. When I run my application locally the file converts as it should, however when I publish the website to Azure I get an error. I debugged the site and saw that the error was being thrown when reading in the file.
Mp3FileReader reader = new Mp3FileReader(filePath);
I get the error NoDriver calling acmFormatSuggest
. This is just with reading in the file even before the conversion.
I have searched online for the error but none of the answers solve my problem. I tried the solution provided here amongst others but none seem to work for my issue.
Can anyone provide me with a reason as to why this would work on my local IIS website but not on my azure website? And how can I fix this issue?
For future readers, the NAudio conversion did not work for me on both the Azure website and the Azure web role. I ended up using the CloudConvert api and a .NET Wrapper to do the audio conversions. This worked great!
There is however an increased cost for uploading a greater number of files.