Read the statement by Michael Teeuw here.
Problem with MMM-AssistantMk2 or MMM-Hotword
-
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 -
@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 -
@Sean
Thanks for that, a little bit more fiddling with it and i got it working.