issues/715

This commit is contained in:
恍兮惚兮 2024-05-05 20:04:38 +08:00
parent 88c08dd822
commit 3763cb9aa4

View File

@ -26,7 +26,7 @@ class TTS(TTSbase):
idx = int(voice.split("_")[1])
model = str.lower(voice.split("_")[0])
response = requests.get(
f"http://127.0.0.1:23456/voice/{model}?text={encoded_content}&id={idx}&lang=ja&format=wav"
f"http://127.0.0.1:23456/voice/{model}?text={encoded_content}&id={idx}&lang=auto&format=wav"
).content
fname = str(time.time())
os.makedirs("./cache/tts/", exist_ok=True)