Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
原因找到了,最新版的ChatTTS不能读出“啊”和“呃”这两个字,我之前给这个bug提了个issue #745
现在原因找到了
WeTextProcessing进行处理时,会默认去除“啊”和“呃”这两个字,但它提供了选项“remove_interjections“,因此只需要在实例化Normalizer时,将remove_interjections设为False,“啊”和“呃”就不会被去除,并且interjections一共就包含“啊”和“呃”这两个字,因此将remove_interjections改为False并不会影响其他字符。
加上“remove_interjections=False”,就能顺利读出“啊”和“呃”这两个字,从而让ChatTTS有别与其他TTS。
但需要注意的是,首次运行WeTextProcessing时,会创建两个fst文件,若要生效,需要删除这两个文件,然后再启动项目,才能生成新的fst文件
WeTextProcessing项目指引: