Bugsounet Coding

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    Solved Issue getting Google-Assistant V3 working

    Issues
    4
    21
    217
    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.
    • P
      prinz last edited by

      Hello Guys,
      I have installed everything as described in the tutorials.
      The installation was done without any problems.
      when executing MagicMirror and trying the use the keywords, i get no reaction.
      here are the messages
      [29.09.2021 20:33.15.045] [LOG] [GA] MMM-GoogleAssistant Version: 3.0.7 rev: 210925-2
      [29.09.2021 20:33.15.056] [LOG] [GA] All needed @bugsounet library loaded !
      [29.09.2021 20:33.15.062] [LOG] [NPM] Initialized v0.9.96
      [29.09.2021 20:33.15.443] [LOG] [GA] Google Assistant is initialized.
      [29.09.2021 20:33.15.453] [LOG] [DETECTOR] All needed @bugsounet library loaded !
      [29.09.2021 20:33.15.454] [LOG] [NPM] Initialized v0.9.96
      [29.09.2021 20:33.15.581] [LOG] [DETECTOR] Platform: ‘raspberry-pi’; attempting to use ‘arecord’ to access microphone …
      [29.09.2021 20:33.15.617] [LOG] [DETECTOR] Porcupine is initialized with 4 Models: ok google,hey google,ok google,hey google
      [29.09.2021 20:33.15.622] [LOG] [DETECTOR] Snowboy is initialized with 2 Models: jarvis,alexa
      [29.09.2021 20:33.15.883] [LOG] [DETECTOR] Starts listening. 10 Models
      [29.09.2021 20:33.16.402] [LOG] 200[object Object]
      [29.09.2021 20:33.16.411] [LOG] Refreshed access token because it has expired. Expired at: 20:33:14 now is: 20:33:16
      [29.09.2021 20:33.16.415] [LOG] Refreshed access token because it has expired. Expired at: 21:33:16 now is: 20:33:16
      [29.09.2021 20:33.16.487] [LOG] Refreshed access token because it has expired. Expired at: 21:33:16 now is: 20:33:16

      1 Reply Last reply Reply Quote 0
      • D
        DJB1966 Helpers last edited by

        In your config is it set to

        micConfig: {
          recorder: "arecord",
          device: "default"
        },
        
        P 1 Reply Last reply Reply Quote 0
        • P
          prinz @DJB1966 last edited by

          @djb1966 said in Issue getting Google-Assistant V3 working:

          In your config is it set to

          micConfig: {
            recorder: "arecord",
            device: "default"
          },
          

          I have already uncommented it but still no reaction

          1 Reply Last reply Reply Quote 0
          • D
            DJB1966 Helpers last edited by DJB1966

            Is your Mic a usb mic or Aux

            1 Reply Last reply Reply Quote 0
            • P
              prinz last edited by

              Yes it’s an usb mic

              1 Reply Last reply Reply Quote 0
              • P
                prinz last edited by

                I have tested the mic and the speaker. Both are working

                1 Reply Last reply Reply Quote 0
                • D
                  DJB1966 Helpers last edited by

                  post GA and Detector config please.

                  P 1 Reply Last reply Reply Quote 0
                  • P
                    prinz @DJB1966 last edited by

                    @djb1966 said in Issue getting Google-Assistant V3 working:

                    post GA and Detector config please.

                    {
                    			  module: "MMM-Detector",
                    			  position: "top_left",
                    			  configDeepMerge: true,
                    			  config: {
                    				debug: false,
                    				autoStart: true,
                    				useLogos: true,
                    				/*micConfig: {
                    				  recorder: "auto",
                    				  device: "default",*/
                    				  // only for snowboy:
                    				  audioGain: 2.0,
                    				  applyFrontend: true // When you use only `snowboy` and `smart_mirror`, `false` is better. But with other models, `true` is better.
                    				},
                    				newLogos: {
                    				  default: "default.png"
                    				},
                    				detectors: [
                    				  {
                    					detector: "Snowboy",
                    					Model: "jarvis",
                    					Sensitivity: null,
                    					Logo: "google",
                    					autoRestart: false,
                    					onDetected: {
                    					  notification: "GA_ACTIVATE"
                    					}
                    				  },
                    				  {
                    					detector: "Snowboy",
                    					Model: "alexa",
                    					Sensitivity: null,
                    					Logo: "alexa",
                    					autoRestart: false,
                    					onDetected: {
                    					  notification: "ALEXA_ACTIVATE"
                    					}
                    				  },
                    				  {
                    					detector: "Porcupine",
                    					Model: "ok google",
                    					Sensitivity: null,
                    					Logo: "google",
                    					autoRestart: false,
                    					onDetected: {
                    					  notification: "GA_ACTIVATE"
                    					}
                    				  },
                    				  {
                    					detector: "Porcupine",
                    					Model: "hey google",
                    					Sensitivity: null,
                    					Logo: "google",
                    					autoRestart: false,
                    					onDetected: {
                    					  notification: "GA_ACTIVATE"
                    					}
                    				  }
                    				],
                    				NPMCheck: {
                    				  useChecker: true,
                    				  delay: 10 * 60 * 1000,
                    				  useAlert: true
                    				}
                    			  },
                    			
                    			
                    							{
                    			  module: "MMM-GoogleAssistant",
                    			  position: "top_left",
                    			  configDeepMerge: true,
                    			  config: {
                    				debug: false,
                    				assistantConfig: {
                    					
                    				  lang: "en-US",
                    				  projectId: "", // Required to use gaction.
                    				  modelId: "", // (OPTIONAL for gaction)
                    				  instanceId: "", // (OPTIONAL for gaction)
                    				  latitude: 49.447781,
                    				  longitude: 11.06833,
                    				},
                    				responseConfig: {
                    				useScreenOutput: true,
                    				  screenOutputCSS: "screen_output.css",
                    				  screenOutputTimer: 5000,
                    				  screenRotate: false,
                    				  activateDelay: 250,
                    				  useAudioOutput: true,
                    				  useChime: true,
                    				  newChime: false,
                    				  useNative: true,
                    				  playProgram: "mpg123"
                    				  chimes: {},
                    				  imgStatus: {},
                    				  zoom: {}
                    				},
                    				
                    				Extented: {
                    				  useEXT: false,
                    				  youtube: {},
                    				  links: {},
                    				  photos: {},
                    				  volume: {},
                    				  welcome: {},
                    				  screen: {},
                    				  touch: {},
                    				  pir: {},
                    				  governor: {},
                    				  internet: {},
                    				  cast: {},
                    				  spotify: {
                    					useSpotify: true,
                    					visual: {},
                    					player: {}
                    				  },
                    				},
                    				recipes: [],
                    				NPMCheck: {}
                    			  }
                    			},
                    
                    1 Reply Last reply Reply Quote 0
                    • D
                      DJB1966 Helpers last edited by DJB1966

                      @prinz said in Issue getting Google-Assistant V3 working:

                      {
                      			  module: "MMM-Detector",
                      			  position: "top_left",
                      			  configDeepMerge: true,
                      			  config: {
                      				debug: false,
                      				autoStart: true,
                      				useLogos: true,
                      				/*micConfig: {
                      				  recorder: "auto",
                      				  device: "default",*/
                      				  // only for snowboy:
                      				  audioGain: 2.0,
                      				  applyFrontend: true // When you use only `snowboy` and `smart_mirror`, `false` is better. But with other models, `true` is better.
                      				},
                      

                      Try Fixing

                      useLogos: true,
                          micConfig: {
                            recorder: "auto",
                            device: "default",
                            // only for snowboy:
                            audioGain: 2.0,
                      

                      Can i ask you were you got config info from please a link please??

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        prinz @DJB1966 last edited by

                        @djb1966 said in Issue getting Google-Assistant V3 working:

                        @prinz said in Issue getting Google-Assistant V3 working:

                        {
                        			  module: "MMM-Detector",
                        			  position: "top_left",
                        			  configDeepMerge: true,
                        			  config: {
                        				debug: false,
                        				autoStart: true,
                        				useLogos: true,
                        				/*micConfig: {
                        				  recorder: "auto",
                        				  device: "default",*/
                        				  // only for snowboy:
                        				  audioGain: 2.0,
                        				  applyFrontend: true // When you use only `snowboy` and `smart_mirror`, `false` is better. But with other models, `true` is better.
                        				},
                        

                        Try Fixing

                        useLogos: true,
                            micConfig: {
                              recorder: "auto",
                              device: "default",
                              // only for snowboy:
                              audioGain: 2.0,
                        

                        Can i ask you were you got config info from please a link please??

                        Same thing, no reaction from GAm could you please send your configuration for GA and Detector ?
                        I got the config file from here
                        https://www.youtube.com/watch?v=xVhqP3fBnVM

                        1 Reply Last reply Reply Quote 0
                        • bugsounet
                          bugsounet Main Coder last edited by

                          Can you explain more?

                          Related to GA: Google icon blink and GA not respond?
                          Related to Detector: Google icon not blink on calling keyword

                          1 Reply Last reply Reply Quote 0
                          • P
                            prinz last edited by

                            Hi Bugsounet,
                            GA: Google Icon doesn’t blink and GA not responding
                            Detector:Same thing and no reaction when calling keyword 😞

                            bugsounet 1 Reply Last reply Reply Quote 0
                            • D
                              DJB1966 Helpers last edited by

                              Here is config Wiki http://wiki.bugsounet.fr/en/MMM-Detector/configurationSample use it

                              1 Reply Last reply Reply Quote 0
                              • D
                                DJB1966 Helpers last edited by

                                Your config has useNative: true, playProgram: "mpg123"

                                Yours

                                responseConfig: {
                                  useResponseOutput: true,
                                  responseOutputCSS: "response_output.css",
                                  screenOutputTimer: 5000,
                                  activateDelay: 250,
                                  useAudioOutput: true,
                                  useChime: true,
                                  newChime: false,
                                  useNative: true,
                                  playProgram: "mpg123''
                                  chimes: {},
                                }
                                

                                Wiki

                                responseConfig: {
                                  useFullscreen: false,
                                  useResponseOutput: true,
                                  responseOutputCSS: "response_output.css",
                                  screenOutputTimer: 5000,
                                  activateDelay: 250,
                                  useAudioOutput: true,
                                  useChime: true,
                                  confirmationChime: true,
                                  useInformations: true
                                }
                                

                                can you add useFullscreen: true,

                                can you remove
                                newChime: false, useNative: true, playProgram: "mpg123"
                                Reboot pi and try.

                                1 Reply Last reply Reply Quote 0
                                • bugsounet
                                  bugsounet Main Coder @prinz last edited by

                                  @prinz so it’s not an issue for GA.
                                  It’s an detector issue

                                  Verify, mic level mixer (pulse audio input) and verify it’s not muted
                                  Maybe increase sensibility of detector
                                  See wiki of detector for that

                                  1 Reply Last reply Reply Quote 0
                                  • bugsounet
                                    bugsounet Main Coder last edited by

                                    And please stop merging conf of v2/v3 of GA, it’s better way to do bad things 😉

                                    1 Reply Last reply Reply Quote 0
                                    • P
                                      prinz last edited by

                                      It worked now 🙂
                                      But i couldn’t start youtube, it says I cant start Apps on this device although I have enabled Youtube Data Api V3
                                      Could you help please

                                      1 Reply Last reply Reply Quote 0
                                      • pitchx
                                        pitchx BetaTester Helpers last edited by

                                        http://wiki.bugsounet.fr/en/MMM-GoogleAssistant/YouTube

                                        You have to install a new API from the google developers console

                                        You have to activate the YouTube Data API v3
                                        Install the token for Youtube using (in MMM-GoogleAssistant):

                                        P 1 Reply Last reply Reply Quote 0
                                        • P
                                          prinz @pitchx last edited by

                                          @pitchx said in Issue getting Google-Assistant V3 working:

                                          http://wiki.bugsounet.fr/en/MMM-GoogleAssistant/YouTube

                                          You have to install a new API from the google developers console

                                          You have to activate the YouTube Data API v3
                                          Install the token for Youtube using (in MMM-GoogleAssistant):

                                          Hi Guys,
                                          I have done all the steps again, the detector is reacting, its trying to open youtube but it seems to be impossible. Please check the log
                                          [01.10.2021 09:32.53.770] [LOG] [PORCUPINE] Detected ‘ok google’
                                          [01.10.2021 09:32.53.774] [LOG] [PORCUPINE] Stops listening.
                                          [01.10.2021 09:32.53.777] [LOG] [SNOWBOY] Stops listening.
                                          [01.10.2021 09:32.53.780] [LOG] [DETECTOR] Stops listening.
                                          [01.10.2021 09:32.53.905] [LOG] [LPCM16] Stop listening
                                          [01.10.2021 09:32.53.911] [LOG] [LPCM16] Stop listening
                                          [01.10.2021 09:33.14.329] [LOG] [GA] Found YouTube Title: Michael Jackson - Smooth Criminal (Official Video) - videoId: h_D3VFfhvs4
                                          [01.10.2021 09:33.15.813] [LOG] [PORCUPINE] Ready for listening this wake word(s): ok google,hey google

                                          1 Reply Last reply Reply Quote 0
                                          • bugsounet
                                            bugsounet Main Coder last edited by

                                            Hi, I advise you to read:

                                            • This part in forum ?
                                            • This part in wiki ?
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB | @bugsounet ©2022