1

I have two audio files one is 10 secs long and other is 17 secs long, I want to mix the files together so that the 17 sec file starts playing from the start, while the 10 sec file will start after 7 seconds into the 17seconds file. How can I do this?

I followed this link, I also tried other commands mentioned in Sox FAQ, question number 7, but I am unable to mix two files by providing an offset, I also tried the command in command line and the error is same.

The error which I see is

option ` ' not recognized

and the command I used is

sox -m drums.wav "|sox beats.wav -p pad 1.5" out.wav  

Edit: It seems to me that the pipe operator "|" is broken, how do I fix this?

My problem is exactly the same as mentioned in this forum

Community
  • 1
  • 1
Arif Nadeem
  • 8,136
  • 7
  • 42
  • 77

1 Answers1

2

I think there's an issue with ". Try

sox -m drums.wav '|sox beats.wav -p pad 1.5' out.wav
audionuma
  • 323
  • 1
  • 9
  • 15
  • Thanks for answering it makes no difference, I am trying the command in windows console and the error I get is "error writing output file: Broken pipe" – Arif Nadeem Dec 27 '12 at 09:14
  • Sorry, in fact this does work with bash on Mac OS X.8. I don't have a Windows system. maybe a clue here : http://stackoverflow.com/questions/1200235/how-to-pass-a-quoted-pipe-character-to-cmd-exe – audionuma Dec 27 '12 at 11:10
  • which version of sox are you using? I am using 14.4.0 – Arif Nadeem Dec 27 '12 at 11:31
  • I have two audio files one is 10 secs long and other is 17 secs long, I want to mix the files together so that the 17 sec file starts playing from the start, while the 10 sec file will start after 7 seconds into the 17seconds file. How can I do this? – Arif Nadeem Dec 27 '12 at 11:47