User avatar
ddwwcc
Posts: 7
Joined: Wed Jan 02, 2019 11:06 am
Contact: Website

Sox not behaving

Wed Jan 02, 2019 4:22 pm

Hi

I've got an odd fault with Sox: I can't get it to accept special filenames, so -n -d and -p are not accepted. I can record and play, as long as they don't involve a special file name, for instance, with a USB mic attached, these work:

Code: Select all

$ rec song001.ogg

Code: Select all

$ rec -n

Code: Select all

$ play song001.ogg
but this:

Code: Select all

sox −n output.wav synth 3 sine 300−3300
gives the error:

sox FAIL formats: can't open input file `−n': No such file or directory

and the thing I really want to do:

Code: Select all

rec −r 44100 −b 16 −e signed-integer −p \
     silence 1 0.50 0.1% 1 10:00 0.1% | \
     sox −p song.ogg silence 1 0.50 0.1% 1 2.0 0.1% : \
     newfile : restart
gives this error:

rec FAIL formats: sox FAIL formats: can't open input file `signed-integer': No such file or directory
can't open input file `−p': No such file or directory

Looks like it's got something to do with pipes not working, I think, but... *shrugs*

Any help much appreciated.

Return to “Graphics, sound and multimedia”