sox -m input1.wav input2.wav output.wav

Category: Media & Conversion

sox -m input1.wav input2.wav output.wav

Mix two audio files together

Mixes input1.wav and input2.wav together so they play simultaneously. -m selects the mix combiner, and sox auto-balances levels to avoid clipping. Related: without -m the files are concatenated instead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.