• 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

Scheduled Pinned Locked Moved System
60 Posts 20 Posters 20.3k Views 17 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.
  • R Offline
    richland007
    last edited by Aug 7, 2018, 6:32 PM

    Oh dang i did not see the MirrorMirrorOnTheWall module…let me see how difficult is to implement that and i will bother you again LOL :)
    thank you guys @Sean

    1 Reply Last reply Reply Quote 0
    • T Offline
      themc
      last edited by Aug 12, 2018, 10:00 AM

      is there anyway to integrate hotword with xscreensaver so i can blank the screen at 10 minutes and it pops back on whenever i say the hotword to the mirror ?

      ? 1 Reply Last reply Aug 12, 2018, 10:07 AM Reply Quote 0
      • ? Offline
        A Former User @themc
        last edited by Aug 12, 2018, 10:07 AM

        @themc
        I think possible.
        With MMM-notficationTrigger, you can override HOTWORD_DETECTED notification to any notification for any other modules.
        So, If you have some module which can awake screen (I don’t know whether really that kind of module exists), it is possible.
        If it doesn’t exist, hmmm. you might be able to fork this repository and modify it for that purpose.

        1 Reply Last reply Reply Quote 0
        • T Offline
          themc
          last edited by Aug 12, 2018, 10:57 AM

          haha im a newbie when it comes to coding and finding the right lines but ill have a look arround to see if i can fix something up. i know xscreensaver can be turned on by the following command in terminal:

          -activate Tell xscreensaver to turn on immediately (that is, blank the screen, as if the user had been idle for long enough.) The screensaver will deactivate as soon as there is any user activity, as usual.
          It is useful to run this from a menu; you may wish to run it as

          sleep 5 ; xscreensaver-command -activate
          to be sure that you have time to take your hand off the mouse before the screensaver comes on. (Because if you jiggle the mouse, xscreensaver will notice, and deactivate.)

          so i think it should be possible to link a hotword to that line to execute it

          T 1 Reply Last reply Aug 12, 2018, 10:59 AM Reply Quote 0
          • T Offline
            themc @themc
            last edited by Aug 12, 2018, 10:59 AM

            @themc @myself the correct command would be

            -deactivate
            This tells xscreensaver to pretend that there has just been user activity. This means that if the screensaver is active (the screen is blanked), then this command will cause the screen to un-blank as if there had been keyboard or mouse activity. If the screen is locked, then the password dialog will pop up first, as usual. If the screen is not blanked, then this simulated user activity will re-start the countdown (so, issuing the -deactivate command periodically is one way to prevent the screen from blanking.)

            ? 1 Reply Last reply Aug 12, 2018, 11:10 AM Reply Quote 0
            • ? Offline
              A Former User @themc
              last edited by A Former User Aug 12, 2018, 11:11 AM Aug 12, 2018, 11:10 AM

              @themc
              If you want just to use MMM-Hotword as screensaver-awakener,
              modify node_helper.js ;

              // add this in line 1:
              var exec = require('child_process').exec
              ...
              // around line 86
              .on('hotword', (index, hotword, buffer)=>{
                exec ("xscreensaver-command -deactivate", (err, stdout, stderr)=>{})
              ...
              
              
              1 Reply Last reply Reply Quote 0
              • T Offline
                themc
                last edited by Aug 12, 2018, 11:24 AM

                awesome ill try it out right away

                ? 1 Reply Last reply Aug 12, 2018, 11:25 AM Reply Quote 0
                • ? Offline
                  A Former User @themc
                  last edited by Aug 12, 2018, 11:25 AM

                  @themc
                  Not tested. I wrote that post by your description. So I don’t know whether it works really.
                  But you can find a way how to work.

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    Cr4z33
                    last edited by Nov 8, 2018, 2:07 PM

                    Does anybody know what to edit to use custom hotwords (yes I created them in the Snowboy dashboard)?

                    ? 1 Reply Last reply Nov 8, 2018, 2:12 PM Reply Quote 0
                    • ? Offline
                      A Former User @Cr4z33
                      last edited by Nov 8, 2018, 2:12 PM

                      @cr4z33
                      Go to snowboy and signup (https://snowboy.kitt.ai).
                      It’s better to do in your target device (Raspberry Pi)
                      After login, you can see create Hotword button. click then follow instruction.
                      After that, you can get your personal model (.pmdl)
                      put that file into MMM-Hotword/resources then modify configuration.
                      By example, you recorded and get abracadabra.pmdl,
                      your configuration will be

                       snowboy: [
                        {
                          hotwords: "abracadabra", 
                          file: "resources/models/abracadabra.pmdl",
                          sensitivity: '0.5',
                        },
                        ...
                      

                      Then you can catch abracadabra by your voice.

                      C 1 Reply Last reply Nov 8, 2018, 2:16 PM Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 2 / 6
                      • 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