Read the statement by Michael Teeuw here.
MMM-Hotword
-
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 -
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 ?
-
@themc
I think possible.
WithMMM-notficationTrigger, you can overrideHOTWORD_DETECTEDnotification 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. -
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 assleep 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
-
@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.) -
@themc
If you want just to useMMM-Hotwordas screensaver-awakener,
modifynode_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)=>{}) ... -
awesome ill try it out right away
-
@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. -
Does anybody know what to edit to use custom hotwords (yes I created them in the Snowboy dashboard)?
-
@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 seecreate Hotwordbutton. click then follow instruction.
After that, you can get your personal model (.pmdl)
put that file intoMMM-Hotword/resourcesthen modify configuration.
By example, you recorded and getabracadabra.pmdl,
your configuration will besnowboy: [ { hotwords: "abracadabra", file: "resources/models/abracadabra.pmdl", sensitivity: '0.5', }, ...Then you can catch
abracadabraby your voice. -
@sean
Hmm that’s exactly what I did so either I am setting the wronghotwords:word or there’s something more needed to edit?In my case I have recorded the hotwords ‘OK Google’ and ‘Ehi Google’ and apart from the proper file name and path I set
hotwords: "okgoogle",andhotwords: "ehigoogle",.Also… can I use spaces into the quotes?
-
@cr4z33
Seehotwords:okgoogle.
okgoogleis a symbol for your voice. If MMM-Hotword detect yourokgoogle.pmdl(is file name right?), It will returnokgoogleas detection.
Then, if you want ot use that symbol as AssistantMk2 profile name to activate, modify configuration of MMM-AssistantMk2 like this.defaultProfile: "okgoogle", profiles: { "okgoogle" : { profileFile: "default.json", lang: "en-US", ...So, received “okgoogle” symbol will be used as profile name “okgoogle” with profile File “default.json”.
-
@sean
A-ha that’s the file name then?
That was my mistake because I named themok_google.pmdlandehi_google.pmdl!Thanks.
-
This post is deleted! -
Hi,
Can’t figure out why hotword detection stops on the 2nd run.
First detection is ok and GA responds as expected. I am a bit lost - any help is much appreciatedMagicMirror: 2.5.0
NodeJS: 9.11.2
npm: 6.4.1
MMM-AssistantMk2: 2.1.0I am using the full detailled config from MMM-AssistantMk2
-
@manfred
You might missed this in your MMM-AssistantMk2 configurationnotifications: {
ASSISTANT_ACTIVATED: “HOTWORD_PAUSE”,
ASSISTANT_DEACTIVATED: “HOTWORD_RESUME”,
},Or MMM-Hotword is not updated yet.
-
@sean Thank you very much!! That did the trick!
-
Hi , I can’t really use this module. I Have also done a minimal config.js with only this module but the mirror starts black (totally) and I have to reboot the RaspPi (I can’t close the Mirror)
What can I check ?
I have done correctly the installation of the module
Please help me
thanks from Italy

-
@s-monti-74
I need an error log to examine. I doubt you missed electron-rebuild step on installation. -
@sean please telle me which log I have to activate and how, thanks
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