Skip to content

Commit

Permalink
fix:disable_tts_stream_config (#300)
Browse files Browse the repository at this point in the history
avoid weirdness from skipping the TTSQueue
  • Loading branch information
JarbasAl authored Jan 30, 2025
1 parent 9b7d5c0 commit f31cd22
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ovos_plugin_manager/templates/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,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)
Expand Down

0 comments on commit f31cd22

Please sign in to comment.