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.

    Hello-Lucy

    Scheduled Pinned Locked Moved Fun & Games
    285 Posts 27 Posters 682.2k Views 27 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.
    • X Offline
      Xclasher 0 @mdhenriksen
      last edited by

      @mdhenriksen Hi sorry for the late reply. Let me rephrase my question a bit. What I would like to do is just to have MMM-voice (With Lucy) work on one of the pages (From MMM-pages).

      I got that to work however, the pages I created from MMM-voice(With Lucy) aren’t working. And when I included the specific modules, it shows up all the time and does not hide. Though it still response with MMM-voice (With Lucy)

      So the problem is, how do I hide the specified modules at the start when magic mirror boot up?.

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @Xclasher 0
        last edited by

        @xclasher-0 said in Hello-Lucy:

        the pages I created from MMM-voice(With Lucy) aren’t working. And when I included the specific modules, it shows up all the time and does not hide. Though it still response with MMM-voice (With Lucy)
        So the problem is, how do I hide the specified modules at the start when magic mirror boot up?.

        I’m still not sure why you want to use some pages with MMM-pages and others with Hello-Lucy. However, unless there is some conflict with MMM-pages then we can assume you haven’t created your pages correctly in Hello-Lucy. The readme is explicit and should be followed precisely. When you have done it correctly, the only modules displayed at start up will be MMM-voice (and MMM-EasyPix if you are using the face.gif or another image)

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • A Offline
          Anthony Project Sponsor
          last edited by

          I have some problems with Hello Lucy. Firstly sometimes when the MM reloads after Say"Hello, Lucy" I get an ERROR in mic’s icon place. Secondly when I don’t get the ERROR and I say : “MAGIC MIRROR” (my keyword) tha mic icon start flashing (not saying VOICE) but after that anything I say nothing is shown. And i don’t get any errors in pm2 logs or when I start MM with npm start dev . Any suggestions?

          Mykle1M 1 Reply Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @Anthony
            last edited by Mykle1

            @anthony

            If you reload MM while MM is running you will get “an ERROR in mic’s icon place.” If you quit MM and relaunch MM you will not get this error.

            When the mic starts flashing after saying your keyword “Magic MIrror” then Lucy is expecting a command. Example: Show Weather, Show Clock, Show Page One, etc.

            You have to follow the instructions in the README file precisely if you are adding modules of your own. There is a list of modules that works be default in the README, as well. Those will all work without any modification by you. Any pages you create will have to be done as described in the README.

            If you have trouble with a particular module I will help you. What commands are you saying to Lucy that do not work?

            Create a working config
            How to add modules

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              Anthony Project Sponsor @Mykle1
              last edited by Anthony

              @mykle1
              I didn’t know that I must quit and restart MM for the mic to work properly. So the first problem solved. With the second one I know after the mic start flashing a command should follow but whatever I say lucy do nothing. For example after I say “Magic Mirror” and the mic icon start flashing I say “Show Clock” and nothing happens. I tried all default modules and nothing. I have added some modules to work with Lucy and did it exactly as you mentioned in the README. Also I have set in my config to start hidden and it does. It just don’t show anything. And sometimes when I say the wake word it does not even start flashing.

              Mykle1M 1 Reply Last reply Reply Quote 0
              • ejay-ibmE Offline
                ejay-ibm Project Sponsor Module Developer
                last edited by ejay-ibm

                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 you

                Ejay

                A 1 Reply Last reply Reply Quote 0
                • A Offline
                  Anthony Project Sponsor @ejay-ibm
                  last edited by

                  @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.

                  ejay-ibmE 1 Reply Last reply Reply Quote 0
                  • ejay-ibmE Offline
                    ejay-ibm Project Sponsor Module Developer @Anthony
                    last edited by

                    @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

                    Mykle1M 1 Reply Last reply Reply Quote 0
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @ejay-ibm
                      last edited by

                      @ejay-ibm

                      There is a 25MB version in the Hello-Lucy repo

                      https://github.com/mykle1/Hello-Lucy

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 0
                      • Mykle1M Offline
                        Mykle1 Project Sponsor Module Developer @Anthony
                        last edited by Mykle1

                        @anthony

                        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.

                        Create a working config
                        How to add modules

                        A 1 Reply Last reply Reply Quote 0
                        • A Offline
                          Anthony Project Sponsor @Mykle1
                          last edited by Anthony

                          I ant to believe that everything have been done correctly:

                          1. Add in my modules.js folder the lines for voice control after the return wrapper.
                          2. 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.
                          3. 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.

                          Mykle1M 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil
                            last edited by

                            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

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0
                            • Mykle1M Offline
                              Mykle1 Project Sponsor Module Developer @Anthony
                              last edited by

                              @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 listening

                              Everything you have described seems correct. And you had Lucy running according to your quote above. Please do as @sdetweil suggests and check for errors

                              Create a working config
                              How to add modules

                              A 1 Reply Last reply Reply Quote 0
                              • A Offline
                                Anthony Project Sponsor @Mykle1
                                last edited by

                                @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.

                                Mykle1M 1 Reply Last reply Reply Quote 0
                                • Mykle1M Offline
                                  Mykle1 Project Sponsor Module Developer @Anthony
                                  last edited by

                                  @anthony

                                  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

                                  Create a working config
                                  How to add modules

                                  A 1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    Anthony Project Sponsor @Mykle1
                                    last edited by Anthony

                                    @mykle1
                                    Yes, I am using a rpi 3b+. I know that I must be patient during commands because of the usb mic but the problem is that I have to say my keyword more than 10 times to start flashing the mic icon. After that all modules show/hide quite well and quick. Basically I did a fresh install of raspbian and MM on new 32GB SD card, hoping that it will work better but I have the same problem. It just doesn’t hear the keyword. Also I would like to ask you if it is possible the Say, ‘Hello Lucy’ message.

                                    Mykle1M 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      mash55
                                      last edited by mash55

                                      check the logs… they should give you an idea what happened. What I was confronted with was a) missing variables (LD_LIBRARY_PATH= and PKG_CONFIG_PATH=). They should be added by the installation script (assuming you chose the automatic install.
                                      After solving this issue I had b) a DEVICE BUSY due to the fact that pulseaudio was already ‘sitting’ on my microphone.

                                      1 Reply Last reply Reply Quote 0
                                      • Mykle1M Offline
                                        Mykle1 Project Sponsor Module Developer @Anthony
                                        last edited by

                                        @anthony said in Hello-Lucy:

                                        I have to say my keyword more than 10 times to start flashing the mic icon.

                                        I would guess that is due to the Pi’s performance and the latency introduced by the use of your USB mic. Also, a vocal accent while speaking English commands to Lucy seem to be a problem. I’ve a friend in Norway who speaks English very well but Lucy has a problem with his Norwegian accent.

                                        With that said, I can’t help you with performance issues other than to suggest limiting or eliminating those modules that have high resource demands.

                                        Also I would like to ask you if it is possible the Say, ‘Hello Lucy’ message.

                                        I don’t understand the question, I’m sorry.

                                        Create a working config
                                        How to add modules

                                        A 1 Reply Last reply Reply Quote 0
                                        • A Offline
                                          Anthony Project Sponsor @Mykle1
                                          last edited by

                                          @mykle1 said in Hello-Lucy:

                                          I don’t understand the question, I’m sorry.

                                          Sorry I didn’t write it right. I would like to ask you if it is possible to change the Say, ‘Hello Lucy’ message to something mine. As for the mic’s latency I will buy a better one and see the difference. Thank you for your tips and “Hello Lucy” :winking_face:

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Do not disturb
                                            sdetweil @Anthony
                                            last edited by

                                            @anthony yes, Hello_Lucy is a customized MMM-Voice… in the MMM-Voice readme it says

                                            Config Options
                                            Option	Default	Description
                                            microphone	REQUIRED	Id of microphone shown in the installer.
                                            keyword	'MAGIC MIRROR'	Keyword the mirror starts to listen. IMPORTANT: Only UPPERCASE Letters
                                            timeout	15	time the keyword should be active without saying something
                                            

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            A 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 15
                                            • 11 / 15
                                            • 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