Read the statement by Michael Teeuw here.
Hello-Lucy
-
Hi @Mykle1 I don’t want to pollute your thread if my post isn’t appropriate here i’ll create a new one.
I love the animated avatar, could you point me where did you get it ?
I’m looking for 2 of the same kind. One like you have, the other with moving lips so it would look like it talk when the assistant reply to you with her voice. I have in mind how to achieve this, but I’m missing the gif sources .
Thank youEjay
-
@ejay-ibm
Check this out: Original animated gif can be gotten here. It’s 60+ MB. https://github.com/HackerHouseYT/AI-Smart-Mirror/blob/master/magic_mirror/aiclient/face.gif.
It is copy pasted from Mykles1’s README file. I hope this is what you are looking for. -
@anthony Thanks , I’m looking now for the same with animated lips
https://giphy.com/gifs/geocities-sl5XI0eWn5IjK
Something like this with more style. ^^I’ll see if I can work with the 60mb file and make it move the lips .
thank you
-
-
Have you replaced the correct files as per the readme? There are 2 folders in the Hello-Lucy repo. You have to take the files from them and put them where they belong according to the README. Not all default MM modules work automatically.
-
I ant to believe that everything have been done correctly:
- Add in my modules.js folder the lines for voice control after the return wrapper.
- Add in the new voice_helper.js the lines for the new module (at the end of the last you have added) And change the names accordingly.
- In the new MMM-Voice.js folder a) add the module to the page I want to be shown and b) add the show/commands of the module again at the end of the last you have added. And every name is changed accordingly to the modules I added. The problem is that it doesn’t hear at all. My mic works when I test it. Yesterday in one of my attemps after “Magic Mirror” the mic icon started flashing and
i said some commands and Lucy understand. But after a few seconds no more listening. And from then when I restart MM I get a blach screen (start hidden) and the mic icon with "Say, ‘Hello Lucy’ and whatever I say it stays still.
Here is the MMM-voice.js with the pages of the modules I added:
else if (notification === 'SHOW_PAGE_ONE') { MM.getModules().enumerate((module) => { module.hide(1000); }); this.sendNotification('SHOW_CALENDAR'); this.sendNotification('SHOW_CLOCK'); this.sendNotification('SHOW_COMPLIMENTS'); this.sendNotification('SHOW_COWBOY'); this.sendNotification('SHOW_EARTH'); this.sendNotification('SHOW_NEWS'); this.sendNotification('SHOW_STATS'); this.sendNotification('SHOW_VOICE'); this.sendNotification('SHOW_REMOTECONTROL'); } else if (notification === 'HIDE_PAGE_ONE') { MM.getModules().enumerate((module) => { module.hide(1000); }); /////////////////////////////////////////////////////////////////////////////////////////////// } else if (notification === 'SHOW_PAGE_TWO') { MM.getModules().enumerate((module) => { module.hide(1000); }); this.sendNotification('SHOW_MOVIES'); this.sendNotification('SHOW_HOROSCOPE'); this.sendNotification('SHOW_HISTORY'); this.sendNotification('SHOW_RECIPE'); this.sendNotification('SHOW_MOON'); this.sendNotification('SHOW_COCKTAILS'); this.sendNotification('SHOW_VOICE'); this.sendNotification('SHOW_REMOTECONTROL'); } else if (notification === 'HIDE_PAGE_TWO') { MM.getModules().enumerate((module) => { module.hide(1000); }); //////////////////////////////////////////////////////////////////////////////////////////////// } else if (notification === 'SHOW_PAGE_THREE') { MM.getModules().enumerate((module) => { module.hide(1000); }); this.sendNotification('SHOW_RADIO'); this.sendNotification('SHOW_PHOTOS'); this.sendNotification('SHOW_VOICE'); this.sendNotification('SHOW_REMOTECONTROL'); } else if (notification === 'HIDE_PAGE_THREE') { MM.getModules().enumerate((module) => { module.hide(1000); }); /////////////////////////////////////////////////////////////////////////////////////////////// } else if (notification === 'SHOW_PAGE_FOUR') { MM.getModules().enumerate((module) => { module.hide(1000); }); this.sendNotification('SHOW_DARWIN'); this.sendNotification('SHOW_FLIPPER'); this.sendNotification('SHOW_PICTURES'); this.sendNotification('SHOW_BACKGROUND'); this.sendNotification('SHOW_PILOTS'); this.sendNotification('SHOW_TIDES'); this.sendNotification('SHOW_EYECANDY'); this.sendNotification('SHOW_LICE'); this.sendNotification('SHOW_LOTTERY'); this.sendNotification('SHOW_FAX'); this.sendNotification('SHOW_NASA'); this.sendNotification('SHOW_ALARM'); this.sendNotification('SHOW_WEATHER'); this.sendNotification('SHOW_VOICE'); this.sendNotification('SHOW_REMOTECONTROL'); } else if (notification === 'HIDE_PAGE_FOUR') { MM.getModules().enumerate((module) => { module.hide(1000); });
And here is the same folder with the show/hide commands of the new modules:
// MMM-voice sends notification to MMM-RadioDe to HIDE else if (notification === 'HIDE_RADIO') { this.sendNotification('HIDE_RADIO'); } // MMM-voice sends notification to MMM-RadioDe to SHOW else if (notification === 'SHOW_RADIO') { this.sendNotification('SHOW_RADIO'); } // MMM-voice sends notification to MMM-MovieInfo to HIDE else if (notification === 'HIDE_MOVIES') { this.sendNotification('HIDE_MOVIES'); } // MMM-voice sends notification to MMM-MovieInfo to SHOW else if (notification === 'SHOW_MOVIES') { this.sendNotification('SHOW_MOVIES'); } // MMM-voice sends notification to MMM-horoscope to HIDE else if (notification === 'HIDE_HOROSCOPE') { this.sendNotification('HIDE_HOROSCOPE'); } // MMM-voice sends notification to MMM-horoscope to SHOW else if (notification === 'SHOW_HOROSCOPE') { this.sendNotification('SHOW_HOROSCOPE'); } // MMM-voice sends notification to MMM-History to HIDE else if (notification === 'HIDE_HISTORY') { this.sendNotification('HIDE_HISTORY'); } // MMM-voice sends notification to MMM-History to SHOW else if (notification === 'SHOW_HISTORY') { this.sendNotification('SHOW_HISTORY'); } // MMM-voice sends notification to MMM-ImageSlideShow to HIDE else if (notification === 'HIDE_PHOTOS') { this.sendNotification('HIDE_PHOTOS'); } // MMM-voice sends notification to MMM-ImageSlideShow to SHOW else if (notification === 'SHOW_PHOTOS') { this.sendNotification('SHOW_PHOTOS'); } // MMM-voice sends notification to MMM-RemoteControl to HIDE else if (notification === 'HIDE_REMOTECONTROL') { this.sendNotification('HIDE_REMOTECONTROL'); } // MMM-voice sends notification to MMM-Remote-Control to SHOW else if (notification === 'SHOW_REMOTECONTROL') { this.sendNotification('SHOW_REMOTECONTROL'); } // MMM-voice sends notification to mmm-food2fork-recipes to HIDE else if (notification === 'HIDE_RECIPE') { this.sendNotification('HIDE_RECIPE'); } // MMM-voice sends notification to mmm-food2fork-recipes to SHOW else if (notification === 'SHOW_RECIPE') { this.sendNotification('SHOW_RECIPE'); }
And here is the lines I added affter the return wrapper of each module.js folder for voice control:
return wrapper; }, notificationReceived: function(notification, payload) { if (notification === 'HIDE_HOROSCOPE') { this.hide(1000); this.updateDom(300); } else if (notification === 'SHOW_HOROSCOPE') { this.show(1000); this.updateDom(300); } },
So take a look when you have the time and I hope you will spot if I have done something wrong and what it is. Thank you very much.
-
on the mirror screen, press ctrl-shift-i (or start the mirror in developer mode with npm start dev)
select the console tab of the dev window, and scroll back up to find any errors (red text)these will find syntax errors and other problems
the module.js side displays in the dev console
the node_helper.js side displays info in the terminal window -
@anthony said in Hello-Lucy:
the mic icon started flashing and
i said some commands and Lucy understand. But after a few seconds no more listeningEverything you have described seems correct. And you had Lucy running according to your quote above. Please do as @sdetweil suggests and check for errors
-
@Mykle1
I made some abdjustments yesterday mostly at the order of the modules (not sure if needed) and disabled by comenting all of those I don’t have istalled in my MM. Seemed to work better with only some problem with showing pages. All modules where showing and hidding perfectly. Only it had a hard time with pages. But today nothing again. I say my keyword mut the min icon doesn’t start flashing. And I don’t get any error when I start MM in dev mode. I guess I must consider trying another mic since the current one is not a good one. -
Are you using a Pi? The Pi may struggle with this because of 1) The use of a usb microphone and 2) The amount and type of modules you are using