Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sox mix and delay

Tags:

sox

I am mixing audio using SOX.

the command SOX -m voice.wav audio.wav final.wav is what I am using.

My goal is to delay the voice.wav of 10 second, if I try to use delay 10.0 then I have double voice.

How to get right?

like image 433
Giuseppe Avatar asked Dec 10 '22 02:12

Giuseppe


2 Answers

http://sox.sourceforge.net/Docs/FAQ

There are a couple of options:

sox -M f2.wav f3.wav f1.wav out.wav delay 4 4 8 8 remix 1,3,5 2,4,6    

(assuming stereo), or

sox -m f1.wav "|sox f2.wav -p pad 4" "|sox f3.wav -p pad 8" out.wav     

The second way is probably better since it works with files with any number of channels.

like image 186
sequenceGeek Avatar answered Mar 21 '23 10:03

sequenceGeek


sox voice.wav pad 10 0
sox -m voice.wav audio.wav final.wav
like image 41
Sergey Dirin Avatar answered Mar 21 '23 10:03

Sergey Dirin