-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fix] Replace mispronounced words in TTS using hack method #350
[Fix] Replace mispronounced words in TTS using hack method #350
Conversation
p.s. 建议在代码中标明加载的json的出处。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Im curious on whether this hack has been verified to not affect the output quality by any means. By swapping words, you are scrambling up phrases into meaningless indiv characters. By right this should affect the linguistic ability of the model. |
It is better than no sound if the model cannot recognize that character. We will remove (or shrink) this replace if the model is updated and it can recognize new characters. |
The replacements only target incorrectly output characters. In modern novels, the replacement rate is low. For example, in "Twenty Thousand Leagues Under the Sea":
Top 10 Replaced Characters:
In ancient novels, the rate is higher. For example, in "Romance of the Three Kingdoms":
Top 10 Replaced Characters:
|
This PR addresses the issue of mispronounced words in the TTS system by implementing a hack method. The main idea is as follows:
For example:
The replacement rule file ChatTTS/homophones_map.json contains 16,000 entries.
Rule creation process:
Corpus used: Tencent AI Lab Embedding Corpora for Chinese and English Words and Phrases
Limitations:
中文:
本次PR通过使用hack办法解决TTS系统中读错、漏读的问题。主要的构思如下:
例如:
替换规则文件 ChatTTS/homophones_map.json 包含1.6万条规则。
规则制作流程:
当前版本所使用的词库:腾讯AI实验室中英文词语嵌入语料库
缺陷: