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.8k 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @snikolaidis
      last edited by

      @snikolaidis

      In the terminal?

      Type clear and enter
      or
      Close the terminal and open a new one

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • S Offline
        snikolaidis
        last edited by snikolaidis

        @Mykle1 Sorry to be bothering you again, decided to switch to my pi4b to see how it performs, and now the usb camera I had working on the pi3b+ will not work now, arecord -l lists it as card 2 device 0 and it still says error. Im at a lost npm start dev shows no errors and if I take the same config over to the 3b+ with the proper mapping it works fine

        pi@MagicMirror:~ $ arecord test.wav
        ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM input
        arecord: main:828: audio open error: No such file or directory
        
        
        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @snikolaidis
          last edited by

          @snikolaidis on you pi3 you have a file ~/.asoundrc
          did u build one on pi4 ? with the right info?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            snikolaidis
            last edited by

            @sdetweil said in Hello-Lucy:

            ~/.asoundrc

            Pi3 file doesnt exist - mic shows error but works
            pi4 file exists - mic shows error still doesn’t work

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              snikolaidis
              last edited by

              @sdetweil also weirdly enough

              pi@MagicMirror:~ $ arecord -D hw:2,0 test.wav
              Recording WAVE 'test.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
              arecord: set_params:1339: Sample format non available
              Available formats:
              - S16_LE
              
              

              but

              pi@MagicMirror:~ $ arecord  test.wav
              arecord: main:828: audio open error: No such file or directory
              pi@MagicMirror:~ $
              
              
              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @snikolaidis
                last edited by

                @snikolaidis before we get to MM with lucy, arecord must work

                arecord: set_params:1339: Sample format non available
                Available formats:
                - S16_LE
                

                yes, it didn’t record cause it can’t do the default

                arecord --format=S16-LE test.wav
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Offline
                  snikolaidis
                  last edited by

                  @sdetweil said in Hello-Lucy:

                  arecord --format=S16-LE test.wav

                  pi@MagicMirror:~ $ arecord --format=S16_LE test.wav
                  arecord: main:828: audio open error: No such file or directory
                  
                  
                  pi@MagicMirror:~ $ arecord -D hw:2,0 --format="S16_LE" test.wav
                  Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
                  ^CAborted by signal Interrupt...
                  pi@MagicMirror:~ $ ls
                  Bookshelf  Desktop  Documents  Downloads  MagicMirror  Pictures  pocketsphinx  Public  sphinxbase  Templates  test.wav  Videos
                  pi@MagicMirror:~ $
                  

                  if i specify the USB camera it works, if i leave it to defaults audio open error

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @snikolaidis
                    last edited by

                    @snikolaidis and aplay test.wav do you hear what you said?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @sdetweil >if i specify the USB camera it works,

                      ok, so, how do you update lucy to use the usb camera config ?

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        snikolaidis
                        last edited by

                        @sdetweil
                        yes on both i hear what i said and changing the microphone line in config is all i’ve ever done to get it working, flash raspbian -> install MM and modules -> run arecord -l and change the mic config line to what my pi reflects

                        Pi4b

                         {
                        disabled: false,
                        module: "Hello-Lucy",
                        position: "bottom_bar",
                        config: {
                            keyword: 'JARVIS',              // keyword to activate listening for a command/sentence
                            timeout: 5,                        // 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: ["intro.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","MMM-AfterShip"],                     // default modules to show on page one/startup
                            pageTwoModules: ["Hello-Lucy", "MMM-BMW-OW"], // modules to show on page two
                            pageThreeModules: ["Hello-Lucy", "MMM-Systemstats"],                 // modules to show on page three
                            }
                        }
                        

                        Pi3b+

                        {
                        disabled: false,
                        module: "Hello-Lucy",
                        position: "bottom_bar",
                        config: {
                            keyword: 'JARVIS',              // keyword to activate listening for a command/sentence
                            timeout: 5,                        // 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: ["yourang.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","MMM-AfterShip"],                     // default modules to show on page one/startup
                            pageTwoModules: ["Hello-Lucy", "MMM-BMW-OW"], // modules to show on page two
                            pageThreeModules: ["Hello-Lucy", "MMM-Systemstats"],                 // modules to show on page three
                            }
                        }
                        
                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          snikolaidis
                          last edited by

                          @sdetweil i specified the mic in ~.asoundrc so now arecord goes directly to the usb mic but still throws the format code, lucy still wont pick it up tho

                          
                          pcm.!default {
                            type asym
                            playback.pcm {
                              type plug
                              slave.pcm "output"
                            }
                            capture.pcm "hw:2,0"
                          }
                          
                          pcm.output {
                            type hw
                            card 1
                          }
                          
                          ctl.!default {
                            type hw
                            card 1
                          }
                          
                          
                          M 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil
                            last edited by

                            mine is

                            pcm.!default {
                                type hw
                                card 0
                            }
                            
                            ctl.!default {
                                type hw
                                card 1
                            }
                            

                            so I would guess yours would be

                            pcm.!default {
                                type hw
                                card 2
                            }
                            
                            ctl.!default {
                                type hw
                                card 1
                            }
                            

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              snikolaidis
                              last edited by

                              @sdetweil yeah still not working with lucy even though arecord works, would it have anything to do with that i went beta with the pi4?

                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @snikolaidis
                                last edited by

                                @snikolaidis said in Hello-Lucy:

                                i went beta with the pi4

                                what beta? the 64bit pi os?

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 0
                                • S Offline
                                  snikolaidis
                                  last edited by

                                  @sdetweil the beta firmware & bootloader that lets you boot from usb

                                  sudo apt update
                                  sudo apt full-upgrade
                                  Sudo nano /etc/default/rpi-eeprom-update
                                  sudo rpi-eeprom-update -d -f /lib/firmware/raspberrypi/bootloader/beta/pieeprom-2020-05-27.bin
                                  
                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @snikolaidis
                                    last edited by

                                    @snikolaidis oh… that won’t affect sound

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      snikolaidis @sdetweil
                                      last edited by

                                      @sdetweil Sorry trying to think of anything possible

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

                                        @snikolaidis said in Hello-Lucy:

                                        on another note, i guess i said too many unkown commands or somethings and a list of all the commands possible popped up and wont go away, any thoughts other than rebooting

                                        Oh, did you mean commands to Lucy? The Command List appeared? You can say “Hide Help” or “Close Help”.

                                        Create a working config
                                        How to add modules

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

                                          Thank you @sdetweil for doing the troubleshooting on this one. :thumbsup:

                                          Create a working config
                                          How to add modules

                                          1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            majik655 @snikolaidis
                                            last edited by majik655

                                            @snikolaidis Did you ever figure this out? I have a pi4 and have a logitech webcam c920 … it shows as card 2 and should be 2,0 … I can record and play back in arecord Everything from what I can see works fine except when in MM Lucy talks and then when waiting for command her icon goes to ERROR.

                                            I have gotten this to work with a sunfounder usb mic (just a crappy mic) and I was hoping the lag would be better using the webcam mic. (waiting for my new 3.5 jack microphone which should help the lag).

                                            In any case I just do not know why Lucy doesn’t pick up the webcam mic??
                                            @Mykle1 does it make sense it doesn’t work?

                                            M 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
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 15
                                            • 12 / 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