HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

tts — Synthesize speech. More information: <https://github.com/coqui-ai/TTS#command-line-tts>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
synthesizehttpscommandclittsinformationspeechmore

Problem

How to use the tts command: Synthesize speech. More information: <https://github.com/coqui-ai/TTS#command-line-tts>.

Solution

tts — Synthesize speech. More information: <https://github.com/coqui-ai/TTS#command-line-tts>.

Run text-to-speech with the default models, writing the output to "tts_output.wav":
tts --text "{{text}}"


List provided models:
tts --list_models


Query info for a model by idx:
tts --model_info_by_idx {{model_type/model_query_idx}}


Query info for a model by name:
tts --model_info_by_name {{model_type/language/dataset/model_name}}


Run a text-to-speech model with its default vocoder model:
tts --text "{{text}}" --model_name {{model_type/language/dataset/model_name}}


Run your own text-to-speech model (using the Griffin-Lim vocoder):
tts --text "{{text}}" --model_path {{path/to/model.pth}} --config_path {{path/to/config.json}} --out_path {{path/to/file.wav}}

Code Snippets

Run text-to-speech with the default models, writing the output to "tts_output.wav"

tts --text "{{text}}"

List provided models

tts --list_models

Query info for a model by idx

tts --model_info_by_idx {{model_type/model_query_idx}}

Query info for a model by name

tts --model_info_by_name {{model_type/language/dataset/model_name}}

Run a text-to-speech model with its default vocoder model

tts --text "{{text}}" --model_name {{model_type/language/dataset/model_name}}

Context

tldr-pages: common/tts

Revisions (0)

No revisions yet.