add tips: pinyin usage

This commit is contained in:
shujingchen
2025-09-16 13:10:40 +08:00
parent 7b4f0880d9
commit 10c1fcd3ad
2 changed files with 25 additions and 0 deletions

View File

@@ -363,6 +363,18 @@ emo_text = "你吓死我了!你是鬼吗?"
tts.infer(spk_audio_prompt='examples/voice_12.wav', text=text, output_path="gen.wav", emo_alpha=0.6, use_emo_text=True, emo_text=emo_text, use_random=False, verbose=True)
```
> [!TIP]
> **Pinyin Usage Notes:**
>
> IndexTTS2 still supports mixed modeling of Chinese characters and Pinyin.
> When you need precise pronunciation control, please provide text with specific Pinyin annotations to activate the Pinyin control feature.
> Note that Pinyin control does not work for every possible consonantvowel combination; only valid Chinese Pinyin cases are supported.
> For the full list of valid entries, please refer to `checkpoints/pinyin.vocab.`
>
> Example:
> ```
> 之前你做DE5很好所以这一次也DEI3做DE2很好才XING2如果这次目标完成得不错的话我们就直接打DI1去银行取钱。
> ```
### Legacy: IndexTTS1 User Guide

View File

@@ -294,6 +294,19 @@ emo_text = "你吓死我了!你是鬼吗?"
tts.infer(spk_audio_prompt='examples/voice_12.wav', text=text, output_path="gen.wav", emo_alpha=0.6, use_emo_text=True, emo_text=emo_text, use_random=False, verbose=True)
```
> [!TIP]
> **拼音使用注意事项:**
>
> IndexTTS2依然支持中文字符与拼音混合建模。
> 在使用时,如果需要精确的发音控制,请输入包含特定拼音标注的文本来触发拼音控制功能。
> 需要注意的是:拼音控制并不是对所有声母韵母(辅音、元音)组合都生效,系统仅保留中文合法拼音的发音。
> 具体合法情况可参考项目中的`checkpoints/pinyin.vocab`文件。
>
> 参考样例:
> ```
> 之前你做DE5很好所以这一次也DEI3做DE2很好才XING2如果这次目标完成得不错的话我们就直接打DI1去银行取钱。
> ```
### 旧版IndexTTS1使用指南
如果需要使用旧的IndexTTS1.5模型可以import旧模块