[solved] dsnoop not working with fresh RPi3B and 4-Mic

Here’s what worked for me. Using as /etc/asound.conf. Can now record with multiple scripts simultaneous.

Records at any sample rate. There’s no dmix because that doesn’t work with Pi’s onboard audio.

I have another variation if you have USB audio.



Credit: <LINK_TEXT text=“https://www.element14.com/community/thr … hread=true”>https://www.element14.com/community/thread/35824/l/wolfson-and-pocketsphinxcontinuous-error?displayFullThread=true</LINK_TEXT>


[code]
defaults.pcm.rate_converter “samplerate”

pcm.bcm2835 {
type hw
card ALSA
}
pcm.seeed_4mic_voicecard {
type hw
card seeed4micvoicec
}

pcm.softvol {
type softvol
slave {
pcm “pduplex”
}
control {
name “Master”
card 0
}
}

pcm.!default {
type asym
playback.pcm “plug:softvol”
capture.pcm “pduplex”
}

pcm.recmixer {
ipc_key 140325
ipc_key_add_uid true
type dsnoop
slave.pcm “seeed_4mic_voicecard”
}

pcm.duplex {
type asym
playback.pcm “bcm2835”
capture.pcm “recmixer”
}

pcm.pduplex {
type plug
slave.pcm “duplex”
}

ctl.pduplex {
type hw
card 0
}

pcm.dsp0 {
type plug
slave.pcm “duplex”
}

ctl.mixer0 {
type hw
card 0
}
[/code]