This is my MMM-Hotword config.js part :
{
module: "MMM-Hotword",
config: {
snowboy: [
/* {
"hotwords": "smartmirror",
"file": "resources/models/smart_mirror.umdl",
"sensitivity": "0.5"
},
*/
{
hotwords: "alexa",
file: "resources/models/alexa.umdl",
sensitivity: "0.6"
},
{
file: "resources/models/jarvis.umdl",
sensitivity: "0.6,0.60",
hotwords: ["jarvis", "jarvis"]
}
],
record: {
sampleRate: 16000,
threshold: 0.5,
thresholdStart: null,
thresholdEnd: null,
silence: 1,
verbose: false,
recordProgram: "arecord",
device: "plughw:1"
},
autostart: true,
autorestart: true,
notifications: {
PAUSE: "HOTWORD_PAUSE",
RESUME: "HOTWORD_RESUME",
LISTENING: "HOTWORD_LISTENING",
SLEEPING: "HOTWORD_SLEEPING",
ERROR: "HOTWORD_ERROR"
},
onDetected: {
notification: function(payload) {
return "ASSISTANT_ACTIVATE";
},
payload: function(payload) {
return {
profile: payload.hotword
};
}
}
}
},
You can give it a try .
Ejay