From f016c6cd9039dea17e7bd6d381d775bdf47089ac Mon Sep 17 00:00:00 2001 From: erew123 <35898566+erew123@users.noreply.github.com> Date: Sat, 22 Jun 2024 15:17:12 +0100 Subject: [PATCH] add condition on message --- tts_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tts_server.py b/tts_server.py index 71424fe..af91833 100644 --- a/tts_server.py +++ b/tts_server.py @@ -642,7 +642,7 @@ async def tts_generate_streaming(request: Request, text: str = Form(...), voice: # Central generate_audio function # ################################### async def generate_audio(text, voice, language, temperature, repetition_penalty, speed, pitch, output_file, streaming=False): - if model_engine.streaming_capable == False: + if model_engine.streaming_capable == False and streaming == True: print(f"[{branding}GEN] The selected TTS Engine does not support streaming. To use streaming, please select a TTS") print(f"[{branding}GEN] Engine that has streaming capability. You can find the streaming support information for") print(f"[{branding}GEN] each TTS Engine in the 'Engine Information' section of the Gradio interface.")