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

MMM-Assistantmk2 and MMM-Hotword not picking up



  • I just installed MMM-Hotword, and used this config

            {
              module: "MMM-Hotword",
              config: {
                autostart:true,
                autorestart: true
            }
    

    and it works fine…
    i did have a little snowboy rebuild work to do but documented in the hotword install doc…



  • @sdetweil I can try removing the space and hope to works, and I had to do the snowboy rebuild already as it said I had an error when I tried to start magicmirror, so that should be okay, so I’ll try deleting the space and if it doesn’t work I will try to rebuild snowboy and try again and I’ll get back to you. Thanks!!



  • @sdetweil is that your config for magicmirror or in the config file or hotword?



  • @sdetweil I tried getting rid of the space, I tried adding autorestart=true on both configs, and still no luck 😕



  • @jmartin1009 just the config for hotword.


  • Project Sponsor Module Developer

    Hello,
    I agree with Sam :
    You need to remove the space at both places.
    1st in MMM-AssistantMk2

    module: "MMM-AssistantMk2",
    		    position: "top_bar",
    		    config: {
    		      record: {
    		        recordProgram : "arecord",  
    		        device        : "plughw:1,0",
    

    And as well in

    module: "MMM-Hotword",
    		    config: {
    		      record: {
    		        recordProgram : "arecord", 
    		        device        : "plughw:1,0",
    

    If that still doesn’t work try just :
    plughw:1

    As well you should check in the audio properties that your mic have enough gain.

    you can check this by typing
    alsamixer
    in command line

    hope this helps

    Ejay



  • @ejay-ibm @sdetweil what should I have in the module list in the config.js for the magicmirror program for each module? Not sure if I have the right stuff or too much or what



  • @ejay-ibm also is there anyway to change the gain or whatever? I went to alsamixer and went to the capture section and the bar doesn’t move or anything when I speak into my mic. Not sure if anything is supposed to happen but it says both L and R capture are the 100, not sure what that means.



  • @ejay-ibm I also changed it so the sauce wasn’t there and I made it so it said plughw:1 in all of them, but still nothing


  • Project Sponsor Module Developer

    This is my MMM-Hotword config.js part :

    {
          module: "MMM-Hotword",
          config: {
            snowboy: [
              /*	{
    						"hotwords": "smartmirror",
    						"file": "resources/models/smart_mirror.umdl",
    						"sensitivity": "0.5"
    					},
    
    */
              {
                hotwords: "alexa",
                file: "resources/models/alexa.umdl",
                sensitivity: "0.6"
              },
    
              {
                file: "resources/models/jarvis.umdl",
                sensitivity: "0.6,0.60",
                hotwords: ["jarvis", "jarvis"]
              }
            ],
            record: {
              sampleRate: 16000,
              threshold: 0.5,
              thresholdStart: null,
              thresholdEnd: null,
              silence: 1,
              verbose: false,
              recordProgram: "arecord",
              device: "plughw:1"
            },
            autostart: true,
            autorestart: true,
            notifications: {
              PAUSE: "HOTWORD_PAUSE",
              RESUME: "HOTWORD_RESUME",
              LISTENING: "HOTWORD_LISTENING",
              SLEEPING: "HOTWORD_SLEEPING",
              ERROR: "HOTWORD_ERROR"
            },
            onDetected: {
              notification: function(payload) {
                return "ASSISTANT_ACTIVATE";
              },
              payload: function(payload) {
                return {
                  profile: payload.hotword
                };
              }
            }
          }
        },
    

    You can give it a try .

    Ejay