New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mycroft.awoken message when listener is awoken #1279
Conversation
88fe311
to
eb40d31
Compare
mycroft/client/speech/listener.py
Outdated
| @@ -114,7 +114,7 @@ def wake_up(self, audio): | |||
| if self.wakeup_recognizer.found_wake_word(audio.frame_data): | |||
| SessionManager.touch() | |||
| self.state.sleeping = False | |||
| self.__speak(mycroft.dialog.get("i am awake", self.stt.lang)) | |||
| self.emitter.emit('mycroft.awoken') | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Within the listener bus, use "recognizer_loop:awoken"
mycroft/client/speech/main.py
Outdated
| @@ -135,6 +141,7 @@ def main(): | |||
| loop.on('recognizer_loop:utterance', handle_utterance) | |||
| loop.on('speak', handle_speak) | |||
| loop.on('recognizer_loop:record_begin', handle_record_begin) | |||
| loop.on('mycroft.awoken', handle_awoken) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switch to: "recognizer_loop:awoken"
Instead of speaking directly from the listener send a message that the naptime_skill can use to trigger speech and/or other indications that the listener is awake
eb40d31
to
04b8e0e
Compare
|
PR updated according to comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Instead of speaking directly from the listener send a message that the
naptime_skill can use to trigger speech and/or other indications that
the listener is now awake.