Hello !
I have a ReSpeaker 4 mics hat plug to a Raspberry Pi 4. I can record sound using arecord -D hw:seeed4micvoicec,0 -f S32_LE -r 16000 -c 4 -d 5 dsnoop.mp3
but when I try to use dsnoop
arecord -D dsnoop:seeed4micvoicec,0 -f S32_LE -r 16000 -c 4 -d 5 dsnoop.mp3
, the Pi crashed and I have to reboot it.
Here is my /etc/asound.conf
:
The IPC key of dmix or dsnoop plugin must be unique
# If 555555 or 666666 is used by other processes, use another one
# use samplerate to resample as speexdsp resample is bad
defaults.pcm.rate_converter "samplerate"
pcm.!default {
type asym
playback.pcm "playback"
capture.pcm "ac108"
}
pcm.playback {
type plug
slave.pcm "hw:ALSA"
}
# pcm.dmixed {
# type dmix
# slave.pcm "hw:0,0"
# ipc_key 555555
# }
pcm.ac108 {
type plug
slave.pcm "hw:seeed4micvoicec"
}
# pcm.multiapps {
# type dsnoop
# ac108-slavepcm "hw:1,0"
# ipc_key 666666
# }
My goal is to use it with Picovoice but it seems that my error is relative to dsnoop. When recording with Picovoice I got this error : ALSA lib pcm_dsnoop.c:566:(snd_pcm_dsnoop_open) unable to open slave
What can be the issue?