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?
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…