diff --git a/api.py b/api.py index 468ff4df..7bec06b3 100644 --- a/api.py +++ b/api.py @@ -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')] diff --git a/config.py b/config.py index b00b486c..d935c127 100644 --- a/config.py +++ b/config.py @@ -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"