• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Assistant Error

Scheduled Pinned Locked Moved Requests
17 Posts 6 Posters 7.8k Views 6 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    Chris @shep99
    last edited by Jan 7, 2018, 1:09 PM

    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,

    1 Reply Last reply Reply Quote 0
    • S Offline
      shep99
      last edited by Jan 8, 2018, 3:28 AM

      @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!

      ? 1 Reply Last reply Jan 14, 2018, 4:36 PM Reply Quote 0
      • C Offline
        Chris @shep99
        last edited by Jan 8, 2018, 10:10 PM

        @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:

        https://snowboy.kitt.ai/docs

        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,

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @shep99
          last edited by Jan 14, 2018, 4:36 PM

          @shep99
          Frankly, I have also pmdl problem. When I use umdl, everything is ok. But, pmdl is not worked properly, I don’t know why.

          1 Reply Last reply Reply Quote 0
          • E Offline
            E3V3A @shep99
            last edited by Mar 16, 2018, 9:00 AM

            @shep99 Can you please post your ALSA config?

            cat ~/.asoundrc
            cat /proc/asound/modules
            cat /proc/asound/devices
            

            Thanks.

            "Everything I do (here) is for free – altruism is the way!"
            MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

            1 Reply Last reply Reply Quote 0
            • E Offline
              E3V3A
              last edited by Mar 19, 2018, 2:58 PM

              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.

              "Everything I do (here) is for free – altruism is the way!"
              MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

              1 Reply Last reply Reply Quote 0
              • W Offline
                wonjerry
                last edited by wonjerry May 15, 2018, 2:42 AM May 15, 2018, 2:42 AM

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • W Offline
                  wonjerry
                  last edited by May 15, 2018, 2:51 AM

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • W Offline
                    wonjerry
                    last edited by May 15, 2018, 2:59 AM

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      wonjerry @Guest
                      last edited by May 15, 2018, 3:02 AM

                      @sean @shep99 @acogkenf

                      Hello I have solved this problem this way.

                      “npm install --runtime=electron --target=YOUR_ELECTRON_VERSION”

                      Specify the environment and version and you can load grpc in proper way

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 2 / 2
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy