@d22

Sox stdin stdout как направить поток в SOX?

Как направить поток в SOX. Вроде так можно , но как?
Вот пример с Lame работает
arecord -v -f cd -t raw | lame -r - output.mp3
а с sox не работает.
Кто победил подскажите
  • Вопрос задан
  • 1188 просмотров
Решения вопроса 1
BuriK666
@BuriK666
Компьютерный псих
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.

sox --help
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; e.g. with synth effect
-p, --sox-pipe Alias for `-t sox -
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы