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

长短不同的句子,batch合成的语音长度是一样的 #637

Open
lanyuer opened this issue Jul 26, 2024 · 4 comments
Open

长短不同的句子,batch合成的语音长度是一样的 #637

lanyuer opened this issue Jul 26, 2024 · 4 comments
Labels
documentation Improvements or additions to documentation stale The topic has been ignored for a long time

Comments

@lanyuer
Copy link

lanyuer commented Jul 26, 2024

第一个句子10个字,第二个100字的话,合成出来两句话都是十几秒,第一句后面都是静音

可能是什么地方有问题呢?

@fumiama fumiama added the documentation Improvements or additions to documentation label Jul 27, 2024
@fumiama
Copy link
Member

fumiama commented Jul 27, 2024

这是批量解码导致的,解决方法是尽量使每句话长度相同,最后手动删去末尾的静音(全0数组)。

@ai408
Copy link

ai408 commented Aug 12, 2024

@fumiama 请问下有什么好的办法删除每句话末尾的静音吗?

@fumiama
Copy link
Member

fumiama commented Aug 14, 2024

@fumiama 请问下有什么好的办法删除每句话末尾的静音吗?

#564

@ai408
Copy link

ai408 commented Aug 16, 2024

@fumiama 谢谢,很好的思路。不过实际我发现尾部并不是0,而是很小的数字,比如1e-8等。

@github-actions github-actions bot added the stale The topic has been ignored for a long time label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation stale The topic has been ignored for a long time
Projects
None yet
Development

No branches or pull requests

3 participants