Merge 5be9465559a3d75532e01c8cb81e0fb2bdb68b9e into b0e465eb721f5c007324096690e8b5d87de4a86a

This commit is contained in:
Spr_Aachen 2025-03-26 06:56:40 +00:00 committed by GitHub
commit ed95dd9728
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,9 @@ if is_g2pw:
# print("当前使用g2pw进行拼音推理")
from text.g2pw import G2PWPinyin, correct_pronunciation
parent_directory = os.path.dirname(current_file_path)
g2pw = G2PWPinyin(model_dir="GPT_SoVITS/text/G2PWModel",model_source=os.environ.get("bert_path","GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large"),v_to_u=False, neutral_tone_with_five=True)
g2pw = G2PWPinyin(model_dir="GPT_SoVITS/text/G2PWModel",
model_source=os.environ.get("bert_path") or os.environ.get("bert_pretrained_dir") or "GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large",
v_to_u=False, neutral_tone_with_five=True)
rep_map = {
"": ",",