Does mic_array.get_direction (from mic_array.py) work?

info about ReSpeaker series products

Moderators: violet, seth.welday

Post Reply
ed.sutter
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Fri Mar 08, 2019 4:10 am

Does mic_array.get_direction (from mic_array.py) work?

Post by ed.sutter » Fri Mar 08, 2019 4:44 am

Hi,
UPDATE: I changed the subject/text to be more specific to my problem...

I purchased a ReSpeaker Circular Array (Pi-Hat) with 6 microphones.
I've walked through the installation (hardware and packages) as outlined on
your site (...ReSpeaker_6-Mic_Circular_Array_kit_for_Raspberry_Pi...)
Excellent "how-to" page by the way...

I've tried two different sections of that page so far...

1. ALSA API
I skipped down to the ALSA API section and had immediate success with
alsa_snips_1b_test.cc. It clearly detects "hey snips" and reports the DOA.
Cool!

2. DOA without keywords (using vad_doa.py)
The VAD portion of this seems to work but the value returned by mic.get_direction()
has no consistency, and it seems to cause the program to hang quite often.
Note that I did change CHANNELS to 8.

Since the ALSA API stuff works great, that kinda tells me that I have things installed properly.
Any idea why the (simpler) DOA without keywords stuff doesn't seem to work?

jtt083
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Mon Mar 11, 2019 9:31 am

Re: Does mic_array.get_direction (from mic_array.py) work?

Post by jtt083 » Tue Mar 12, 2019 9:09 am

I have the same issue with the project DOA without keywords (using vad_doa.py).
The value returned by mic.get_direction()
has no consistency, and it seems to cause the program to hang quite often.

ed.sutter
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Fri Mar 08, 2019 4:10 am

Re: Does mic_array.get_direction (from mic_array.py) work?

Post by ed.sutter » Fri Mar 15, 2019 4:29 am

Apparently the 4-mic array has similar problems based on this post...

viewtopic.php?f=87&t=9314
Looks like that guy just gave up.

I've followed all the installation steps, so can someone from SEEED suggest something?

bill.yu
Elementary-4
Elementary-4
Posts: 400
Joined: Mon Apr 02, 2018 11:05 am

Re: Does mic_array.get_direction (from mic_array.py) work?

Post by bill.yu » Fri Mar 15, 2019 6:18 pm

Hi there,

The doa without keywords work well with respeaker 4 mic pi hat, i tested it just now. you can see the result from viewtopic.php?f=87&t=9314

The doa without keywords with respeaker 6 mic pi hat, please do below changes. but it is still not very stable.

1. vad_doa.py:change the channels to 8

RATE = 16000
CHANNELS = 8
VAD_FRAMES = 10 # ms
DOA_FRAMES = 200 # ms

2. mic_arrray.py: change the mic distance to 0.094 and MIC_GROUP = [[0, 3], [1, 4], [2, 5]]

MIC_DISTANCE_6P1 = 0.094
MAX_TDOA_6P1 = MIC_DISTANCE_6P1 / float(SOUND_SPEED)

def get_direction(self, buf):
best_guess = None
if self.channels == 8:
MIC_GROUP_N = 3
MIC_GROUP = [[0, 3], [1, 4], [2, 5]]

ed.sutter
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Fri Mar 08, 2019 4:10 am

Re: Does mic_array.get_direction (from mic_array.py) work?

Post by ed.sutter » Fri Mar 15, 2019 9:33 pm

@bill.yu... Yes, thanks, that made a significant difference in the DOA results!
Unfortunately it does still randomly hang. Do you see it hang?

jtt083
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Mon Mar 11, 2019 9:31 am

Re: Does mic_array.get_direction (from mic_array.py) work?

Post by jtt083 » Tue Mar 19, 2019 4:20 pm

I follow the step to modify the code ,and it is often randomly hang . And the output result isn't stable like the 4-mic Array you post in another article.

bill.yu
Elementary-4
Elementary-4
Posts: 400
Joined: Mon Apr 02, 2018 11:05 am

Re: Does mic_array.get_direction (from mic_array.py) work?

Post by bill.yu » Wed Mar 20, 2019 10:24 am

Hi there,

We are working on the issue and keep you posted.

Post Reply