mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-06 14:40:00 +08:00
多音字实现修复
This commit is contained in:
parent
31b99d6173
commit
5202a7793d
1
api.py
1
api.py
@ -314,6 +314,7 @@ def get_bert_inf(phones, word2ph, norm_text, language):
|
||||
|
||||
from text import chinese
|
||||
def get_phones_and_bert(text,language,version,final=False):
|
||||
LangSegment.setKeepPinyin(True) #用于保留切分后的中文拼音
|
||||
if language in {"en", "all_zh", "all_ja", "all_ko", "all_yue"}:
|
||||
language = language.replace("all_","")
|
||||
if language == "en":
|
||||
|
Loading…
x
Reference in New Issue
Block a user