bugfix: start listening after wakeup sound (#185)
This commit is contained in:
1 parent
80e0d6254e
commit
ecace7011f
1 file changed
+5
-1
@@ -426,8 +426,12 @@ class VoiceSatelliteProtocol(APIServer):
|
||||
[VoiceAssistantRequest(start=True, wake_word_phrase=wake_word_phrase)]
|
||||
)
|
||||
self.duck()
|
||||
self.state.tts_player.play(self.state.wakeup_sound, done_callback=self._on_wakeup_sound_finished)
|
||||
|
||||
def _on_wakeup_sound_finished(self) -> None:
|
||||
"""Callback invoked when the wakeup sound finishes playing."""
|
||||
self._is_streaming_audio = True
|
||||
self.state.tts_player.play(self.state.wakeup_sound)
|
||||
_LOGGER.debug("Wakeup sound finished, starting audio streaming")
|
||||
|
||||
def stop(self) -> None:
|
||||
self.state.active_wake_words.discard(self.state.stop_word.id)
|
||||
|
||||
Reference in new issue
Block a user