MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

Issue with Google assistant



  • Hi

    I’m trying to add google assistant to magicmirror on my pi3B but i’ve got some issue

    MagicMirror 2.10.1
    MMM-AssistantMK2 3…1.0-3
    MMM-Hotword 2.1.0

    Everyting seems to be ok but, when i say “smart mirror” it open google assistant mk 2, but assistant don’t hear my voice…

    after timeout, smartmirror don’t going back to “start listening”

    [16:28:01.266] [LOG]    [AMK2] MMM-AssistantMk2 Version: 3.1.0-3
    [16:28:01.311] [LOG]    [AMK2] AssistantMk2 is initialized.
    [16:28:01.396] [LOG]    [HOTWORD] begins.
    [16:28:01.401] [LOG]    [HOTWORD] Detector starts listening.
    [16:28:32.646] [LOG]    [HOTWORD] Detected: smart_mirror
    [16:28:32.649] [LOG]    [HOTWORD] stops.
    [16:28:32.657] [LOG]    [HOTWORD] Final Result: { detected: true, hotword: 'smart_mirror', file: null }
    [2379:0208/162859.202485:ERROR:CONSOLE(22)] "Empty response arrived for script 'chrome-devtools://devtools/remote/serve_file/@164c37e3f2351fgdfgdfgfdfgdgfdgdfdgf00/accessibility/accessibility_module.js'", source: chrome-devtools://devtools/bundled/shell.js (22)
    [2379:0208/162859.202857:ERROR:CONSOLE(106)] "Uncaught (in promise) Error: Could not instantiate: Accessibility.AccessibilitySidebarView", source: chrome-devtools://devtools/bundled/shell.js (106)
    

    Here is my config.js module part

    				{
    						module: "MMM-Hotword",
    						position: "top_right",
    						config: {
    							chimeOnFinish: null,
    							mic: {
    								recordProgram: "arecord",
    								device: "plughw:1"
    							},
    							models: [
    								{
    									hotwords    : "smart_mirror",
    									file        : "smart_mirror.umdl",
    									sensitivity : "0.5",
    								},
    							],
    							commands: {
    								"smart_mirror": {
    									notificationExec: {
    										notification: "ASSISTANT_ACTIVATE",
    										payload: (detected, afterRecord) => {
    											return {profile:"default"}
    										}
    									},
    									restart:false,
    									afterRecordLimit:0
    								}
    							}
    						}
    					},
    					{
    						module: "MMM-AssistantMk2",
    						position: "top_right",
    						config: {
    							deviceLocation: {
    								coordinates: {
    									latitude: xxxxxxxxxxxxxxxx, // -90.0 - +90.0
    									longitude: xxxxxxxxxxxxxxx, // -180.0 - +180.0
    								},
    							},
    							record: {
    								recordProgram : "arecord",  
    								device        : "plughw:1",
    							},
    							notifications: {
    								ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
    								ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
    							},
    							useWelcomeMessage: "",
    							profiles: {
    								"default" : {
    									lang: "fr-FR"
    								}
    							},
    						}
    					},				
    
    

    Could you please help me to find my mistake ?



  • forget it, just see that mk2 config file change
    Now my last issue is to set google in french 😃


Log in to reply