mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-20 18:19:48 +08:00
incorporate kurari
This commit is contained in:
parent
d318dee66c
commit
766d6615ab
4
api.py
4
api.py
@ -1223,7 +1223,7 @@ async def tts_endpoint(
|
||||
|
||||
|
||||
|
||||
if character in ["Kurari", "saotome"]:
|
||||
if (character == "Kurari" and version!="v3") or character == "saotome":
|
||||
"""
|
||||
"中文": "all_zh",
|
||||
"粤语": "all_yue",
|
||||
@ -1265,6 +1265,8 @@ 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')]
|
||||
|
Loading…
x
Reference in New Issue
Block a user