From ecace7011ffc4d3854403ab095acf822386d6f14 Mon Sep 17 00:00:00 2001 From: Florian Asche Date: Sun, 1 Mar 2026 21:01:35 +0100 Subject: [PATCH] bugfix: start listening after wakeup sound (#185) --- linux_voice_assistant/satellite.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/linux_voice_assistant/satellite.py b/linux_voice_assistant/satellite.py index f635215..80db0b8 100644 --- a/linux_voice_assistant/satellite.py +++ b/linux_voice_assistant/satellite.py @@ -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)