From c57585fd3ccaa40fb377fc1dcb73149f9673c6f4 Mon Sep 17 00:00:00 2001 From: Mike Gray Date: Mon, 24 Jun 2024 17:39:08 -0500 Subject: [PATCH] fix --- ovos_plugin_manager/templates/tts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ovos_plugin_manager/templates/tts.py b/ovos_plugin_manager/templates/tts.py index ea837759..c2b42979 100644 --- a/ovos_plugin_manager/templates/tts.py +++ b/ovos_plugin_manager/templates/tts.py @@ -1012,13 +1012,14 @@ class RemoteTTSTimeoutException(RemoteTTSException): class StreamingTTSCallbacks: """handle the playback of streaming TTS, can be overrided in StreamingTTS""" - def __init__(self, bus, play_args=["paplay"], tts_config=None): + def __init__(self, bus, play_args=None, tts_config=None): self.bus = bus self.config = tts_config # Prefer directly passed play args, then config from plugin, then default WAV config self.play_args = play_args \ or [get_plugin_config(tts_config, "tts").get("streaming_tts_cmd")] \ - or [get_plugin_config().get("play_wav_cmdline")] + or [get_plugin_config().get("play_wav_cmdline")] \ + or ["paplay"] self._process = None def stream_start(self, message=None):