Read the statement by Michael Teeuw here.
MMM-Hotword
-
@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-Hotword
as 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 Hotword
button. click then follow instruction.
After that, you can get your personal model (.pmdl)
put that file intoMMM-Hotword/resources
then 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
abracadabra
by 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
.
okgoogle
is a symbol for your voice. If MMM-Hotword detect yourokgoogle.pmdl
(is file name right?), It will returnokgoogle
as 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.pmdl
andehi_google.pmdl
!Thanks.
-
This post is deleted!