GPT-SoVITS/GPT_SoVITS/g2pw_doenload.py
XXXXRT666 7f8b42150a g2pw
2024-08-06 20:05:20 +08:00

5 lines
270 B
Python

import os, 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)