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

合成语音遇到错误时,是否可以不退出,而是跳过或者用替代符略过这一句 #1062

Open
SaphireStar opened this issue May 7, 2024 · 2 comments

Comments

@SaphireStar
Copy link

我遇到的问题是,在合成一份几千字长文本中,如果遇到某些英文+特定标点符号的组合,容易在Encode时报错,这时候只能修改掉那一段文本,重新生成一次。但几千字的文本,合成时间长达十几分钟,如果文章内不止一个解析错误,反复合成,耗时巨大

@BOCEAN-FENG
Copy link

直接找到所有英文+特定标点符号组合,然后切分出好几段不就可以了

@SaphireStar
Copy link
Author

直接找到所有英文+特定标点符号组合,然后切分出好几段不就可以了

关键我也不知道他哪些会出问题啊,比如“3.1 string”会有问题,“(nacos1,” 也会有问题。但是别的遇到括号的他知道跳过,遇到点号的他知道是句子结尾。不是很理解python解析哪里犯病了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants