voice-engine / ec

Echo Canceller, part of Voice Engine project
GNU General Public License v3.0
246 stars 70 forks source link

more detailed guide #9

Open blademckain opened 5 years ago

blademckain commented 5 years ago

Hi, would it be possible to have more detailed explanations on how to make ec_hw work on a Respeaker 4 mic linear array?

i have installed ec followinf your guide: sudo apt-get -y install libasound2-dev libspeexdsp-dev git clone https://github.com/voice-engine/ec.git cd ec make Now i run: root@raspberrypi:~/ec# ./ec_hw -i plughw:1 -c 8 -l 7 -m 0,1,2,3 Running... Press Ctrl+C to exit if i play a wav in another terminal i get the error: root@raspberrypi:~/pyaudio# aplay output.wav Playing WAVE 'output.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono 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 do in another terminal cat /tmp/ec.output > 16k_s16le_stereo_audio.raw i get only a trash audio

Can anyone help me? I need running EC always in the Alsa default device

Franklin62120 commented 3 years ago

Hello blademckain, Did you solve your problem ? I only get trash audio too using ec_hw... Thanks in advance !