mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-27 03:56:41 +08:00
尝试修复混合模式下短单词发音不清晰的问题 (#1286)
* Add pause before short words * Add 'conda'
This commit is contained in:
parent
95d3c0d220
commit
46cd596027
@ -22,6 +22,11 @@ def clean_text(text, language):
|
|||||||
phones, word2ph = language_module.g2p(norm_text)
|
phones, word2ph = language_module.g2p(norm_text)
|
||||||
assert len(phones) == sum(word2ph)
|
assert len(phones) == sum(word2ph)
|
||||||
assert len(norm_text) == len(word2ph)
|
assert len(norm_text) == len(word2ph)
|
||||||
|
elif language == "en":
|
||||||
|
phones = language_module.g2p(norm_text)
|
||||||
|
if len(phones) < 4:
|
||||||
|
phones = [','] * (4 - len(phones)) + phones
|
||||||
|
word2ph = None
|
||||||
else:
|
else:
|
||||||
phones = language_module.g2p(norm_text)
|
phones = language_module.g2p(norm_text)
|
||||||
word2ph = None
|
word2ph = None
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
CHATGPT CH AE1 T JH IY1 P IY1 T IY1
|
CHATGPT CH AE1 T JH IY1 P IY1 T IY1
|
||||||
JSON JH EY1 S AH0 N
|
JSON JH EY1 S AH0 N
|
||||||
|
CONDA K AA1 N D AH0
|
Loading…
x
Reference in New Issue
Block a user