My set of WAVs looked like this:
Unfortunately, Debian ships with a SoX version which cannot output MP3s (The package "libsox-fmt-mp3" is only for SoX being able to handle MP3 as input).audio.wav
audio.w01
audio.w02
So I'm connecting SoX with Lame, using StdIn/StdOut pipes like this:
Code: Select all
sox audio.wav audio.w01 audio.w02 -r 44100 -b 16 -c 2 -t raw - | lame -s 44.1 --bitwidth 16 -r -b 192k - output.mp3
Important is to tell both sides (SoX and Lame) the properties of the raw audio stream. In this case it's "stereo" (=2 channels), "16 bits", "44100 Hz" sample rate.