sox mix nested scripts on amazon ec2 rhel linux

Posted by Ray on Super User See other posts from Super User or by Ray
Published on 2012-05-03T19:14:59Z Indexed on 2012/10/26 23:05 UTC
Read the original article Hit count: 267

Filed under:
|
|
|
|

I'm trying to use "sox" to mix some audio files.

The command works great on my Mac terminal

sox -m audio.wav "| sox upload.wav -p trim 2 1 pad 6" final.wav

This mixes (not concatenate) audio.wav and a section of upload.wav from the 2nd second to the 3rd second and adds 6 seconds of padding in the front, and outputs to final.wav

Now the problem is, the SAME EXACT command does NOT work my Amazon EC2 RHEL box. (sox is installed correctly). I get the following error

sox soxio: Can't open input file `| sox upload.wav -p trim 2 2 pad 6': No such file or directory

For some reason RedHat doesn't like the double quotes. Even though it is documented to be used this way.

Thanks for your help!

© Super User or respective owner

Related posts about bash

Related posts about script