![]() I verified that both approaches are using PCM 16-bit unsigned little endian, same sample rate, etc. Looking at the resulting wavfilename.wav data, I find it is totally different from what is in the Audacity-produced file. So I modified my Python script to first run ffmpeg to do the conversion, using: subprocess.call() All good, but, I now need to automate this and avoid using Audacity. To get the wav, I first used Audacity "by hand" and opened the mp3, then used "Export as WAV". (The script analyzes the wav file data in the form of numpy arrays for each channel.) That all works fine. I need to convert mp3 to wav files that will then be used by Python script.
0 Comments
Leave a Reply. |