From a8c4f0bfd166644f1df24e4f9f0524905054c7e7 Mon Sep 17 00:00:00 2001 From: emphasize Date: Fri, 1 Dec 2023 18:39:08 +0100 Subject: [PATCH] confirmation state: add handle_listen --- ovos_dinkum_listener/service.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ovos_dinkum_listener/service.py b/ovos_dinkum_listener/service.py index 18cff65..8a56cb1 100644 --- a/ovos_dinkum_listener/service.py +++ b/ovos_dinkum_listener/service.py @@ -721,6 +721,9 @@ def _handle_listen(self, message: Message): } message = message or Message("", context=context) # might be None self.bus.emit(message.forward("mycroft.audio.play_sound", {"uri": sound})) + self.voice_loop.state = ListeningState.CONFIRMATION + self.voice_loop.confirmation_event.clear() + Timer(0.5, lambda: self.voice_loop.confirmation_event.set()).start() self.voice_loop.skip_next_wake = True