mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
issues/715
This commit is contained in:
parent
88c08dd822
commit
3763cb9aa4
@ -26,7 +26,7 @@ class TTS(TTSbase):
|
|||||||
idx = int(voice.split("_")[1])
|
idx = int(voice.split("_")[1])
|
||||||
model = str.lower(voice.split("_")[0])
|
model = str.lower(voice.split("_")[0])
|
||||||
response = requests.get(
|
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
|
).content
|
||||||
fname = str(time.time())
|
fname = str(time.time())
|
||||||
os.makedirs("./cache/tts/", exist_ok=True)
|
os.makedirs("./cache/tts/", exist_ok=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user