MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    voice activated module

    Scheduled Pinned Locked Moved General Discussion
    11 Posts 4 Posters 2.3k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      Ray
      last edited by

      Thanks guys for answering my post.
      MMM-MP3Player is supposed to accept notifications so I tried to put it in
      mmm-detector and I couldn’t get it to work
      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
      so that’s why I’m asking for advice. Maybe it’s the MMM-Mp3Player I’m trying to use

      What I’m trying to do is have a voice activated mirror where I can say play my music. Or what’s the weather or check my email That’s what I’m trying to do

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Ray
        last edited by sdetweil

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

        https://forum.magicmirror.builders/topic/15296/automatically-wake-bluetooth-speaker-from-sleep-suspend/12

        this one executes a command, there is a different version for sending notifications…
        see the doc on his wiki

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • R Offline
          Ray
          last edited by

          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,

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @Ray
            last edited by

            @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) 
                  }
            }
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • R Offline
              Ray
              last edited by

              Yeah once he sets it up. I’ll have a better understanding how it works

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Ray
                last edited by sdetweil

                @ray look at the MMM-MplayerRadio.js in the GA recipes folder…
                comments are mine

                  transcriptionHooks: {   // 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

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • A Offline
                  aujlaranjit49
                  last edited by

                  I’ll have a better understanding how it works

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 1 / 2
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy