Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sound on Pikrellcam #71

Open
bristolavon opened this issue Mar 5, 2021 · 1 comment
Open

Sound on Pikrellcam #71

bristolavon opened this issue Mar 5, 2021 · 1 comment

Comments

@bristolavon
Copy link

Having used Pikrellcam for a couple of years now, I decided that it was time to start adding sound. (I use it for photographing birds).
I have a USB microphone which works fine on a Raspberry Pi 3 Model B v1.2, but when I try to use it with Pikrellcam I get this error:

Audio error - cannot open microphone.
pcm open failed: No such file or directory

This happens when I press the microphone icon to turn on the microphone.

I'm using Raspbian Linux 10 (buster)

@kajan001
Copy link

kajan001 commented Sep 2, 2021

You have to change the device number in pikrellcam.conf ( /home/pi/.pikrellcam/pikrellcam.conf )

In short:

  1. use lsusb to check that you pi has recognized the microphone
  2. use arecord -l to give you the number for the card and device number
  3. open pikrellcam.conf and find audio_device plughw:1 around line 526. Make sure the device number above corresponds to the audio device number in pikrellcam ( or it maybe the card number, I never remember which and have to to a few trial and errors before getting it right).
  4. Stop and start Pikrellcam, or reboot, then click the mic button

Sometimes the Pi will change the card and device number on startup and so always check the mic function on startup.

This article gives some good guidance on attaching a usb card to the pi: https://iotbytes.wordpress.com/connect-configure-and-test-usb-microphone-and-speaker-with-raspberry-pi/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants