This commit is contained in:
Saifeddine ALOUI 2024-05-20 17:37:58 +02:00
parent 1ffca418ef
commit 880015ae82

View File

@ -164,6 +164,9 @@ async def text2Wav(request: LollmsText2AudioRequest):
else:
request.fn = lollmsElfServer.lollms_paths.personal_outputs_path/"audio_out"/"tts2audio.wav"
# Verify the path exists
request.fn.parent.mkdir(exist_ok=True, parents=True)
try:
# Get the JSON data from the POST request.
if lollmsElfServer.tts.ready: