Read the statement by Michael Teeuw here.
voice activated module
-
@ray said in voice activated module:
I actually have MMM-GoogleAssistant by bugsounet and I like it a lot . But again, I couldn’t figure out how to get it to work either
u need to create a recipe in GA to send the notification of the voice command
see an example of recipe here…this one executes a command, there is a different version for sending notifications…
see the doc on his wiki -
That’s really intriguing. But unfortunately I’m unfamiliar on how this actually works. I actually got a hold of bugsounet and told him what I was trying to do. He said he would write it up for me. That way I can see how it’s supposed to be done,
-
@ray yeh, looks like he made them more capable and more difficult…
it used to be
recipe_name:{ transcription_hook:{ what word u will say :{ // link to action to take command: name } } // named actions command_name: { // what to do sendNotification(key, value) } }
-
Yeah once he sets it up. I’ll have a better understanding how it works
-
@ray look at the MMM-MplayerRadio.js in the GA recipes folder…
comments are minetranscriptionHooks: { // things you say "RADIO_PLAY": { // some label pattern: "RADIO PLAY", // the voice sound command: "RADIO_PLAY" // the command later in this file }, }, commands: { // things your recipe does "RADIO_PLAY": { // command label, used above in 'command:'.... notificationExec: { // what kind of thing to do , here send notification notification: "RADIO_PLAY" // notification key to send }, soundExec: { // can also make sound chime: "open" // what file contains sound } } }
and from selphieshot recipe
"SELFIE_SHOOT": { notificationExec: { notification: "SELFIE_SHOOT", payload: (params) => { // how to pass parms on the notification, aka payload return { shootCountdown: 5, displayResult: true, playShutter: true, displayCountdown: true, } } }, }
i don’t think u need the function and return here, UNLESS there were additional words u said as part of the voice command that might change the payload
-
I’ll have a better understanding how it works