Pierow <pierow@xxxxxxxxxxx> wrote: > I am using -p to pipe a series of three SoX commands that generate three tones: > > play "|sox -n -p synth .276 sine 1200 gain -1" "|sox -n -p synth .276 > sine 900 gain -1" "|sox -n -p synth .380 sine 1200 gain -1" > > I would like to output the resulting three tones to a WAV file. I'm > sure that this is something that is easy to do but nothing that I have > tried seems to work. I have read the man page and searched through > the archives of the mailing list but I can't seem to find anything > that works with the piped commands. See the short SYNOPSIS at the top of the manpage, many people probably skip over it :) > Is there a way to tell direct this output to a file instead of playing > to system audio? Same as play, almost: sox "|sox -n -p synth .276 sine 1200 gain -1" \ "|sox -n -p synth .276 sine 900 gain -1" \ "|sox -n -p synth .380 sine 1200 gain -1" \ output.wav Basically, "play $INPUTS" is the same as "sox $INPUTS -t $FORMAT" So if you use alsa, the following should behave just like play did for you: sox "|sox -n -p synth .276 sine 1200 gain -1" \ "|sox -n -p synth .276 sine 900 gain -1" \ "|sox -n -p synth .380 sine 1200 gain -1" \ -t alsa ------------------------------------------------------------------------------ _______________________________________________ Sox-users mailing list Sox-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/sox-users