Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6977

Interfacing (DSI, CSI, I2C, etc.) • I2S MEMS INMP441 Volume way too low Raspberry Pi Zero v1.1

$
0
0
Good afternoon, everyone I've been having the problem listed in the subject for several weeks now.
I followed the Adafruit tutorial https://learn.adafruit.com/adafruit-i2s ... iring-test and also https://github.com/makerportal/rpi_i2s. With both methods I can see the microphone and record but with a very low volume.

Code:

arecord -l**** List of CAPTURE Hardware Devices ****card 1: sndrpigooglevoi [snd_rpi_googlevoicehat_soundcar], device 0: Google voiceHAT SoundCard HiFi voicehat-hifi-0 [Google voiceHAT SoundCard HiFi voicehat-hifi-0]  Subdevices: 1/1  Subdevice #0: subdevice #0
Using

Code:

arecord -D plughw:1 -c 1  -r 48000 -f S32_LE -t wav -V mono -v fileT23.wav -d 10
I can record, using

Code:

arecord -D dmic_sv -c 1 -r 48000 -f S32_LE -t wav -V mono -v fileT22.wav -d 10Recording WAVE 'fileT22.wav' : Signed 32 bit Little Endian, Rate 48000 Hz, Monoarecord: set_params:1323: Broken configuration for this PCM: no configurations available
I can't record

Code:

arecord -Lnull    Discard all samples (playback) or generate zero samples (capture)default    Playback/recording through the PulseAudio sound serversysdefault    Default Audio Devicelavrate    Rate Converter Plugin Using Libav/FFmpeg Librarysamplerate    Rate Converter Plugin Using Samplerate Libraryspeexrate    Rate Converter Plugin Using Speex Resamplerjack    JACK Audio Connection Kitoss    Open Sound Systempulse    PulseAudio Sound Serverspeex    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)upmix    Plugin for channel upmix (4,6,8)vdownmix    Plugin for channel downmix (stereo) with a simple spacializationdmic_hwdmic_svusbstream:CARD=vc4hdmi    vc4-hdmi    USB Stream Outputhw:CARD=sndrpigooglevoi,DEV=0    snd_rpi_googlevoicehat_soundcar, Google voiceHAT SoundCard HiFi voicehat-hifi-0    Direct hardware device without any conversionsplughw:CARD=sndrpigooglevoi,DEV=0    snd_rpi_googlevoicehat_soundcar, Google voiceHAT SoundCard HiFi voicehat-hifi-0    Hardware device with all software conversionssysdefault:CARD=sndrpigooglevoi    snd_rpi_googlevoicehat_soundcar, Google voiceHAT SoundCard HiFi voicehat-hifi-0    Default Audio Devicedsnoop:CARD=sndrpigooglevoi,DEV=0    snd_rpi_googlevoicehat_soundcar, Google voiceHAT SoundCard HiFi voicehat-hifi-0    Direct sample snooping deviceusbstream:CARD=sndrpigooglevoi    snd_rpi_googlevoicehat_soundcar    USB Stream Output

Code:

amixer -c1Simple mixer control 'Boost',0  Capabilities: cvolume  Capture channels: Front Left - Front Right  Limits: Capture 0 - 255  Front Left: Capture 255 [100%] [27.60dB]  Front Right: Capture 255 [100%] [27.60dB]
.asoundrc config is:

Code:

#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 firstpcm.dmic_hw {        type hw        card sndrpigooglevoi        channels 1        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.wavpcm.dmic_sv {        type softvol        slave.pcm dmic_hw        control {                name "Boost Capture Volume"                card sndrpigooglevoi        }        min_dB -3.0        max_dB 30.0}
Everything seems ok, but the recording volume is low and I can't use pcm.dmic_sv for recording, why?

I've read several posts here and elsewhere, but they're all dated and I haven't found the answer in any of them

Many thanks and best regards

Luca

Statistics: Posted by trik84 — Wed Apr 16, 2025 4:50 pm — Replies 0 — Views 15



Viewing all articles
Browse latest Browse all 6977

Trending Articles