• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 1.7k 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 Jul 24, 2021, 4:37 PM

    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 Jul 24, 2021, 4:50 PM Reply Quote 0
    • S Offline
      sdetweil @Ray
      last edited by Jul 24, 2021, 4:50 PM

      @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 Jul 25, 2021, 1:08 PM

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

        S 1 Reply Last reply Jul 25, 2021, 1:24 PM Reply Quote 0
        • S Offline
          sdetweil @Ray
          last edited by sdetweil Jul 25, 2021, 1:30 PM Jul 25, 2021, 1:24 PM

          @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 Aug 16, 2021, 1:35 PM

            I’ll have a better understanding how it works

            1 Reply Last reply Reply Quote 0
            • 1
            • 2
            • 2 / 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