mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-12-16 17:40:09 +08:00
Merge 35fac290ba937d032f9b635a14abf667037a1dcb into 9ec3a60f30d228719e5ec6cd6796c5b2d888dd1a
This commit is contained in:
commit
4a7807c775
@ -7,7 +7,7 @@ from text.g2pw import G2PWPinyin
|
|||||||
|
|
||||||
g2pw = G2PWPinyin(
|
g2pw = G2PWPinyin(
|
||||||
model_dir="GPT_SoVITS/text/G2PWModel",
|
model_dir="GPT_SoVITS/text/G2PWModel",
|
||||||
model_source="GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large",
|
model_source=os.environ.get("bert_pretrained_dir") or os.environ.get("bert_path") or "GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large",
|
||||||
v_to_u=False,
|
v_to_u=False,
|
||||||
neutral_tone_with_five=True,
|
neutral_tone_with_five=True,
|
||||||
)
|
)
|
||||||
|
|||||||
@ -28,15 +28,8 @@ import jieba_fast.posseg as psg
|
|||||||
is_g2pw = True # True if is_g2pw_str.lower() == 'true' else False
|
is_g2pw = True # True if is_g2pw_str.lower() == 'true' else False
|
||||||
if is_g2pw:
|
if is_g2pw:
|
||||||
# print("当前使用g2pw进行拼音推理")
|
# print("当前使用g2pw进行拼音推理")
|
||||||
from text.g2pw import G2PWPinyin, correct_pronunciation
|
from text.g2pw import correct_pronunciation
|
||||||
|
from download import g2pw
|
||||||
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,
|
|
||||||
)
|
|
||||||
|
|
||||||
rep_map = {
|
rep_map = {
|
||||||
":": ",",
|
":": ",",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user