Coqui粤语语音合成

By admin , 25 九月, 2025

Coqui是一个支持多语言、效果出色的深度学习TTS。本人实现了粤语的支持,并发布了模型:https://huggingface.co/hgneng/coqui-cantonese-model,如有朋友训练出效果更好的模型,欢迎在huggingface上发布并留言。下面是使用方法:

 

  1. 下载源代码
git clone https://github.com/hgneng/TTS
  1. 确认Python版本
python -V

如果不满足python >= 3.9, < 3.12,请使用conda安装符合条件的Python环境

  1. 安装Python依赖库
cd TTS
pip install -e .[all,dev]
  1. 下载粤语模型
cd ..
git clone https://huggingface.co/hgneng/coqui-cantonese-model
  1. 合成示例
cd coqui-cantonese-model
tts --model_path . --config_path config.json  --language_idx yue --out_path demo.wav --speaker_wav ./speaker.wav --text "呢个系一个粤语语音合成示例"

标签

评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
CAPTCHA
请输入"Drupal"
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

最新内容