diff --git a/wyoming_satellite/satellite.py b/wyoming_satellite/satellite.py index 31aba25..e68d5c5 100644 --- a/wyoming_satellite/satellite.py +++ b/wyoming_satellite/satellite.py @@ -550,7 +550,8 @@ async def _disconnect() -> None: event.type ): await _disconnect() - await self.trigger_played() + if not hasattr(event, 'wav'): + await self.trigger_played() snd_client = None # reconnect on next event except asyncio.CancelledError: break @@ -596,6 +597,7 @@ async def _play_wav( samples_per_chunk=self.settings.snd.samples_per_chunk, volume_multiplier=self.settings.snd.volume_multiplier, ): + event.wav = True await self.event_to_snd(event) except Exception: # Unmute in case of an error