This commit is contained in:
samiabat 2025-06-11 02:28:18 +03:00
parent 766d6615ab
commit 921d9961d0
2 changed files with 3 additions and 5 deletions

4
api.py
View File

@ -1223,7 +1223,7 @@ async def tts_endpoint(
if (character == "Kurari" and version!="v3") or character == "saotome":
if (character == "Kurari") or character == "saotome":
"""
"中文": "all_zh",
"粤语": "all_yue",
@ -1265,8 +1265,6 @@ async def tts_endpoint(
else:
return JSONResponse({"error": "Failed to generate audio"}, status_code=400)
if character == "Kurari":
character = "kurari"
refer_wav_path = f"idols/{character}/{character}.wav"
inp_refs = [f"idols/{character}/refs/{file}" for file in os.listdir(f"idols/{character}/refs") if file.endswith('.wav')]

View File

@ -12,8 +12,8 @@ is_share= True if is_share_str.lower() == 'true' else False
cnhubert_path = "GPT_SoVITS/pretrained_models/chinese-hubert-base"
bert_path = "GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large"
pretrained_sovits_path = "GPT_SoVITS/pretrained_models/kurari-high_e25_s325.pth"
pretrained_gpt_path = "GPT_SoVITS/pretrained_models/kurari-high-e45.ckpt"
pretrained_sovits_path = "GPT_SoVITS/pretrained_models/s2G2333k.pth"
pretrained_gpt_path = "GPT_SoVITS/pretrained_models/s1bert25hz-5kh-longer-epoch=12-step=369668.ckpt"
# pretrained_sovits_path = "GPT_SoVITS/pretrained_models/kurari_e20_s1800_l32.pth"
# pretrained_gpt_path = "GPT_SoVITS/pretrained_models/kurari-e40.ckpt"