Handle announcement separately from the media player

Update the announcement handling to just duck the music player volume instead of pausing it.
This commit is contained in:
Omar Amin authored and GitHub committed 2026-02-08 16:11:11 +02:00
1 parent 3834e1df0b
commit 282aa7ecf0
1 file changed
+1 -3
+1 -3
View File
@@ -287,9 +287,7 @@ class VoiceSatelliteProtocol(APIServer):
self._continue_conversation = msg.start_conversation self._continue_conversation = msg.start_conversation
self.duck() self.duck()
yield from self.state.media_player_entity.play( self.state.tts_player.play(urls, done_callback=self._tts_finished)
urls, announcement=True, done_callback=self._tts_finished
)
elif isinstance(msg, VoiceAssistantTimerEventResponse): elif isinstance(msg, VoiceAssistantTimerEventResponse):
self.handle_timer_event(VoiceAssistantTimerEventType(msg.event_type), msg) self.handle_timer_event(VoiceAssistantTimerEventType(msg.event_type), msg)
elif isinstance(msg, DeviceInfoRequest): elif isinstance(msg, DeviceInfoRequest):