Read the statement by Michael Teeuw here.
Assistant Error
-
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,
-
@sean is it possible you can elaborate on these settings in config? I only want to use Google assistant, so have commented out the “MIRROR” hotword, but sometime the MIC picks up on words that are not like my trained model, and sits on the assistant logo waiting for something, and there’s no way to get out of it without restarting the mirror. ie, these settings in particular:
sensitivity:
{ file: "resources/google.pmdl", sensitivity: 0.7, hotwords : "ASSISTANT" //One of models should be "ASSISTANT" }
silence and verbose:
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. },
Thanks again!
-
@shep99 said in Assistant Error:
Just wanted to repost here, @sean thanks and got it going. This is an INCREDIBLE module and thank you. My problem was with my MIC after setup. If anyone else is coming across this, this link here helped to get my MIC setup properly:
Great module @sean absolutely incredible! Thanks
Hello,
I still have problems to use despite several unsuccessful attempts.
Could you detail the installation procedure you used?
Thank you in advance,
-
@shep99
Frankly, I have alsopmdl
problem. When I useumdl
, everything is ok. But,pmdl
is not worked properly, I don’t know why. -
@shep99 Can you please post your ALSA config?
cat ~/.asoundrc cat /proc/asound/modules cat /proc/asound/devices
Thanks.
-
Just want to tell everyone that this module works very well.
I had some initial compile issues and trying to get the correct GA authentication, but after that it worked.Now, I’m looking at Alexa, since I’d like both Alexa and GA + MM working.
Please see the github issue for solution in case you missed it. -
This post is deleted! -
This post is deleted! -
This post is deleted! -