cancel
Showing results for 
Search instead for 
Did you mean: 

Sound Source Localization using MEMSMIC1

Sans__0_0
Associate II

Hello ST team,
I am using Nucleo H753zi board, and I wanted to use X-CUBE-MEMSMIC1 expansion for sound source localization.
I have already designed simple PCB to use MEMs microphone and connect it to H7 board's ADC. I want to understand how I can program my board to use 4 mics- GCC-PHAT algorithm to get location of sound source. 

I have gone through UM2212 and UM1901. Due to lack of experience in this field, can you guide me through how I can use this X-CUBE-MEMSMIC1 expansion for sound source localization? I found this diagram helpful and would like to understand how should I code to feed data from cache to Acoustic SL for processing.

Sans__0_0_0-1769669684549.png

 

 

10 REPLIES 10

Hello @Sans__0_0 

To test the library without microphones, you should record audio signals or synthetize them, and then properly apply delays in the base of the angle you'd like to emulate. Then, you can save the signal as a significant buffer in flash (or RAM) if feasible. This is the fastest way that I'm thinking about, but it's not straightforward.

The library is only estimating the source angle for only 1 audio source. It can't estimate the distance neither guarantee the number of targets. Some of the algorithms supported are estimating the number of sources internally, but this result is heavily dependent on the audio signals end on the room properties. This result can't be considered generally valid, so the library isn’t exposing it.

 

Best regards,

Simone

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.