From 3763cb9aa49e12aa8fb0eb728c5acadbd1db3a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sun, 5 May 2024 20:04:38 +0800 Subject: [PATCH] issues/715 --- LunaTranslator/LunaTranslator/tts/vitsSimpleAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/tts/vitsSimpleAPI.py b/LunaTranslator/LunaTranslator/tts/vitsSimpleAPI.py index 8184f256..22a48c75 100644 --- a/LunaTranslator/LunaTranslator/tts/vitsSimpleAPI.py +++ b/LunaTranslator/LunaTranslator/tts/vitsSimpleAPI.py @@ -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)