ChatTTS icon indicating copy to clipboard operation
ChatTTS copied to clipboard

修复不能读出"啊"和"呃"的bug

Open IrisSally opened this issue 4 months ago • 0 comments

原因找到了,最新版的ChatTTS不能读出“啊”和“呃”这两个字,我之前给这个bug提了个issue #745 现在原因找到了

WeTextProcessing进行处理时,会默认去除“啊”和“呃”这两个字,但它提供了选项“remove_interjections“,因此只需要在实例化Normalizer时,将remove_interjections设为False,“啊”和“呃”就不会被去除,并且interjections一共就包含“啊”和“呃”这两个字,因此将remove_interjections改为False并不会影响其他字符。

加上“remove_interjections=False”,就能顺利读出“啊”和“呃”这两个字,从而让ChatTTS有别与其他TTS。

但需要注意的是,首次运行WeTextProcessing时,会创建两个fst文件,若要生效,需要删除这两个文件,然后再启动项目,才能生成新的fst文件

image

WeTextProcessing项目指引:

image

image

image

IrisSally avatar Oct 12 '24 11:10 IrisSally