Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejgray committed Jun 24, 2024
1 parent fb51684 commit c57585f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ovos_plugin_manager/templates/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c57585f

Please sign in to comment.