voice-engine\ec_hw incompatible with 4 mic linear array

info about ReSpeaker series products

Moderators: lily.li, violet, seth.welday

Post Reply
dragon38
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Mon May 27, 2019 4:15 pm

voice-engine\ec_hw incompatible with 4 mic linear array

Post by dragon38 » Mon Sep 09, 2019 2:51 pm

hi
i have a problemi with 4 mic lineat array and voice-engine\ec
i have installed the 4 mic lineat
i have installed the voice-engine\ec
i need use as alsa default device
the asound.conf in voice-engine\ec seems made for ec and not for ec_hw, so i modified it a bit

i use this asound.conf
defaults.pcm.rate_converter "samplerate"

pcm.!default {
type asym
playback.pcm "dmixer"
#capture.pcm "ac108"
capture.pcm "eco"
}

pcm.ac108 {
type plug
slave {
rate 48000
format S32_LE
pcm "hw:seeed8micvoicec"
}
}

pcm.dmixer {
type plug
slave {
pcm {
type dmix
ipc_key 555555
slave {
pcm "hw:seeed8micvoicec"
format S32_LE
channels 8
}
bindings {
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
}
}
channels 8
format S32_LE
rate 48000
}
ttable.0.0 1
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
ttable.0.4 1
ttable.1.5 1
ttable.0.6 1
ttable.1.7 1
}

pcm.ac101 {
type plug
slave {
pcm "hw:seeed8micvoicec"
channels 8
format S32_LE
rate 48000
}
ttable.0.0 1
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
ttable.0.4 1
ttable.1.5 1
ttable.0.6 1
ttable.1.7 1
}

pcm.eco {
type plug
slave.pcm {
type fifo
infile "/tmp/ec.output"
rate 16000
format S16_LE
channels 2
}
}
if i run ec_hw:
/root/ec/ec_hw -i plughw:seeed8micvoicec -c 8 -l 7 -m 0,1,2,3
and next, try to run audio i get this error:
root@raspberrypi:~# aplay -r 16000 a.wav Playing WAVE 'a.wav' : Signed 32 bit Little Endian, Rate 16000 Hz, Channels 8 ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable aplay: set_params:1310: Broken configuration for this PCM: no configurations available
if i try to run audio without run ec_hw, i ear sound correctly

Post Reply