redo the send played event

This commit is contained in:
Luis Andrade
2024-01-19 14:39:03 +00:00
parent d1578cb863
commit a638600348
+2 -1
View File
@@ -25,7 +25,7 @@ from wyoming.satellite import (
StreamingStarted, StreamingStarted,
StreamingStopped, StreamingStopped,
) )
from wyoming.snd import SndProcessAsyncClient from wyoming.snd import SndProcessAsyncClient, Played
from wyoming.tts import Synthesize from wyoming.tts import Synthesize
from wyoming.vad import VoiceStarted, VoiceStopped from wyoming.vad import VoiceStarted, VoiceStopped
from wyoming.wake import Detect, Detection, WakeProcessAsyncClient from wyoming.wake import Detect, Detection, WakeProcessAsyncClient
@@ -550,6 +550,7 @@ class SatelliteBase:
event.type event.type
): ):
await _disconnect() await _disconnect()
await self.forward_event(Played().event())
snd_client = None # reconnect on next event snd_client = None # reconnect on next event
except asyncio.CancelledError: except asyncio.CancelledError:
break break