D
D
d222016-10-19 13:04:12
linux
d22, 2016-10-19 13:04:12

Sox stdin stdout how to direct stream to SOX?

How to direct the stream to SOX. It seems so possible, but how?
Here is an example with Lame running
arecord -v -f cd -t raw | lame -r - output.mp3
does not work with sox.
Who won tell me

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2016-10-19
@d22

man sox

Special Filenames
The following special filenames may be used in certain circumstances in place of a normal filename on the command line:
-
SoX can be used in simple pipeline operations by using the special filename '-' which, if used in place of an input filename , will cause SoX will read audio data from 'standard input' (stdin), and which, if used in place of the output filename, will cause SoX will send audio data to 'standard output' (stdout). Note that when using this option, the file-type (see -t below) must also be given.

SPECIAL FILENAMES (infile, outfile):
- Pipe/redirect input/output (stdin/stdout); may need -t
-d, --default-device Use the default audio device (where available)
-n, --null Use the `null' file handler; eg with synth effect
-p, --sox-pipe Alias ​​for `-t sox -

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question