2023-01-24 02:51:52 +00:00
|
|
|
# tts
|
|
|
|
|
2023-05-30 19:37:28 +01:00
|
|
|
> Synthesize speech on the command-line.
|
2023-01-24 02:51:52 +00:00
|
|
|
> 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}}`
|