From a90f507abe0243949d2720a009283cc84d0e62ae Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Mon, 20 Mar 2023 11:49:42 -0300 Subject: [PATCH] Exit elevenlabs_tts if streaming is enabled --- extensions/elevenlabs_tts/script.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/elevenlabs_tts/script.py b/extensions/elevenlabs_tts/script.py index b8171063..6aa687ab 100644 --- a/extensions/elevenlabs_tts/script.py +++ b/extensions/elevenlabs_tts/script.py @@ -15,7 +15,10 @@ wav_idx = 0 user = ElevenLabsUser(params['api_key']) user_info = None - +if not shared.args.no_stream: + print("Please add --no-stream. This extension is not meant to be used with streaming.") + raise ValueError + # Check if the API is valid and refresh the UI accordingly. def check_valid_api():