How to combine multiple audio files using sox

I use this command to merge two audio files into one using sox:

sox end.mp3 -p pad 6 0 | sox - -m start.mp3 output.mp3 

I was wondering how can I combine 3 or 4 audio files using only one command instead of using "output.mp3" as the input of the next command, etc.?

I will really appreciate any help

+7
source share
2 answers

You can do this with a single sox call as follows:

 sox -m in1.mp3 in2.mp3 in3.mp3 out.mp3 

If you want to combine this with the effect of the pad, you need to be clearer about what you want.

+6
source

To combine the mixture and effects (gasket, trim, etc.), use the following:

 sox -m "|sox end.mp3 -p pad 6 0" start.mp3 output.mp3 

The general scheme:

 sox -m input1 input2 ... inputN output 

where inputX can be either a file name or a pipe in quotation marks

 "|sox end.mp3 -p pad 6" 
+3
source

All Articles