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

api_v2 服务启动后,连续调用时,有时候第一句会变为上一次调用的最后一句 #1844

Open
Vocanic-eruption opened this issue Dec 12, 2024 · 2 comments

Comments

@Vocanic-eruption
Copy link

api_v2 服务启动后,连续调用时,有时候第一句会变为上一次调用的最后一句,请问各位有遇到这种情况吗?
比如第一次转换文本为:
['源文本:对,', '这就是我,', '万人敬仰的太乙真人,', '虽然有点婴儿肥,', '但也掩不住我逼人的帅气。']
第二次转换文本为:
['本文为澎湃号作者或机构在澎湃新闻上传并发布,', '仅代表该作者或机构观点,', '不代表澎湃新闻的观点或立场,', '澎湃新闻仅提供信息发布平台。']
但第二次播放的文本为:
'但也掩不住我逼人的帅气, 仅代表该作者或机构观点,', '不代表澎湃新闻的观点或立场,', '澎湃新闻仅提供信息发布平台。

@lishq
Copy link

lishq commented Dec 14, 2024

这是个bug,多线程请求特别容易复现。我在GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py的get_phones_and_bert方法加了个锁解决的。你可以试试

@Vocanic-eruption
Copy link
Author

这是个bug,多线程请求特别容易复现。我在GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py的get_phones_and_bert方法加了个锁解决的。你可以试试

感谢,我试一下

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