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

Ref: no audio from i2s-mems breakout #46 #83

Open
Waltertscott10 opened this issue Apr 4, 2022 · 1 comment
Open

Ref: no audio from i2s-mems breakout #46 #83

Waltertscott10 opened this issue Apr 4, 2022 · 1 comment

Comments

@Waltertscott10
Copy link

Waltertscott10 commented Apr 4, 2022

I had a breakthrough on this old issue with adafruit i2s mems mic
you need to put the following into ~/.asoundrc

`
/This section makes a reference to your I2S hardware adjust the card name
/ to what is shown in arecord -l after card x: before the name in []
/You may have to adjust channel count also but stick with default first

pcm.dmic_hw {
type hw
card sndrpii2scard
channels 2
format S32_LE
}

/This is the software volume control, it links to the hardware above and after
/ saving the .asoundrc file you can type alsamixer, press F6 to select
/ your I2S mic then F4 to set the recording volume and arrow up and down
/ to adjust the volume
/ After adjusting the volume - go for 50 percent at first, you can do
/ something like
/ arecord -D dmic_sv -c2 -r 48000 -f S32_LE -t wav -V mono -v myfile.wav

pcm.dmic_sv {
type softvol
slave.pcm dmic_hw
control {
name "Boost Capture Volume"
card sndrpii2scard
}
min_dB -3.0
max_dB 30.0
}

/Automatic conversion plugin

pcm.dmic_plug{
type plug
slave.pcm dmic_sv
`
then in ~/.pikrellcam/pikrellcam.conf
change

audio_device dmic_plug

Sorry about the indents i still don't know the proper syntax for this post :P
I know that issue was closed but hope this helps someone :)

@furkanbalikci
Copy link

Hello @Waltertscott10 ,
Thanks so much for your sharing. In my case it was /etc/asound.conf file instead of /.asoundrc file. It may be because I did the sound setup with the https://wiki.seeedstudio.com/ReSpeaker_2_Mics_Pi_HAT_Raspberry/ guide. I recommend it for those who don't have much experience in this field. For this reason, I only had to change the audio device number and channel number in the ~/.pikrellcam/pikrellcam.conf file and set audio enable on.

Maybe this helps someone too :)

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