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

ec_hw incompatible with 4 mic linear array #10

Open
blademckain opened this issue Sep 9, 2019 · 0 comments
Open

ec_hw incompatible with 4 mic linear array #10

blademckain opened this issue Sep 9, 2019 · 0 comments

Comments

@blademckain
Copy link

blademckain commented Sep 9, 2019

hi
i have installed ec
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

your asound.conf seems to be made for ec and not for ec_hw
if your guide is correct ec_hw don't create /tmp/ec.input!!!!!!

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

No branches or pull requests

1 participant