• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 17.8k 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.
  • T Offline
    TheGeekfather @sdetweil
    last edited by Jan 8, 2020, 8:20 PM

    @sdetweil

    arecord works in terminal. when Lucy module loads - under mic icon it says “undefined”

    1 Reply Last reply Reply Quote 0
    • T Offline
      TheGeekfather @sdetweil
      last edited by Jan 8, 2020, 9:05 PM

      @sdetweil

      Hi Sam

      Looks like the problem is with the install

      "My apologies, gentlemen. There is a problem with the mic upon install that seems to be specific to the Pi. @cowboysdude did an install late last night and he encountered the same issue, so forgive me. I am looking at it right now and will not sleep until it is resolved. Not!

      Seriously, it will be fixed ASAP.

      Thank you for your patience and interest."

      1 Reply Last reply Reply Quote 0
      • L Offline
        Linas123
        last edited by Apr 28, 2020, 9:07 PM

        @TheGeekfather

        I have the same problem. Do you have the solution for this issue? Pleas, let me now.

        M 1 Reply Last reply Apr 28, 2020, 9:17 PM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @Linas123
          last edited by Mykle1 Apr 28, 2020, 9:18 PM Apr 28, 2020, 9:17 PM

          @Linas123

          Have you run arecord -l in the terminal? (that’s a lower case L)

          Post your output from that command here.

          My output:

          pop@e8300:~$ arecord -l
          **** List of CAPTURE Hardware Devices ****
          card 0: PCH [HDA Intel PCH], device 0: ALC221 Analog [ALC221 Analog]
            Subdevices: 1/1
            Subdevice #0: subdevice #0
          card 0: PCH [HDA Intel PCH], device 2: ALC221 Alt Analog [ALC221 Alt Analog]
            Subdevices: 1/1
            Subdevice #0: subdevice #0
          pop@e8300:~$ 
          

          Create a working config
          How to add modules

          L 1 Reply Last reply Apr 30, 2020, 7:38 PM Reply Quote 0
          • L Offline
            Linas123 @Mykle1
            last edited by Apr 30, 2020, 7:38 PM

            @Mykle1
            Here is my micro output:

             arecord -l
            **** Liste der Hardware-Geräte (CAPTURE) ****
            Karte 2: AK5371 [AK5371], Gerät 0: USB Audio [USB Audio]
              Sub-Geräte: 0/1
              Sub-Gerät #0: subdevice #0
            

            and my speaker (I use the screen speaker):

            aplay -l
            **** Liste der Hardware-Geräte (PLAYBACK) ****
            Karte 0: ALSA [bcm2835 ALSA], Gerät 0: bcm2835 ALSA [bcm2835 ALSA]
              Sub-Geräte: 7/7
              Sub-Gerät #0: subdevice #0
              Sub-Gerät #1: subdevice #1
              Sub-Gerät #2: subdevice #2
              Sub-Gerät #3: subdevice #3
              Sub-Gerät #4: subdevice #4
              Sub-Gerät #5: subdevice #5
              Sub-Gerät #6: subdevice #6
            Karte 0: ALSA [bcm2835 ALSA], Gerät 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
              Sub-Geräte: 1/1
              Sub-Gerät #0: subdevice #0
            Karte 0: ALSA [bcm2835 ALSA], Gerät 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
              Sub-Geräte: 1/1
              Sub-Gerät #0: subdevice #0
            Karte 1: vc4hdmi [vc4-hdmi], Gerät 0: MAI PCM vc4-hdmi-hifi-0 [MAI PCM vc4-hdmi-hifi-0]
              Sub-Geräte: 1/1
              Sub-Gerät #0: subdevice #0
            

            I have a USB Mic and I hope that’s not the problem, because I read a bit in this forum, that sometimes USB Micros have trouble with Hello-Lucy. I also changed my /.asoundrc file so that the speaker and microphone worked as they should. In the tests everything still worked. Here is my /.asoundrc file:

            pcm.!default {
              type asym
               playback.pcm {
                 type plug
                 slave.pcm "hw:0,1"
               }
               capture.pcm {
                 type plug
                 slave.pcm "hw:2,0"
               }
            }
            

            Maybe It’s a npm problem, because at the end of the installation of the module these npm warnings came:
            Note: First I make the sound configuration and only after that I install the module.

            npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
            npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
            npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
            npm notice created a lockfile as package-lock.json. You should commit this file.
            npm WARN eslint-config-airbnb-base@11.3.2 requires a peer of eslint@^3.19.0 || ^4.5.0 but none is installed. You must install peer dependencies yourself.
            npm WARN acorn-jsx@5.2.0 requires a peer of acorn@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
            

            I’m glad if you can help me:)

            M 1 Reply Last reply Apr 30, 2020, 11:51 PM Reply Quote 0
            • M Offline
              Mykle1 Project Sponsor Module Developer @Linas123
              last edited by Mykle1 May 1, 2020, 12:03 AM Apr 30, 2020, 11:51 PM

              @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 May 1, 2020, 12:03 AM Reply Quote 0
              • L Offline
                Linas123 @Mykle1
                last edited by May 1, 2020, 12:03 AM

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

                M 2 Replies Last reply May 1, 2020, 12:05 AM Reply Quote 0
                • M Offline
                  Mykle1 Project Sponsor Module Developer @Linas123
                  last edited by May 1, 2020, 12:05 AM

                  @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
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @Linas123
                    last edited by May 1, 2020, 12:09 AM

                    @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 May 1, 2020, 12:14 AM

                      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:”.

                      M 1 Reply Last reply May 1, 2020, 12:16 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 2 / 6
                      • 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