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:
1 parent
3834e1df0b
commit
282aa7ecf0
1 file changed
+1
-3
@@ -287,9 +287,7 @@ class VoiceSatelliteProtocol(APIServer):
|
||||
self._continue_conversation = msg.start_conversation
|
||||
|
||||
self.duck()
|
||||
yield from self.state.media_player_entity.play(
|
||||
urls, announcement=True, done_callback=self._tts_finished
|
||||
)
|
||||
self.state.tts_player.play(urls, done_callback=self._tts_finished)
|
||||
elif isinstance(msg, VoiceAssistantTimerEventResponse):
|
||||
self.handle_timer_event(VoiceAssistantTimerEventType(msg.event_type), msg)
|
||||
elif isinstance(msg, DeviceInfoRequest):
|
||||
|
||||
Reference in new issue
Block a user