Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

你好,我在测试英文tts生成的时候,他的速度很慢13-14s,但是在生成中文语音的时候却很快,1-2秒就生成好了,这正常吗? #50

Open
PLL-L opened this issue Nov 22, 2023 · 10 comments

Comments

@PLL-L
Copy link

PLL-L commented Nov 22, 2023

如图,cuda正常
image

@PLL-L
Copy link
Author

PLL-L commented Nov 22, 2023

我该如何改正,提升我的生成速度呢,谢谢

@PLL-L
Copy link
Author

PLL-L commented Nov 22, 2023

我找到了解决方法了,我尝试将frontend_en.py中的preprocess_english 模块直接调用,速度提升了许多
8e2dfa49e95b333c684c854e9b973b7

@PLL-L
Copy link
Author

PLL-L commented Nov 22, 2023

就是我想再问一下,这个模型的生成英文速度还能再快一点么?我该怎么做呢,将速度压缩在1s秒内呢?只要提升英文的生成速度就好了。十分感谢。

@syq163
Copy link
Collaborator

syq163 commented Nov 22, 2023

Thank you for the feedback. We have received reports that English inference is slower than Chinese, which is indeed strange. We will investigate the issue and make efforts to improve it.
After the modification, how many seconds will be required for English inference?

我找到了解决方法了,我尝试将frontend_en.py中的preprocess_english 模块直接调用,速度提升了许多 8e2dfa49e95b333c684c854e9b973b7

@PLL-L
Copy link
Author

PLL-L commented Nov 23, 2023

感谢您的反馈。我们收到报告说,英语推理比中文慢,这确实很奇怪。我们将调查该问题并努力改进它。修改后,英语推理需要多少秒?

我找到了解决方法了,我尝试将frontend_en.py中的preprocess_english 模块直接调用,速度提升了许多8e2dfa49e95b333c684c854e9b973b7

你好,在修改后,1-3秒,修改前:13-14秒

@PLL-L
Copy link
Author

PLL-L commented Nov 23, 2023

另外我想咨询一下,如何提升英语模型推理时间

@syq163
Copy link
Collaborator

syq163 commented Nov 24, 2023

Alright, thank you for providing the information. We will proceed with analyzing the code and will provide you with feedback.

@sufferpriest
Copy link

sufferpriest commented Nov 30, 2023

Hit same issue, when using english as input. And used above PLL-L's fix, it work.

@syq163
Copy link
Collaborator

syq163 commented Dec 7, 2023

The commit with the message "update of frontend, fix bug of slow english speed" (e2da34f) was made to resolve the issue of slow English processing. Please update and verify if the problem has been resolved.

@sufferpriest
Copy link

The commit with the message "update of frontend, fix bug of slow english speed" (e2da34f) was made to resolve the issue of slow English processing. Please update and verify if the problem has been resolved.

Tried it with latest code, issue get fixed. Thanks.
Extra: after I git pull latest code with this fix, and report missing pypinyin_dict module in python.
and I have to run 'pip install pypinyin_dict' to fix it.

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

No branches or pull requests

3 participants