Converting MP3 to WAV using mpg123 I used a command line tool called mpg123 to convert the MP3 files to WAVs. To get mpg123 I opened a terminal window in Linux Mint and typed the following: sudo apt-get install mpg123 The following command shows how to convert a single MP3 to a WAV file: mpg123 -w "02 Big Fat Rat.wav" "02 Big Fat Rat.mp3" SoundConverter is a nifty audio file converting software for Linux Gnome. Here’s how to install the latest version via PPA in Ubuntu. SoundConverter is a simple and fast Gnome sound conversion software with multi-threading support. It reads anything GStreamer can read, and writes to Opus, Ogg Vorbis, FLAC, WAV, AAC, and MP3 files. If you have lots of files to convert, you might want to do that in parallel: find . -name '*. wav' -type f -print0 | parallel -0 ffmpeg -i {} -c:a libfdk_aac -b:a 96k {.}.m4a Check this doc for how to work with parallel. If you don't have the tool, install it with brew install parallel. Scott's answer is perfectly fine too. The commands to Convert WAV to MP3 using ffmpeg is: ffmpeg -i track01.wav -acodec mp3 track01.mp3. You can also specify the bitrate of the MP3 with the -ab flag. ffmpeg -i track01.wav -acodec mp3 -ab 64k track01.mp3. That is all you need to do to convert WAV to MP3 in the Linux shell or command prompt. I want to send it to another audioplayer directly (also using subprocess) and it supports only wav files, I just find it more convenient to do it on the fly instead of converting everything and then play wav file(s). The player I send the avi file does support input on stdin. – . 1 Answer Sorted by: 116 Using ffmpeg - installed by default ffmpeg -i input.mp3 output.wav Alternative - mpg123 sudo apt-get install mpg123 Then to convert mp3 to wav (using -w option) mpg123 -w output.wav input.mp3 Share Improve this answer Follow answered May 28, 2017 at 18:07 TellMeWhy 17.3k 39 96 142 Converting MP3's to WAV will not and can not possibly restore any of the audio quality that has already been lost, there's no sane support for metadata / tags which will be lost, and file size will grow massively (aprox 7-12 times larger files on average, depending on bitrate. Tiny portable audio converter for Windows (WAV FLAC MP3 OGG APE M4A AAC) Fast audio player, recorder, converter for Windows, Linux & Android. lame -b 160 -h second_file.wav converted.mp3. output file info : General Complete name : converted.mp3 Format : MPEG Audio File size : 303 KiB Duration : 15 s 480 ms Overall bit rate mode : Constant Overall bit rate : 160 kb/s Writing library : LAME3.99r Audio Format : MPEG Audio Format version : Version 1 Format profile : Layer 3 Duration : 15 If it's just raw (i.e. no header) audio, this is a simple A-law file. Change the extension to either .al or .la depending on which way round your bits are (.la is inverse bit order), then try again. If your audio was in a different "container format" (i.e. .au, .gsrt, .maud, .prc or .voc for example) then the file extension should already be

convert mp3 to wav linux