Skip to content
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

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

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Conversation

IrisSally
Copy link
Contributor

原因找到了,最新版的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

@github-actions github-actions bot changed the base branch from main to dev October 12, 2024 11:13
@fumiama fumiama linked an issue Oct 15, 2024 that may be closed by this pull request
@fumiama fumiama added bug Something isn't working algorithm Algorithm improvements & issues labels Oct 15, 2024
Copy link
Member

@fumiama fumiama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@fumiama fumiama enabled auto-merge (squash) October 15, 2024 15:03
@fumiama fumiama merged commit 8e6e6c9 into 2noise:dev Oct 15, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
algorithm Algorithm improvements & issues bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

说不出来“啊”这个字
3 participants