Skip to content
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

Merged
merged 1 commit into from Dec 6, 2017

Conversation

forslund
Copy link
Collaborator

@forslund forslund commented Dec 5, 2017

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.

@forslund forslund requested a review from penrods December 5, 2017 12:38
@forslund forslund added CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) tagged for review and potential merge labels Dec 5, 2017
@forslund forslund changed the title Add recognizer_loop:awoken message when listener is awoken Add mycroft.awoken message when listener is awoken Dec 6, 2017
@@ -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')
Copy link
Contributor

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"

@@ -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)
Copy link
Contributor

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
@forslund
Copy link
Collaborator Author

forslund commented Dec 6, 2017

PR updated according to comments

penrods
penrods approved these changes Dec 6, 2017
Copy link
Contributor

@penrods penrods left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@penrods penrods merged commit 4018c55 into MycroftAI:dev Dec 6, 2017
@forslund forslund deleted the feature/wake-up-message branch June 7, 2018 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants