Merge pull request #72 from llluis/redo-send-played-event

redo the send played event
This commit is contained in:
Michael Hansen
2024-01-19 23:27:18 -06:00
committed by GitHub
+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