Hello,
I am trying to run this module but I am having problems.
Indeed I installed it by following all your previous indications.
The mirror is launched correctly and I have the beep module start.
If I call the module with the keyword, it triggers. I ask my question and I only have a hatched voice in response.
I did not have any problems of this type with open-jarvis which is also based on snowboy.
I of course neutralize open jarvis to avoid conflicts on the sound card.
I think I missed a step on the setup.
The config.stt.auth.json file is placed in the resources folder or in the MMM-Assistant folder?
When I go on the google developer console, I see requests for the google assistant API but no requests for Google Cloud Speech API.
I add my boot log:
pi@raspberrypi:~/MagicMirror $ npm start dev
> magicmirror@2.2.1 start /home/pi/MagicMirror
> sh run-start.sh "dev"
Starting MagicMirror: v2.2.1
Loading config ...
Loading module helpers ...
No helper found for module: alert.
Initializing new module helper ...
Module helper loaded: updatenotification
No helper found for module: calendar_monthly.
Initializing new module helper ...
Module helper loaded: calendar
Initializing new module helper ...
Module helper loaded: MMM-MyCommute
Initializing new module helper ...
Module helper loaded: MMM-Ratp
Initializing new module helper ...
Module helper loaded: MMM-SoccerLiveScore
Initializing new module helper ...
Module helper loaded: MMM-soccer
No helper found for module: MMM-Globe.
Initializing new module helper ...
Module helper loaded: MMM-Remote-Control
No helper found for module: clock.
Initializing new module helper ...
Module helper loaded: mmm-suncalc
Initializing new module helper ...
Module helper loaded: MMM-WunderGround
Initializing new module helper ...
Module helper loaded: MMM-NOAA
No helper found for module: mmm-wu-moonphase.
Initializing new module helper ...
Module helper loaded: MMM-Assistant
Initializing new module helper ...
Module helper loaded: MMM-Tools
Initializing new module helper ...
Module helper loaded: newsfeed
No helper found for module: MMM-Snow.
All module helpers loaded.
Starting server on port 8080 ...
Server started ...
Connecting socket for: updatenotification
Connecting socket for: calendar
Starting node helper for: calendar
Connecting socket for: MMM-MyCommute
====================== Starting node_helper for module [MMM-MyCommute]
Connecting socket for: MMM-Ratp
MMM-Ratp- NodeHelper started
Connecting socket for: MMM-SoccerLiveScore
MMM-SoccerLiveScore helper started...
Connecting socket for: MMM-soccer
Starting module: MMM-soccer
Connecting socket for: MMM-Remote-Control
Starting node helper for: MMM-Remote-Control
Connecting socket for: mmm-suncalc
Starting node_helper for mmm-suncalc:
Connecting socket for: MMM-WunderGround
MMM-WunderGround helper started ...
Connecting socket for: MMM-NOAA
Starting module: MMM-NOAA
Connecting socket for: MMM-Assistant
Connecting socket for: MMM-Tools
Connecting socket for: newsfeed
Starting module: newsfeed
Sockets connected & modules started ...
Launching application.
Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/XXX/private-XXX/basic.ics - Interval: 300000
Get league table for url http://api.football-data.org/v1/competitions/450/leagueTable
GET_WUNDERGROUND
[ASSTNT] Snowboy Activated
Create new news fetcher for url: http://www.leparisien.fr/actualites-a-la-une.rss.xml#xtor=RSS-1481423633 - Interval: 300000
[ASSTNT] Assistant Activated
[ASSTNT] GA Transcription: don't wanna meet you to do now
[ASSTNT] Snowboy Activated
as well as my config file:
{
module: "MMM-Assistant",
position: "top_right",
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/miroir.pmdl",
sensitivity: 0.5,
hotwords : "MIRROR" //One of models should be "MIRROR"
},
{
file: "resources/Ok Google.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: "my-project-1505046981535", //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: "fr-FR" //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: "fr-FR", //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.
}
},
Hoping you can help me,
Regards,