From 880015ae82362f72ff837d524a0722f6d6a03f8c Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Mon, 20 May 2024 17:37:58 +0200 Subject: [PATCH] done --- lollms/server/endpoints/lollms_tts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lollms/server/endpoints/lollms_tts.py b/lollms/server/endpoints/lollms_tts.py index b02353b..e446f48 100644 --- a/lollms/server/endpoints/lollms_tts.py +++ b/lollms/server/endpoints/lollms_tts.py @@ -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: