Wake Word Response Skill?

Hey everyone! I’m super new to Mycroft (and home assistants in general), but I am currently attempting to house a Picroft build inside a Larry the Singing Lobster. The problem is, I am unsure how to code a motor to activate upon the wake word. For example, rather than the chime that the Picroft unit is listening, I would like to activate a motor in response. Does anyone have any tips on how I could accomplish this / if it’s even possible?

Thanks in advance.

1 Like

Check out the Mycroft Message Bus. In your skill you register a handler to the recognizer_loop:wakeword event/message. The handler then performs some action, e.g. setting some GPIO Pin of your Raspberry Pi which (by some additional hardware) triggers a servo motor.

The recognizer_loop:record_begin/recognizer_loop:record_endmessages are a good candidate too for your application. Then you can trigger servo on when user starts speaking and servo off when utterance ended…

3 Likes

That sounds exactly like what I’m looking for! Thank you so much!

and please oh please send us video of that lobster!!!

I’ll update this thread with a video as soon as I get it working!

1 Like