Merge 2 audio files in sox

I am trying to combine 2 wave files into one file. 2 files should start playback at the beginning of a new file. Regardless of the length of the sound. Executing the following command does not give me this result.

  sox -M new_input.wav myrecording.wav output_test.aiff

Are there other ways to achieve this via sox or other command line libraries?

+7
source share
4 answers

just change -M with -M

-M = merge
-m = mix
+5
source

In cases like Calmar, he asks:

sox -m in1.wav in2.wav out.wav trim 0 `soxi -D in1.wav`

it dwells on the length of in1.wav, for cases that you know are shorter. Otherwise, just add a comparator.

+5
source

Heythere. =) :

sox file1 file2 file3

.

http://sox.sourceforge.net/sox.html

+1
source

'soxi -D in1.wav' gets the length of the file (in1.wav)

0
source

All Articles