MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

I need help to get MMM-Voice-Commands working



  • https://github.com/Veldrovive/MMM-Voice-Commands

    it looks just like this:

      {
            module: "MMM-Voice-Commands",
            config: {
                debug: false, //Displays end results and errors from annyang in the Log
                autoStart: true, //Adds annyang commands when it first starts
                activateCommand: "hello mirror", //Command to active all other commands
                deactivateCommand: "goodbye mirror", //Command to deactivate all other commands
                alertHeard: false, //Whether an alert should be shown when annyang hears a phrase (mostly for debug)
                commands: {
                    "command statement :variable (optional statement)": "SOCKET_NOTIFICATION_NAME",
                    //The payload of the socket notification will be whatever is said in the :variable
                    "command statement *variable": function(param){
                        alert("Whatever is said in the *variable space is given as the "+param);
                        //These function's 'this' are bound to the module's 'this' so you can do stuff like:
                        this.sendNotification("PAGE_SELECT", "2");
                    }
                }
            }
        },
    

    NOW, MY MAGIC MIRROR IS WORKING BUT THE VOICE COMMAND IS NOT RESPONDING, AND I WAS READING THIS MODULE NEED ANNYANG, BUT I DONT KNOW HOW I DO TO INSTALL ((ANNYANG)) SOMEONE HELP WITH THIS PLEASE

    OR SOMEONE WHO HAS A VOICE COMMAND THAT IS WORKING THAT CAN SHARE IT TO ME. PLEASE



  • who know how i do to install annyang, for my voice command



  • did u do the npm install in the MMM-Voice-Commands folder?

    instructions

    Navigate into the installation and Install Dependencies.
    
    cd MMM-Voice-Commands && npm i
    


  • yes i did it, but it only activate once with the voice command, (hello mirror) and then when i deactivate with voice comnand (goodbye mirror) now i try to activate it dont respond



  • @bjjsoul ok, can’t help with that part…

    on the annyang, it should have been installed by the npm i


Log in to reply