From 5553634b0cffe9eb9356bf17de487601c696fe02 Mon Sep 17 00:00:00 2001 From: miro Date: Thu, 30 Jan 2025 01:31:39 +0000 Subject: [PATCH] fix:disable_tts_stream_config avoid weirdness from skipping the TTSQueue --- ovos_plugin_manager/templates/tts.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ovos_plugin_manager/templates/tts.py b/ovos_plugin_manager/templates/tts.py index 1f60fe1a..bc2ee1e0 100644 --- a/ovos_plugin_manager/templates/tts.py +++ b/ovos_plugin_manager/templates/tts.py @@ -1223,6 +1223,12 @@ async def generate_audio(self, sentence, wav_file, play_streaming=True, def _execute(self, sentence, ident, listen, **kwargs): + if not self.config.get("enable_streaming"): + # by default use the shared Queue for audio playback + # use streaming only if explicitly enabled until it is better supported + super()._execute(sentence, ident, listen, **kwargs) + return + # parse requested language for this TTS request ctxt = self._get_ctxt(kwargs) cache = ctxt.get_cache(self.audio_ext, self.config)