respeaker / usb_4_mic_array

ReSpeaker 4 Mic Array with builtin VAD, DOA, AEC, Beamforming & NS
https://www.seeedstudio.com/ReSpeaker-Mic-Array-v2.0-p-3053.html
Apache License 2.0
142 stars 66 forks source link

Using Procupine on Rock Pi 4 Armbian OS #68

Closed RafigRzayev closed 2 years ago

RafigRzayev commented 2 years ago

Hello,

We are trying to use Respeaker 4 Mic Array as an input device on our system. Our system is:

We are able to record audio directly after plugging the microphone to USB port, the quality and volume of recorded audio is good.

Then when we try to record audio with procupine software, the keyword detection doesn't work. When we tried with another simple single microphone device, it was working without issues.

Procupine gives an option to save the audio recording, and when we checked it we found out that the audio is distored(there is a noise on top of real audio signal). I believe this is the reason why it is not able to detect keywords.

Could you please help me? I would appreciate any help . I need to know what should be done so that procupine records audio from usb 4 mic array without distortion.

I also opened an issue on Procupine repository: https://github.com/Picovoice/porcupine/issues/775

If the problem would be about drivers, I believe we wouldn't be able to record normal audio. My suspicion is that maybe the microphone has 4 channels, procupine somehow messes up the inputs. Its only a guess.

RafigRzayev commented 2 years ago

I made a mistake, my microphone model is ReSpeaker Mic Array v2.0. , not ReSpeaker 4-Mic Array for Raspberry Pi.

RafigRzayev commented 2 years ago

I was able to fix it. The default firmware on the mic outputs 6 channels. After following instructions to change the firmware, the mic now outputs one channel data, and procupine works as expected.