I need to convert MP3 audio to WAV audio. I've done a fair amount of research and it looks like LAME can do the job for me. The converted WAV audio needs to be 16-bit mono at 11025Hz. I'd also preferably like to lower the volume by ~20dB. Can this be done with LAMe on the command line? 31. Try ffmpeg: ffmpeg -i in.3gp -c:a libmp3lame output.mp3. See also: Encoding VBR (Variable Bit Rate) mp3 audio. If you are on Ubuntu, you can install avconv instead of ffmpeg, since Ubuntu ships an outdated version of the latter. Share. Improve this answer. 1 Answer. Sorted by: 3. Use python3 instead of python2.7 (python3 command) What I does for it work. convert.py. from pydub import AudioSegment sound = AudioSegment.from_mp3 ("test.mp3") sound.export ("test.wav", format="wav") Pydub installation: pip3 install pydub sudo apt-get update sudo apt-get install software-properties-common sudo add-apt MIDI Creator is a web-based application that can convert sound into MIDI, both sound from files and sound from a microphone directly. MIDI Creator periodically samples the sound, analyzes the frequency, then creates a MIDI notation according to the frequency, volume and duration for that note. midi music-composer midi-files sound-to-midi audio Converting one file. Open cmd. Used cd to navigate to the folder with the mp3. Run the following code: ffmpeg -i "C:\path\songname.mp3" -acodec pcm_s16le -ac 1 -ar 16000 output.wav; This will generate a new .wav file on the current folder. Converting as batch. Open a new text file (notepad). Paste the following code: I just found the way to calculate the bitrate for WAV files here and used that. Translating it into python and pydub, and assuming the pydub object is called wav you would get that: bitrate = str ( (wav.frame_rate * wav.frame_width * 8 * wav.channels) / 1000) Then you could pass it forward into the export function and not set it manually. I wish to convert these files to .mp3 (or really any standard audio format that other software will recognize). The codec has been provided to me as a .msi file, which allows me to install the codec in Windows. Running the installer creates a .acm file (in its own folder, not in the standard codec location which seems to be c:\windows\system32 ). {"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"convert2wav.py","path":"convert2wav.py","contentType":"file"}],"totalCount":1 IiNPOnM.