respeaker / mic_array

DOA, VAD and KWS for ReSpeaker Microphone Array

Home Page:https://www.seeedstudio.com/ReSpeaker-Mic-Array-Far-field-w--7-PDM-Microphones--p-2719.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception: can not find input device with 8 channel(s)

cogmeta opened this issue · comments

I get this error when trying to run python vad_doa.py and python mic_array.py. LED tests are fine. Do i install a driver for it?

0, 'bcm2835 ALSA: - (hw:0,0)', 0L, 2L)
(1, 'bcm2835 ALSA: IEC958/HDMI (hw:0,1)', 0L, 2L)
(2, 'seeed-4mic-voicecard: - (hw:1,0)', 2L, 0L)
(3, 'sysdefault', 0L, 128L)
(4, 'playback', 0L, 128L)
(5, 'dmixed', 0L, 2L)
(6, 'ac108', 4L, 0L)
(7, 'dmix', 0L, 2L)
(8, 'default', 4L, 128L)
Traceback (most recent call last):
File "vad_doa.py", line 52, in
main()
File "vad_doa.py", line 23, in main
with MicArray(RATE, CHANNELS, RATE * VAD_FRAMES / 1000) as mic:
File "/home/pi/respeaker/mic_array/mic_array.py", line 42, in init
raise Exception('can not find input device with {} channel(s)'.format(self.channels))
Exception: can not find input device with 8 channel(s)

I can not see the device even after firmware update.

arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: seeed4micvoicec [seeed-4mic-voicecard], device 0: bcm2835-i2s-ac108-codec0 ac108-codec0-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0

Do i need remove seeed-4mic-voicecard?

this is log of installing ..
VID = 0x2886, PID = 0x7, BCDDevice: 0x82
XMOS DFU application started - Interface 3 claimed
Detaching device from application mode.
Waiting for device to restart and enter DFU mode...
VID = 0x2886, PID = 0x7, BCDDevice: 0x82
... DFU firmware upgrade device opened
... Downloading image (respeaker_mic_array_8ch_raw.bin) to device
... Download complete
... Returning device to application mode

The mic_array.py sports both 8 channels USB mic array and 4 channels Pi hat mic array.

You have the 4 mic array, change mic_array.py to

if __name__ == '__main__':
    test_4mic()
    # test_8mic()

To use vad_doa.py, change CHANNELS = 8 to

CHANNELS = 4