Bug 54889 - freeswitch: fs_tts: Некорректно определяет наличие аргумента текста для произношения
Summary: freeswitch: fs_tts: Некорректно определяет наличие аргумента текста для произ...
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: freeswitch-daemon (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Anton Farygin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-23 13:39 MSK by Artem Varaksa
Modified: 2025-06-23 13:44 MSK (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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