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.

    Problem with MMM-AssistantMk2 or MMM-Hotword

    Scheduled Pinned Locked Moved Solved Troubleshooting
    3 Posts 2 Posters 601 Views 2 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.
    • B Offline
      banbutcher
      last edited by

      hi all,
      pretty new to MM, been trawling trough the net trying to solve an issue i have with either one of MMM-AssistantMk2 or MMM-Hotword… My problen is after i have said the hotword “computer” google will do its thing but after its finished i cant say “computer” again and have hotword respond a second time. have tried many different variations but nothimg works! :(

      config file:

      {
       module: "MMM-Hotword",
        position: "top_right",
        config: {
          useDisplay: true,	
          chimeOnFinish: null,
          restart: true,
          autorestart: true,
          recipes: ["with-AMk2v3_computer.js"],
          mic: {
            recordProgram: "arecord",
            device: "plughw:1,0"
          },
      
        },
      },
      
      
      {
      module: "MMM-AssistantMk2",
      position: "top_right",
      config: {
      	deviceLocation: {
      		coordinates: { // set the latitude and longitude of the device to get localized information like weather or time. (ref. mygeoposition.com)
      	        latitude: -43.5517212,
      	        longitude: 172.6340733,
      		},
      	},
      	record: {
      		recordProgram : "arecord",  
      		device        : "plughw:1,0",
      	},
      	notifications: {
      		ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
      		ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
      	},
      	//useWelcomeMessage: "brief today",
      	profiles: {
      		"default" : {
      			lang: "en-US"
      		}
      	},
           }
      },
      

      This is what comes up in command prompt:

      [23:18:05.091] [LOG]    Use existing news fetcher for url: https://www.nytimes.com/services/xml/rss/nyt/HomePage.xml
      [23:18:05.111] [LOG]    Use existing news fetcher for url: https://www.stuff.co.nz/rss
      [23:18:05.130] [LOG]    Use existing news fetcher for url: https://www.techmeme.com/feed.xml?x=1
      [23:18:05.156] [LOG]    Use existing news fetcher for url: https://www.technologyreview.com/topnews.rss
      [23:18:05.187] [LOG]    [HOTWORD] Recipe is loaded: with-AMk2v3_computer.js
      [23:18:05.198] [LOG]    [AMK2] MMM-AssistantMk2 Version: 3.1.1-0
      [23:18:05.309] [LOG]    [AMK2] AssistantMk2 is initialized.
      [23:18:05.806] [LOG]    [HOTWORD] begins.
      [23:18:05.807] [LOG]    [HOTWORD] Detector starts listening.
      [23:18:06.155] [LOG]    [MMM-Spotify] Starting
      [23:18:17.951] [LOG]    [HOTWORD] Detected: computer
      [23:18:18.219] [LOG]    [HOTWORD] After Recording: 4000
      [23:18:18.424] [LOG]    [HOTWORD] After Recording: 4000
      [23:18:18.462] [LOG]    [HOTWORD] After Recording: 4000
      [23:18:18.581] [LOG]    [HOTWORD] After Recording: 4000
      [23:18:18.691] [LOG]    [HOTWORD] After Recording: 4000
      [23:18:18.826] [LOG]    [HOTWORD] After Recording: 4000
      [23:18:18.944] [LOG]    [HOTWORD] After Recording: 4000
      [23:18:19.076] [LOG]    [HOTWORD] After Recording: 4000
      [23:18:19.191] [LOG]    [HOTWORD] After Recording: 4000
      [23:18:20.311] [LOG]    [HOTWORD] stops.
      [23:18:20.319] [LOG]    [HOTWORD] After Recording finised. size: 36050
      [23:18:20.335] [LOG]    [HOTWORD:B2W] WAV_FILE_CREATED: /home/pi/MagicMirror/modules/MMM-Hotword/temp/afterRecording.wav 36050
      [23:18:20.336] [LOG]    [HOTWORD] Final Result: { detected: true,
        hotword: 'computer',
        file: 'temp/afterRecording.wav' }
      

      i cant find the proper log files to give more info. But if you need any more deetails let me know, there probably is something obvious that im leaving out, my brain is fried so cant think!! :D

      Thanks in advance,
      Richie

      ? 1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User @banbutcher
        last edited by

        @banbutcher
        You’ve used V2 configuration for Hotword and AMK2. Since update V3 of AMK2, Hotword and AMK2’s configuration should be ruled on the convention of V3. Read the docs.
        https://github.com/eouia/MMM-AssistantMk2/wiki/Configuration-Sample

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          banbutcher @Guest
          last edited by

          @Sean
          Thanks for that, a little bit more fiddling with it and i got it working.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • 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