Files
tldr/pages.zh/common/tts.md

28 lines
818 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 语音合成
> 合成语音。
> 更多信息:<https://github.com/coqui-ai/TTS#command-line-tts>。
- 使用默认模型运行文本转语音将输出写入“tts_output.wav”
`tts --text "{{text}}"`
- 列出提供的模型:
`tts --list_models`
- 按索引查询模型信息:
`tts --model_info_by_idx {{model_type/model_query_idx}}`
- 按名称查询模型信息:
`tts --model_info_by_name {{model_type/language/dataset/model_name}}`
- 使用其默认声码器模型运行一个文本到语音模型:
`tts --text "{{text}}" --model_name {{model_type/language/dataset/model_name}}`
- 运行您自己的文本到语音模型使用Griffin-Lim声码器
`tts --text "{{text}}" --model_path {{path/to/model.pth}} --config_path {{path/to/config.json}} --out_path {{path/to/file.wav}}`