Шаги ==== 1. # apt-get install -y freeswitch-daemon 2. # fs_tts 3. # echo "1" | fs_tts file.wav 2 4. # echo "1" | fs_tts file.wav 2 extra-arg-so-it-works Фактический результат ===================== > # fs_tts > Usage: fs_tts [options] output [text] > > The output must end in the format, e.g., myfile.wav myfile.mp3 > -c path Path to the FS configurations. > -k path Path to the FS log directory > -l module[,module] Load additional modules (comma-separated) > -m path Path to the modules. > -r rate sampling rate > -v verbose > -e TTS engine > -V TTS voice > # echo "1" | fs_tts file.wav 2 > Couldn't open tts://flite|kal|1 > # echo "1" | fs_tts file.wav 2 extra-arg-so-it-works > Couldn't open tts://flite|kal|2 Ожидаемый результат =================== * Вне зависимости от наличия лишних аргументов всегда выбирается либо stdin, либо аргумент текста. * Лишние аргументы должны вызывать ошибку. Воспроизводимость ================= Воспроизводится на виртуальных машинах: [sisyphus] ALT Server 11.0 x86_64 freeswitch-daemon-1.10.12-alt4.x86_64 [p11] ALT Server 11.0 x86_64 freeswitch-daemon-1.10.12-alt2.x86_64