• 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 (v2) - whole-new-built

Scheduled Pinned Locked Moved System
21 Posts 5 Posters 6.9k Views 5 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.
  • ? Offline
    A Former User @smarthome
    last edited by A Former User Jul 18, 2019, 9:18 AM Jul 18, 2019, 9:18 AM

    @smarthome

    {
      module: "MMM-NotificationTrigger",
      config: {
        triggers:[
          {
            trigger: "PAGE_SELECT_1",
            fires: [
              {
                fire: "PAGE_SELECT",
                payload: (pl) => {return 1}
              },
              {
                fire: "ASSISTANT_SAY",
                payload: (pl) => {return "ASSISTANT_SAY"}
              }
            ]
          }
        ]
      }
    },
    

    PAGE_SELECT_1 from notificationExec of Hotword.

    S 1 Reply Last reply Jul 18, 2019, 1:22 PM Reply Quote 0
    • S Offline
      smarthome @Guest
      last edited by smarthome Jul 18, 2019, 1:23 PM Jul 18, 2019, 1:22 PM

      @Sean
      Your notification code didn’t work. Nothing happen :(
      Could you check it again, pls

      payload: (payload) => { //OPTIONAL. transform received payload to what your target module wants.
      

      You mean that: MMM Notification transform only, can not modify the payload then transform?

      ? 1 Reply Last reply Jul 18, 2019, 1:50 PM Reply Quote 0
      • ? Offline
        A Former User @smarthome
        last edited by Jul 18, 2019, 1:50 PM

        @smarthome
        Well, check the log. and tell me whether suspicious logs be there.

          fire: "PAGE_SELECT",
          payload: (pl) => {return 1}
        

        is equivalent to .sendNotification("PAGE_SELECT", 1). whatever pl would come, it will be transfomed(or modified, whatever you want to call) and the fired notification would have 1 as payload.

        S 1 Reply Last reply Jul 18, 2019, 2:29 PM Reply Quote 0
        • S Offline
          smarthome @Guest
          last edited by Jul 18, 2019, 2:29 PM

          @Sean
          Finally, it worked, many thank for your help!

          S 1 Reply Last reply Jul 19, 2019, 2:38 AM Reply Quote 0
          • S Offline
            smarthome @smarthome
            last edited by smarthome Jul 19, 2019, 2:55 AM Jul 19, 2019, 2:38 AM

            @Sean

            I created some hotwords by myself on https://snowboy.kitt.ai/ under .pmdl extension, then save to model folder in MMM Hotword
            After configure MMM-Hotword in MMM config file to use these hotwords, MMM-Hotword auto detect hotwords and do the action, why no input voice signal to mic, only noise…
            I tried to incrase hotword from 1 word to 2 words, one to multiple syllables, but cant not stop this issuse
            I’ve check the configuration, everthing is normal.
            What’s happen? How to fix that?

            Tks!

            ? 1 Reply Last reply Jul 19, 2019, 7:14 AM Reply Quote 0
            • ? Offline
              A Former User @smarthome
              last edited by Jul 19, 2019, 7:14 AM

              @smarthome
              Did you use trainer.sh of the module to make your pmdl? or made it on snowboy website? pmdl is somewhat sensitive so, if you made it on another platform (e.g. your desktop pc) or other device(e.g different mic with your RPI’s), it might not work.
              Anyway, How do you figure out `only noise?

              G 1 Reply Last reply Jan 9, 2020, 4:00 AM Reply Quote 0
              • G Offline
                guongthongminh @Guest
                last edited by Jan 9, 2020, 4:00 AM

                @Sean
                I have built two hot words like this to call each page. I call the first page works, but by the time I call the second page is not working? Please point out the error and help me!
                alt text
                alt text

                ? 1 Reply Last reply Jan 9, 2020, 9:36 AM Reply Quote 0
                • ? Offline
                  A Former User @guongthongminh
                  last edited by Jan 9, 2020, 9:36 AM

                  @guongthongminh
                  Well, you don’t need to use MMM-NotificationTrigger. I can’t understand why you use that. MMM-Hotword itself has the feature of emitting notification(You’re already using.)

                  {
                    fire: "HOTWORD_RESUME",
                  },
                  {
                    fire: "HOTWORD_PAUSE",
                  }
                  

                  It doesn’t make any sense at all. This means “HOTWORD_RESUME” and “HOTWORD_PAUSE” at a same time. Why this part be needed? This would make your MMM-Hotword being paused.

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    Bronno
                    last edited by Mar 16, 2020, 7:41 PM

                    mmm-hotword is working well for me. I created it with first with the website Snowboy, later to make it better with trainer.sh. Sensity 0.5, later 0.9. With my voice it is working well, but for any noice from my wife, youtube movie, mmm-screencash, clocksound etc Google Assistant is activated many times. Also when nothing is said - only some “noise”. The file that is created (when it is Not the hot word) is only a small part of a word/ some sound - but it creates a connection with GA. Any idea how I can make it better?

                    ? 2 Replies Last reply Mar 16, 2020, 7:59 PM Reply Quote 0
                    • ? Offline
                      A Former User @Bronno
                      last edited by Mar 16, 2020, 7:59 PM

                      @Bronno

                      Frankly says, not many options. There is always possibility of confusing with other sound sources(even noise)
                      Not surprisingly, real commercial products like google home also misbehavior sometimes. Nobody is saying g of google, but google home be activated.
                      However, not so may times. Because;

                      • their detector is more dedicated to their own special pattern, which is result of advanced engineering and tech by google, amazon, apple,… ours are not such a level.
                      • they use arrayed mic with phonetic/acoustic science. So they can determine direction, distance and dimension of each sound sources. So they can KNOW what is real voice from human in the room, not noise, not music, not too far, and even not the sound from speaker itself at that moment.

                      Those are why they can detect precisely.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 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