merging mp3 files with sox
To merge multiple mp3 files into one, use sox like this:
sox –combine sequence input1.mp3 input2.mp3 … output.wav
I’m outputing to wav because if you try to output to mp3, you get
SoX was compiled without MP3 encoding support
which is already reported as bug #223783
Afterwards, to convert from wav to mp3, use lame:
lame input.wav output.mp3
or, to set output to mono, 48kbps, 44.1kHz, VBR:
lame -v -m m -B 48 -s 44.1 input.wav output.mp3

Hi, Sorry for my english.
Excelent post,
I´m looking for that,
But It do not work on windows say:
sox formats: no handler for file extension ‘mp3′
I’m reading the docs and it say:
SoX cannot be distributed with MP3 support.
Do you can help me.
I need it.
thanks.
jeison, looking at the description of sox (through “aptitude show sox”) I can see:
SoX is able to handle formats like Ogg Vorbis, MP3, WAV, AIFF, VOC, SND, AU, GSM and several more. Any format support requires at least libsox-fmt-base. Some formats have their own package e.g. mp3 read support is provided by libsox-fmt-mp3.
Have you installed libsox-fmt-mp3 ???
for those who want mp3 support for sox in windows.
mail me. I have a build. same issue here also output as wav
santhash – how can I get your email address? I’d love a copy of SoX with MP3 support, but I don’t know how to compile it myself. My email address is aaelghat at gmail dot com