Read the statement by Michael Teeuw here.
MMM-AI
-
@justjim1220
Yes everything is possible .
It’s just different gif ani .
So you can make gif with your family members from a video and convert it to gif .I’m using crazy head to transform a static picture into a moving / talking avatar .
Then some photoshop to finalize the gif.Ejay
-
@ejay-ibm Thanks
I would like to implement it a bit different.
I would like no image unless the mirror is called.
I found a trigger “ASSISTANT_RESPONSE_END : this notification will be bursted when Assistant’s voice responsing is ended.”
I just dont know what code I need to put to make the image not appear other than putting a blank gif file. I assume there is a proper code. -
@justjim1220 This is amazing
I was able to use the sample and also make an account but I cant figure how to get a gif from it to use in Magic Mirror. Any ideas? -
@teitlebot You need to export as a movie, Then make an import as frame in photoshop
This will give you an idea
https://graphicdesign.stackexchange.com/questions/46656/how-to-convert-a-video-file-into-an-animated-gif-in-photoshopEjay
-
@teitlebot I would use a black pixel image as no image
you can find all you need here
https://github.com/aureooms/pixelsEjay
-
@ejay-ibm thanks. I figured there was a proper way to code a picture to be gone but this will work I guess. Thanks
-
@teitlebot @Sean Any idea how I can get it to fade the face on and off from the black pixel?
-
@teitlebot Hi would do it from photophop as part of the animation . But their’s maybe a way to do it in javascript but that would need some additional implementation in the modules .
Working with the gif is more flexible in my taste .
Ejay
-
update to Sean,
Hi @Sean , Hi @ejay-ibm y sorry for the possible stupid question but it’s not clear to me what i should put in config file esp. in both trigger lines.
I am using both Mk2 AND hotword together… so a bit confusion here…trigger: "HOTWORD_RESUME", // HOTWORD_LISTENING if you use MMM-HOTWORD or HOTWORD_RESUME if you use MMM-AssistantMk2
trigger: "ASSISTANT_UNDERSTOOD", // HOTWORD_SLEEPING if you use MMM-HOTWORD or HOTWORD_PAUSE if you use MMM-AssistantMk2
Also the i am not able to make the jarvis-talk2.gif “talk”
thx for your clarification -
@bibi
This is my code, it workes welltriggers: [ { trigger: "ASSISTANT_RESPONSE_END", fires: [ { fire: "standby_Image", payload: payload => { var img = document.getElementById("MY_ANIMATION"); img.src = "modules/MMM-AI/jarvis-standby2.gif"; return payload; } } ] }, { trigger: "ASSISTANT_UNDERSTOOD", fires: [ { fire: "talk Image", payload: payload => { var img = document.getElementById("MY_ANIMATION"); img.src = "modules/MMM-AI/jarvis-talk2.gif"; return payload; } } ] } ]