Convert a WAV (Asterisk recordings) to MP3

asteriskaudiosox

I have a large collection of WAVs. They are:

  • RIFF, little-endian
  • WAVE audio
  • GSM 6.10
  • Mono 8000Hz
  • effective bitrate of 13.6

I need to convert these to MP3. Current I am forced to send the file first through sox:

sox input.wav -s input-pcm.wav

Then through lame:

lame input-pcm.wav output.mp3

There are a couple of problems with this a 1MB file takes 5s and the MP3 sounds like crap. It's mostly intelligible, not really staticy, but just poor quality.

Has anyone successfully converted between this specific WAV and MP3 in a way that is fast and doesn't yield horrible sound quality? Thanks in advance.

Best Answer

You can try with ffmpeg:

ffmpeg -i file.wav file.mp3
Related Topic