Skip to content

Commit

Permalink
confirmation state: add handle_listen (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
emphasize authored Dec 1, 2023
1 parent adff002 commit 5b5b666
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ovos_dinkum_listener/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5b5b666

Please sign in to comment.