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

[Bug]: Unable to install hw params #346

Open
dihan opened this issue Jan 6, 2025 · 1 comment
Open

[Bug]: Unable to install hw params #346

dihan opened this issue Jan 6, 2025 · 1 comment
Labels

Comments

@dihan
Copy link

dihan commented Jan 6, 2025

Describe the bug

Describe the bug
Install the latest Raspberry Pi 4 Os via Raspberry Pi Imager
Follow the instructions of this git and also checking out this: wiki.seeedstudio.com/ReSpeaker_2_Mics_Pi_HAT_Raspberry

I've reinstalled the software multiple times, but my microphone still won't work. Could the device itself be faulty? I've searched numerous support forums for similar issues, but none of the suggested fixes have helped me so far.

Expected behavior

Expected behavior
Expecting the audio to record

Platform

Platform
Device: Raspberry Pi 4
OS: Raspbian OS 64bit Linux raspberrypi4 6.6.51+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux
Pi Hat: ReSpeaker 2-Mics Pi HAT
Version/commit number latest version

Relevant log output

pi4@raspberrypi4:~/seeed-voicecard $ arecord -D plughw:CARD=seeed2micvoicec,DEV=0 -r 16000 -c 1 -f S16_LE -t wav -d 5 test.wav
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
arecord: set_params:1416: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 16000
PERIOD_TIME: 125000
PERIOD_SIZE: 2000
PERIOD_BYTES: 4000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 8000
BUFFER_BYTES: 16000
TICK_TIME: 0
@dihan dihan added the bug label Jan 6, 2025
@HinTak
Copy link
Contributor

HinTak commented Jan 7, 2025

There is no bug here... if you use hw, you must use sample rates native to the hardware. Use one of the other virtual devices which resample via alsa before hitting the hardware.

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

No branches or pull requests

2 participants