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-Assistantmk2 and MMM-Hotword not picking up

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    54 Posts 9 Posters 37.8k Views 9 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.
    • B Offline
      bachoo786 @AdnanAhmed97
      last edited by

      @AdnanAhmed97 what do you mean?

      1 Reply Last reply Reply Quote 0
      • J Offline
        jmartin1009
        last edited by

        @sdetweil @ejay-ibm well i got a new mic and i tried it out, still no detection for MMM-Hotword. It works for GoogleAssistantMk2 when i click the button on the screen, but no hotword detection. I worried that it may be because of snowboy failing to install properly the first time for some reason, so i went into the module in the console and did npm install and got this:

        pi@raspberrypi:~/MagicMirror/modules/MMM-Hotword $ npm install
        npm WARN deprecated hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
        npm WARN deprecated boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.
        npm WARN deprecated cryptiles@2.0.5: This version is no longer maintained. Please upgrade to the latest version.
        npm ERR! path /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
        npm ERR! code EISGIT
        npm ERR! git /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy: Appears to be a git repo or submodule.
        npm ERR! git     /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
        npm ERR! git Refusing to remove it. Update manually,
        npm ERR! git or move it out of the way first.
        
        npm ERR! A complete log of this run can be found in:
        npm ERR!     /home/pi/.npm/_logs/2019-03-18T22_16_00_319Z-debug.log
        
        

        any idea how i can fix this?

        J ? 2 Replies Last reply Reply Quote 0
        • J Offline
          jmartin1009 @jmartin1009
          last edited by

          @jmartin1009 this is possible it’s saying this because it’s already there, but i wasn’t sure i figured i’d give it another go. Let me know if there’s anything i should change or try, but i know this mic does work, as it shows up in

          arecord -l
          

          and it comes up and i can select it in alsamixer and everything, just can’t get hotword to hear me.

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @jmartin1009
            last edited by

            @jmartin1009
            rm -rf /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/.git

            Then try again

            1 Reply Last reply Reply Quote 0
            • R Offline
              raedonlpa
              last edited by raedonlpa

              Hi, why?
              When I change the activation word, it doesn’t work for me?,
              I want to change it to another word, like alexa, jarvis, etc, and it doesn’t work for me.
              I have copied the parameters of @ejay-ibm and nothing.

              language: "es",
              timeFormat: 24,
              units: "metric",
              
              modules: [
              	{
              		module: "alert",
              	},
              	{
              		module: "updatenotification",
              		position: "top_bar"
              	},
              	{
              		module: "clock",
              		position: "top_left"
              	},
              	{
              		module: "calendar",
              		header: "Calendario",
              		position: "top_left",
              		config: {
              			calendars: [
              				{
              					symbol: "calendar-check",
              					url: "https://www.calendarlabs.com/ical-calendar/ics/70/Spain_Holidays.ics"					
              				},
              				{
              					symbol: "MyCalendar",
              					url: "https://calendar.google.com/calendar/ical/............/public/basic.ics"					
              				}
              			]
              		}
              	},
              	{
              		module: "compliments",
              		position: "lower_third"
              	},
              	{
              		module: "currentweather",
              		position: "top_right",
              		config: {
              			location: "New York",
              			locationID: "",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
              			appid: "YOUR_OPENWEATHER_API_KEY"
              		}
              	},
              	{
              		module: "weatherforecast",
              		position: "top_right",
              		header: "Weather Forecast",
              		config: {
              			location: "Arrecife, ES",
              			locationID: "2521570",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
              			appid: "..........................."
              		
              		}
              	},
              		{
              
                  		module: 'currentweather',
                  		position: 'top_right',
              		config: {
              		        location: 'Arrecife, es',
              		        locationID: '2521570', //ID from bulk.openweather.org/sample/
              		        appid:" .............................'',
              		        updateInterval: '3600000',
              		        onlyTemp: true
              
              		}
              
              	},
              
              		{
              		module: "newsfeed",
              		position: "bottom_bar",
              		config: {
              			feeds: [
              				{
              					title: "Canarias7",
              					url: "https://www.canarias7.es/rss/portada.xml"
              				}
              			],
              			showSourceTitle: true,
              			showPublishDate: true,
              			broadcastNewsFeeds: true,
              			broadcastNewsUpdates: true
              		}
              	},
              		{
              		module: "MMM-Hotword",
              		position: "top_right",
              		config: {
              			chimeOnFinish: null,
              			mic: {
              				recordProgram: "arecord",
              				device: "plughw:1"
              			},
              			models: [
              				{
              					hotwords    : "Smart_mirror",
              					file        : "smart_mirror.umdl",
              					sensitivity : "0.5",
              				},
              			],
              			commands: {
              				"smart_mirror": {
              					notificationExec: {
              						notification: "ASSISTANT_ACTIVATE",
              						payload: (detected, afterRecord) => {
              							return {profile:"default"}
              						}
              					},
              					restart:false,
              					afterRecordLimit:0
              				}
              			}
              		}
              	},
              	{
              		module: "MMM-AssistantMk2",
              		position: "top_right",
              		config: {
              			deviceLocation: {
              				coordinates: {
              					latitude: 28.969593, // -90.0 - +90.0
              					longitude: -13.556344, // -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: "es-ES"
              				}
              			},
              		}
              	},
              ]
              

              };

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @raedonlpa
                last edited by

                @raedonlpa can u edit your post, and put three back-tics (shifted, left of 1) before the 1st line, and after the last line.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote -1
                • R Offline
                  raedonlpa
                  last edited by

                  @sdetweil Better this way, I’m sorry I use google traslator

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @raedonlpa
                    last edited by sdetweil

                    @raedonlpa yes, much better… thank you … you missed one close brace }; at the end, inside the backtics

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      raedonlpa
                      last edited by

                      @sdetweil I know, don’t let me put it in the forum

                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @raedonlpa
                        last edited by

                        @raedonlpa it was only on the edit of the forum post…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          raedonlpa
                          last edited by

                          @sdetweil said in MMM-Assistantmk2 and MMM-Hotword not picking up:

                          it was only on the edit of the forum post…

                          Do you mean the end of everything?

                          S 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @raedonlpa
                            last edited by

                            @raedonlpa

                            this

                            };

                            is hanging out after the closing backtics… in your edited post

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0
                            • R Offline
                              raedonlpa
                              last edited by

                              yes, I get spawn error

                              S 1 Reply Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @raedonlpa
                                last edited by sdetweil

                                @raedonlpa sorry, spawn error??

                                I was just trying to clean up the forum messages so that others with knowledge about the two modules can help you…

                                it was very hard to read the config.js info in the original posting.

                                the changes I mentioned should NOT be put into the actual config.js file.

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 0
                                • R Offline
                                  raedonlpa
                                  last edited by

                                  0_1567514567654_975d58f8-6bf2-46c4-a723-36258b9667d5-imagen.png

                                  S J 2 Replies Last reply Reply Quote 0
                                  • S Do not disturb
                                    sdetweil @raedonlpa
                                    last edited by

                                    @raedonlpa weird

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      juantata @raedonlpa
                                      last edited by

                                      @raedonlpa Hi. Did you solve the activation word?

                                      S R 2 Replies Last reply Reply Quote 0
                                      • S Do not disturb
                                        sdetweil @juantata
                                        last edited by

                                        @juantata see the documentation on model usage

                                        using one of the predefined models.
                                        https://github.com/eouia/MMM-Hotword/blob/master/documents/models.md

                                        some spoken word dialects do not work with universal models. Most users from India will have to make their own model. see below

                                        training your own voice model
                                        https://github.com/eouia/MMM-Hotword/blob/master/documents/trainer.md

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        J 1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          raedonlpa @juantata
                                          last edited by

                                          @juantata yes, my mistake was that the .wav file was very large.

                                          J 1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            juantata @raedonlpa
                                            last edited by

                                            @raedonlpa Sorry for the inconvenience. Could you tell me how you have done all the steps?

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 3 / 3
                                            • 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