Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bin): log to stdout in cli tools #217

Merged
merged 2 commits into from
Dec 17, 2024
Merged

fix(bin): log to stdout in cli tools #217

merged 2 commits into from
Dec 17, 2024

Conversation

eginhard
Copy link
Member

Send logs from the CLI tools in TTS.bin to stdout, so that the outputs are available for further downstream processing:

tts --list_models | grep vits

For TTS/bin/synthesize.py, if --pipe_out is set, log to stderr instead because
then only the output audio stream should be on stdout, e.g. to pipe it to aplay.

Fixes #214

This way the outputs are available for further downstream processing, e.g. with
grep. For TTS/bin/synthesize.py, if --pipe_out is set, log to stderr because
then only the output audio stream should be on stdout, e.g. to pipe it to aplay.
@eginhard eginhard merged commit 370fb1d into dev Dec 17, 2024
35 checks passed
@eginhard eginhard deleted the stdout branch December 17, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] tts --list_models writes to stderr instead of stdout
2 participants