Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Commit cf75ef9

Browse files
authored
Merge pull request #2360 from MycroftAI/bug/audio_end_missing_arg
Bug/audio end missing arg
2 parents 88e8b66 + d9523fd commit cf75ef9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mycroft/tts/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def run(self):
118118
send_playback_metric(stopwatch, ident)
119119

120120
if self.queue.empty():
121-
self.tts.end_audio()
121+
self.tts.end_audio(listen)
122122
self._processing_queue = False
123123
self.blink(0.2)
124124
except Empty:
@@ -211,7 +211,7 @@ def begin_audio(self):
211211
# Create signals informing start of speech
212212
self.bus.emit(Message("recognizer_loop:audio_output_start"))
213213

214-
def end_audio(self, listen):
214+
def end_audio(self, listen=False):
215215
"""Helper function for child classes to call in execute().
216216
217217
Sends the recognizer_loop:audio_output_end message (indicating

0 commit comments

Comments
 (0)