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 using Adafruit Voice Bonnet

    Scheduled Pinned Locked Moved Solved Troubleshooting
    24 Posts 2 Posters 4.3k Views 2 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.
    • S Offline
      sdetweil @sinbad339
      last edited by sdetweil

      @sinbad339 said in Hello-Lucy using Adafruit Voice Bonnet:

        microphone: "1,0",                  
      

      so arecord says card 2,0

       arecord -l
      **** List of CAPTURE Hardware Devices ****
      card 2: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 [bcm2835-i2s-wm8960-hifi wm8960-hifi-0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
      

      so it should be

       microphone: "2,0",
      

      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
        sinbad339 @sdetweil
        last edited by

        @sdetweil said in Hello-Lucy using Adafruit Voice Bonnet:

        so it should be
        microphone: “2,0”,

        Thanks for replying. This config is what I had when I posted. As I mentioned, I’ve tried “0,0”, “1,0”, and “2,0”; all result in the microphone error.

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

          @sinbad339 can u try this

          arecord -D default -q  -r 16000 -c 1 -t wav -f S16_LE >test.wav
          

          the replace default with

          arecord -D hw:2,0  -q -r 16000 -c 1 -t wav -f S16_LE >test.wav
          

          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
            sinbad339 @sdetweil
            last edited by

            @sdetweil
            With MM running, if I issue

            arecord -D default -q  -r 16000 -c 1 -t wav -f S16_LE >test.wav
            

            I get a good .wave file that I can play.
            With MM still running, specifying the hw explicitly results in an error.

            arecord -D hw:2,0  -q -r 16000 -c 1 -t wav -f S16_LE >test2.wav
            arecord: main:830: audio open error: Device or resource busy
            pi@Magic:~/MagicMirror/config $ arecord -l
            **** List of CAPTURE Hardware Devices ****
            card 2: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 [bcm2835-i2s-wm8960-hifi wm8960-hifi-0]
              Subdevices: 0/1
              Subdevice #0: subdevice #0
            
            
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @sinbad339
              last edited by

              @sinbad339 said in Hello-Lucy using Adafruit Voice Bonnet:

              With MM still running, specifying the hw explicitly results in an error.

              ok, so MM is using that device

              while mm is running do

              ps -ef | grep arec

              u should see the arecord process and the parms passed
              from one of my apps that uses arecord

              arecord -D default -q -r 16000 -c 1 -t wav -f S16_LE -
              

              the trailing dash means stream content to stdout (which is captured by the upstream library)

              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

                @sinbad339

                arecord -D default

                the question is, what is ‘default’

                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
                  sinbad339 @sdetweil
                  last edited by

                  @sdetweil
                  So the arecord -l lists card2 as my expected capture device (seeed-2mic-voicecard). I find it interesting that it enumverates as #2 with no #0 or #1.

                  Anyway, I ran your ps command; not sure what this output means (as I’m sure you’re aware by now, I’m a Noob on Linux).

                  ps -ef | grep arec
                  pi        1953  1927  0 11:04 pts/0    00:00:00 grep --color=auto arec
                  
                  
                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @sinbad339
                    last edited by

                    @sinbad339 hm…

                    should have used arecord…

                    try

                    ps -ef | grep rec
                    

                    (there are only 2 apps… arecord or rec )

                    the output from ps

                    pi        1953  1927  0 11:04 pts/0    00:00:00 grep --color=auto arec
                    

                    user that started process
                    the process id
                    the parent process id +
                    (i don’t know, 0)
                    the time the process was started
                    (i don’t know, pts/ )
                    how much cpu time has been used since started, in seconds
                    the string used to start the process, pgm name and then parms

                    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
                      sinbad339 @sdetweil
                      last edited by sinbad339

                      @sdetweil

                      ps -ef | grep rec
                      root        76     2  0 11:02 ?        00:00:00 [vchiq-recy/0]
                      pi        2320  1927  0 11:24 pts/0    00:00:00 grep --color=auto rec
                      

                      Not sure what vchiq-recy is…
                      But no arec or arecord.

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

                        @sinbad339 said in Hello-Lucy using Adafruit Voice Bonnet:

                        But no arec or arecord.

                        well, that explains the error…

                        you did run the installation dependencies script, right?

                        cd Hello-Lucy/installers
                        bash dependencies.sh
                        

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 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