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 Module Microphone not working

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    56 Posts 6 Posters 28.4k Views 7 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @Linas123
      last edited by Mykle1

      @Linas123

      I don’t think it’s npm. Those are just warnings and won’t affect the module.

      USB microphone will work but it does introduce some latency.

      If you run arecord test.wav in a terminal window does it record a sound file?

      So, based on the info you gave me your config entry for the microphone should be

      microphone: "2,0",

      Please try that

      Then post your entire Hello-Lucy config entry so I can see it

      Create a working config
      How to add modules

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        Linas123 @Mykle1
        last edited by

        @Mykle1

        {
        disabled: false,
        module: "Hello-Lucy",
        position: "top_center",
        config: {
            keyword: 'HELLO LUCY',              // keyword to activate listening for a command/sentence
            timeout: 15,                        // timeout listening for a command/sentence
            standByMethod: 'DPMS',              // 'DPMS' = anything else than RPi or 'PI'
            microphone: "2,0",                  // run "arecord -l" card # and device # mine is "0,0"
            sounds: ["1.mp3", "11.mp3"],        // welcome sound at startup. Add several for a random greetings
            confirmationSound: "ding.mp3",      // name and extension of sound file
            startHideAll: false,                 // All modules start as hidden EXCEPT PAGE ONE
            // *** Page One is your default startup page *** This overrides startHideAll: true,
            pageOneModules: ["Hello-Lucy", ],                     // default modules to show on page one/startup
            pageTwoModules: ["Hello-Lucy",], // modules to show on page two
            pageThreeModules: ["Hello-Lucy",],                 // modules to show on page three
            pageFourModules: ["Hello-Lucy", ],                  // modules to show on page four
            pageFiveModules: ["Hello-Lucy", ],               // modules to show on page five
            pageSixModules: ["Hello-Lucy", ],                      // modules to show on page six
            pageSevenModules: ["Hello-Lucy", ],                   // modules to show on page seven
            pageEightModules: ["Hello-Lucy", ],                   // modules to show on page eight
            pageNineModules: ["Hello-Lucy", ],                   // modules to show on page nine
            pageTenModules: ["Hello-Lucy", ]             // modules to show on page ten
            }
        },
        

        I don’t know what else I can do.

        Mykle1M 2 Replies Last reply Reply Quote 0
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @Linas123
          last edited by

          @Linas123

          You tried to run it? What was the result?

          If you run arecord test.wav in a terminal window does it record a sound file?

          Create a working config
          How to add modules

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

            @Linas123

            Your config entry is fine. I just tried it with my microphone setting and it works fine

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • L Offline
              Linas123
              last edited by

              Yes I tried it to run, but lucy say only “Hello Michael, what would you like to see” and on the top of the Mirror is a crossed-out green flashing microphone and “Command Please:”.

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

                @Linas123

                OK, the module is loading. That’s good.

                If you run arecord test.wav in a terminal window does it record a sound file?

                Create a working config
                How to add modules

                L 1 Reply Last reply Reply Quote 0
                • L Offline
                  Linas123 @Mykle1
                  last edited by

                  @Mykle1 said in Hello-Lucy Module Microphone not working:

                  arecord test.wav

                  No it doesn’t work , there is yet the error “arecord: main:828:…”. I just noticed that my USB micro is now suddenly displayed as card 1. I change yet my /.asoundrc file again. Do I have to download the module again?

                  Thank you for you fast replays.

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

                    @Linas123

                    arecord test.wav MUST work for Lucy to work.

                    If you can get that to work then run arecord -l again to get your card and device numbers,

                    Then enter those in the microphone config entry and run MM again

                    Create a working config
                    How to add modules

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

                      @Mykle1

                      You do NOT have to download the module again

                      Create a working config
                      How to add modules

                      L 1 Reply Last reply Reply Quote 0
                      • L Offline
                        Linas123 @Mykle1
                        last edited by

                        @Mykle1

                        It’s still the same as earlier. At the top is still the crossed-out green flashing microphone.

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

                          @Linas123

                          Did you get arecord test.wav to record a sound file?

                          I just noticed that my USB micro is now suddenly displayed as card 1.

                          I’m confused. Is it still reporting card 1?

                          Did you make the changes to your config microphone option?

                          How long are you waiting before quitting MM when you see thecrossed-out green flashing microphone?

                          Create a working config
                          How to add modules

                          L 1 Reply Last reply Reply Quote 0
                          • L Offline
                            Linas123 @Mykle1
                            last edited by

                            @Mykle1

                            I’am confused too. It’s still card 1, when I enter “arecord -l”. When the Magic Mirror runs in the background and I enter “arecord test.wav” the Error “arecord: main:828: audio open error: Device or resource busy” appears. But, when I stop the Magic Mirror with pm2, record works. After reboot the Magic Mirror is yet on the top a micro icon and "Ready, “Hello Lucy”. But when I try to ask she, nothing happens. To you have a answer for this?

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

                              @Linas123 said in Hello-Lucy Module Microphone not working:

                              But when I try to ask she, nothing happens

                              and you say
                              ‘Hello Lucy’

                              right?

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              L 1 Reply Last reply Reply Quote 0
                              • L Offline
                                Linas123 @sdetweil
                                last edited by

                                @sdetweil
                                Yes, of course. I tried it again. I shouted into the microphone, although “ERROR” was displayed and Lucy reacted. But when I tried to hide the news, it took a very long time. When I tried to continue, Lucy reacted once out of 10 and in between she always showed ERROR. Can I do something that she understand me better and that the delay is not so long.

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

                                  @Linas123 I don’t know. Was just trying to help.

                                  Lots of times users didn’t know to say hello Lucy.

                                  What language do you speak? Sometimes the language model cannot detect the intonation

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  L 1 Reply Last reply Reply Quote 0
                                  • L Offline
                                    Linas123 @sdetweil
                                    last edited by

                                    @sdetweil
                                    I speak with a german accent.

                                    1 Reply Last reply Reply Quote 0
                                    • L Offline
                                      Linas123
                                      last edited by

                                      Thank you for all your help and your fast replays. Now it finally works with long charging times, but it works. Whenever I stop the Magic Mirror with pm2, the card for the microphone changes, but I can live with that because soon it will hang on the wall and then I won’t stop pm2.

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

                                        @Linas123 said in Hello-Lucy Module Microphone not working:

                                        Now it finally works with long charging times, but it works.

                                        do you mean response times? (time from speak to action)

                                        charging in english applies to batteries.

                                        what pi device are you using?

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        L 1 Reply Last reply Reply Quote 0
                                        • L Offline
                                          Linas123 @sdetweil
                                          last edited by

                                          @sdetweil

                                          Sorry, I’am only just 16 years old and not so good in english. I mean response time and use the RPI 3b+.

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

                                            @Linas123 said in Hello-Lucy Module Microphone not working:

                                            and not so good in english.

                                            a LOT better than my german!!

                                            wonder what else is running. 3b+ is usually pretty good
                                            do you use SSH to connect to pi?

                                            if so, can you do top command to see what is running?

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            L 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
                                            • 3
                                            • 2 / 3
                                            • 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