Files
enginex-bi_series-tts/bi_v100-gpt-sovits/GPT-SoVITS/GPT_SoVITS/download.py

14 lines
300 B
Python
Raw Normal View History

2025-08-20 17:05:36 +08:00
import os
import sys
now_dir = os.getcwd()
sys.path.insert(0, now_dir)
from text.g2pw import G2PWPinyin
g2pw = G2PWPinyin(
model_dir="GPT_SoVITS/text/G2PWModel",
model_source="GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large",
v_to_u=False,
neutral_tone_with_five=True,
)