• 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.

MMM-Hotword won't recognize the hotword

Scheduled Pinned Locked Moved Solved Troubleshooting
7 Posts 3 Posters 1.6k Views 3 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.
  • N Offline
    Newbie007
    last edited by Newbie007 Nov 15, 2019, 1:39 PM Nov 15, 2019, 11:34 AM

    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 }
    
    ? 1 Reply Last reply Nov 15, 2019, 1:41 PM Reply Quote 0
    • ? Offline
      A Former User @Newbie007
      last edited by A Former User Nov 15, 2019, 1:42 PM Nov 15, 2019, 1:41 PM

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

      1 Reply Last reply Reply Quote 0
      • N Offline
        Newbie007
        last edited by Nov 15, 2019, 1:44 PM

        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"
        					}
        				},
        
        ? 1 Reply Last reply Nov 15, 2019, 1:47 PM Reply Quote 0
        • ? Offline
          A Former User @Newbie007
          last edited by Nov 15, 2019, 1:47 PM

          @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

          N 1 Reply Last reply Nov 15, 2019, 6:55 PM Reply Quote 0
          • N Offline
            Newbie007 @Guest
            last edited by Nov 15, 2019, 6:55 PM

            @Sean yes this worked thanks!

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

            1 Reply Last reply Reply Quote 0
            • C Offline
              chassain 0
              last edited by Dec 30, 2019, 4:35 PM

              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

              ? 1 Reply Last reply Jan 2, 2020, 10:33 AM Reply Quote 0
              • ? Offline
                A Former User @chassain 0
                last edited by A Former User Jan 2, 2020, 10:33 AM Jan 2, 2020, 10:33 AM

                @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",
                },
                
                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • 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