Merge 2 audio files in sox

Ellen S picture Ellen S · Feb 26, 2012 · Viewed 31.3k times · Source

I am trying to merge 2 wave files into one file. The 2 files should start playing at the beginning of the new file. Independently of sound length. Running the following command does not give me this result.

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

Are there other ways of achieving this through sox or other command line libraries?

Answer

Giuseppe picture Giuseppe · Jun 30, 2012

just change -M with -m

-M = merge
-m = mix