Thanks very much @sean appreciated. I did re install, and ran google-auth then electron-rebuild. After that, I did have to rename the folders from electron-v1.4-linux-arm-{libc} to electron-v1.4-linux-arm-glibc and everything loaded! :) I created my own models smartmirror.pmdl, and snowboy.pmdl ) with snowboy from the RPI that is running MM with the MIC, and running the following two commands I can record and play back WAV files with arecord:
arecord --device=plughw:1,0 --format S16_LE --rate 44100 -c1 test.wav
aplay --device=plughw:0,0 test.wav
When MM startups up, I can here an initial ding, but cannot trigger any key word detection for some reason? I was wondering if my config might be off? Below is my configuration:
{
module: 'MMM-Assistant',
position: 'bottom_left',
config: {
assistant: {
auth: {
keyFilePath: "secret.json", //When you want to change the location of this file, set this.
savedTokensPath: "resources/tokens.js" //When you want to change the location of this file, set this.
},
audio: {
encodingIn: "LINEAR16", //Ignore this. I think you don't need to change this.
sampleRateOut: 16000 //Ignore this. I think you don't need to change this.
}
},
snowboy: {
models: [
{
file: "resources/smartmirror.pmdl",
sensitivity: 0.5,
hotwords : "MIRROR" //One of models should be "MIRROR"
},
{
file: "resources/snowboy.pmdl",
sensitivity: 0.5,
hotwords : "ASSISTANT" //One of models should be "ASSISTANT"
}
]
},
record: {
threshold: 0, //Ignore this. I think you don't need to change this.
verbose:false, //true for checking recording status.
recordProgram: 'arecord', //You can use 'rec', 'sox'. But I recommend use 'arecord'.
silence: 2.0 //Ignore this. I think you don't need to change this.
},
stt: {
auth: [{
projectId: 'smartmirror-XXXXX-REMOVED', //ProjectId from Google Console
keyFilename: 'config.stt.auth.json'
}], //You can use multi accounts for saving money.
request: {
encoding: 'LINEAR16', //Ignore this. I think you don't need to change this.
sampleRateHertz: 16000, //Ignore this. I think you don't need to change this.
languageCode: 'en-US' //See https://cloud.google.com/speech/docs/languages
},
},
speak: {
useAlert: true, //If you want to show the text of speech, set this true. But It could be ignored by command of modules directly.
language: 'en-US', //If you want to set the default language of speech of command result, set this.
},
alias: [
{
"help :command" : ["teach me :command", "what is :command"]
}
] // You can use aliases for difficult pronunciation or easy using.
}
},
I am trying to activate using snowboy, smartmirror, assistant, google, etc but it never triggers.
Thanks @sean really appreciated.