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

MMM-Hotword won't recognize the hotword



  • I guess I successfully install mmm-assistantmk2 along with mmm-hotword. I followed this method for installation.

    I configured my config file and I can see Google logo on my MM screen as well, however no matter how much I shout “Computer” or “Smart Mirror” there is no detection.

    Is there any way I can debug and see what’s going on? Or what did I misconfigure?

    Config.js

    {
    	module: "MMM-Hotword",
    	config: {
    		record: {
    			recordProgram : "arecord",  
    			device        : "plughw:1"
    				},
    			autostart:true,
    			onDetected: {
    				notification: (payload) => {
    					return "ASSISTANT_ACTIVATE"
    					},
    				payload: (payload) => {
    						return {
    						  profile: payload.hotword
    						}
    					}
    				},
    		},
    },
    {
    	module: "MMM-AssistantMk2",
    	position: "bottom_left",
    	config: {
    		deviceLocation: {
    			coordinates: { // set the latitude and longitude of the device to get localized information like weather or time. (ref. mygeoposition.com)
    			latitude: , // -90.0 - +90.0
    			longitude: 	, // -180.0 - +180.0
    				},
    				},
    				record: {
    					recordProgram : "arecord",  
    					device        : "plughw:1",
    				},
    				notifications: {
    					ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
    					ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
    				},
    				useWelcomeMessage: "brief today",
    				profiles: {
    					"default" : {
    						lang: "en-IN"
    					}
    				},
    		}
    },
    

    Edit 1 : I ran using npm start dev and I got this error [HOTWORD] No model to load

    Edit 2 : I added cuple of models in config file, running npm start says it detected hotword but received no response.

    [HOTWORD] Detected: computer
    [HOTWORD] stops.
    [HOTWORD] Final Result: { detected: true, hotword: 'computer', file: null }
    

  • Module Developer

    @Newbie007
    Your profile of AssistantMk2 is “computer”? You are calling “computer” as a profile, but you have defined only “default” profile.
    And remove useWelcomeMessage unless you control start modules manually.



  • Do you mean I should change like this in config.js file?

    //useWelcomeMessage: "brief today",
    				profiles: {
    					"computer" : {
    						lang: "en-IN"
    					}
                                   profiles: {
    					"smart_mirror" : {
    						lang: "en-IN"
    					}
    				},
    

  • Module Developer

    @Newbie007
    First, what was wrong was that you are using the configuration for MMM-Hotword 1.X. It is updated to 2.X, so you should use https://github.com/eouia/MMM-AssistantMk2/wiki/Configuration#with-mmm-hotwordv2



  • @Sean yes this worked thanks!

    I didn’t even realise the first config was for v1



  • Hello,

    after some difficults this module works…but i can’t use hotword jarvis as model (snowboy and computer are ok)…what 's the difference ?
    Thanks


  • Module Developer

    @chassain-0
    Some of the voice models of snowboy sometimes looks weird. Jarvis is one example.
    They put the 2 voice patterns in one model(“jarvis.umdl”), so you should use like this;
    https://github.com/eouia/MMM-Hotword/blob/master/documents/models.md
    0_1577961062991_3e29c14b-02d1-4249-a926-b741b5832f4a-image.png

    Or you can assign a different identifier to each pattern like this;

    {
      hotwords: ["jarvis_1", "jarvis_2"],
      file: "jarvis.umdl",
      sensitivity: "0.8,0.8",
    },
    

Log in to reply