Bug 54889

Summary: freeswitch: fs_tts: Некорректно определяет наличие аргумента текста для произношения
Product: Sisyphus Reporter: Artem Varaksa <varaksaaa>
Component: freeswitch-daemonAssignee: Anton Farygin <rider>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: at, cas, crux, ender, lav, ldv, mike, qa_viy, rider, shaba, viy
Version: unstable   
Hardware: x86_64   
OS: Linux   
See Also: https://bugzilla.altlinux.org/show_bug.cgi?id=47335

Description Artem Varaksa 2025-06-23 13:39:49 MSK
Шаги
====

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