Read the statement by Michael Teeuw here.
MMM-AssistantMk2 with Google AIY
-
Hello,
I appreciate the reply!
I might be mistaken but I believe that I was running v3 of the module. Odd that it works for you but not for me. May be something with the hardware. I’m sure I’ll figure it out eventually though :thumbs_up:
-
Hey! Sorry for the late response. I’d love to try to configure it if you are still down!
-
so, what is the problem at now ?
memory issue ?
playback issue ?
configuring problem to find mic config ?for memory issue, i have some solutions …
if it’s for AMK2 memory, i have solution
if memory low is with MMM-Hotword, i have again a solution :)there many things to test :)
Ready ?
-
@Bugsounet Sorry I was away for a bit.
YES! I’m ready to try anything, including burning it all down and starting over. Let me know what I can do!
My issues do not SEEM to be mic or speaker configs. When I install the tests all work just great. I do seem to have memory issues.
Give me the tests! And thank you!
-
So go on :)
Generally memory problems are due to the use of sound via HTML5 (we don’t know really why)
Let’s turn off and use the “native” sound of rpi
in your config.js MMM-AssistantMk2
let’s turn off HTML5 sound by using
useHTML5: false
if this feature don’t exist in your configwiki can help you to find needed block to add it
Of course, you will have to restart MagicMiror after this modification
awaiting your first return
-
@Bugsounet said in MMM-AssistantMk2 with Google AIY:
useHTML5: false
I’ve had that one in my config all along, so yes, I’ve accomplished this first step a while ago, still have the problem.
-
@Bugsounet NO WAIT!
I did not configure properly! I did not realize the HTML5 option needed to be enclosed in the responseConfig section. Thanks for linking the wiki so I could double-check!
No response yet. This is AssistantMk2 with your own snowboy option selected and Hotword NOT enabled. I’m going to try Hotword again now.
-
ok , i wait
give me all log plz
and give me your config.js file
-
logs from pm2:
0|mm | [AMK2] MMM-AssistantMk2 Version: 3.1.0-3
0|mm | [AMK2] AssistantMk2 is initialized.
0|mm | [HOTWORD] begins.
0|mm | [HOTWORD] Detector starts listening.
0|mm | [HOTWORD] Detected: SMARTMIRROR
0|mm | [HOTWORD] After Recording: 4000
0|mm | [HOTWORD] After Recording: 4000
0|mm | [HOTWORD] After Recording: 4000
0|mm | [HOTWORD] After Recording: 4000
0|mm | [HOTWORD] stops.
0|mm | [HOTWORD] After Recording finised. size: 16050
0|mm | [HOTWORD:B2W] WAV_FILE_CREATED: /home/pi/MagicMirror/modules/MMM-Hotword/temp/afterRecording.wav 16050
0|mm | [HOTWORD] Final Result: { detected: true,
0|mm | hotword: ‘SMARTMIRROR’,
0|mm | file: ‘temp/afterRecording.wav’ }It is true, Hotword records a 16K file that seems to only include noise. It does recognize and pass me to AssistantMk2, but immediately says “I don’t understand” and then cannot be invoked again.
The file “temp/afterRecording.wav” exists, but it is a 0K file.
Config for MM sections are here:
{
module: “MMM-AssistantMk2”,
position: “top_left”,
config: {
assistantConfig: {
latitude: 51.508530,
longitude: -0.076132,
playProgram: “mpg321”,
},
responseConfig: {
useHTML5: false,
},
micConfig: { // put there configuration generated by auto-installer
recorder: “arecord”,
device: “plughw:0”,
},
}
},
{
module: “MMM-Hotword”,
position: “bottom_left”,
config: {
useDisplay: false,
chimeOnFinish: null,
recipes: [“with-AMk2v3_smart-mirror.js”],
mic: {
recordProgram: “arecord”,
device: “plughw:0”,
},
},
},Forum does not allow uploading the .js file, if you need the whole thing lemme know and I’ll put it up somewhere else.
-
{ module: "MMM-Hotword", position: "bottom_left", config: { useDisplay: false, chimeOnFinish: null, recipes: ["with-AMk2v3-noisy_smart-mirror.js"], mic: { recordProgram: "arecord", device: "plughw:0", }, }, },
can you retry with this MMM-Hotword configuration ?
edit 1: sorry, correct mismake
edit 2:
humm there is some mismake in your AMk2 config
i propose this AMk2 config :{ module: "MMM-AssistantMk2", position: "top_left", config: { debug: true, ui: "Fullscreen", assistantConfig: { latitude: 51.508530, longitude: -0.076132, }, responseConfig: { useHTML5: false, playProgram: "mpg321", useStaticIcons: false, }, micConfig: { recorder: "arecord", device: "plughw:0", }, recipes: [ "with-MMM-Hotword.js" ] profiles: { "default": { profileFile: "default.json", lang: "en-US" } }, addons: false, } }