cancel
Showing results for 
Search instead for 
Did you mean: 

X-NUCLEO-CCA02M1 - does anyone know the parameters for the ideal sound source localization ?

ASobe
Associate

Hi,

I looking for ideal parameter for sound source localization for 2 microphones on-board, maybe someone testing this ? I tried to set different parameters for different algorithms and each time the angle print on the console was poorly reflected correct source sound location.

Maybe I should pay attention to the settings of other parameters if so which ?

libSoundSourceLoc_Handler_Instance.channel_number = 2;

   libSoundSourceLoc_Handler_Instance.M12_distance = ???; //side or diagonal ?

   libSoundSourceLoc_Handler_Instance.M34_distance = ???;

   libSoundSourceLoc_Handler_Instance.sampling_frequency =

   AUDIO_SAMPLING_FREQUENCY; //how value is the best ?

   libSoundSourceLoc_Handler_Instance.algorithm = ACOUSTIC_SL_ALGORITHM_BMPH; //which algoritm better and why ?

   libSoundSourceLoc_Handler_Instance.ptr_M1_channels = 2;

   libSoundSourceLoc_Handler_Instance.ptr_M2_channels = 2;

   libSoundSourceLoc_Handler_Instance.ptr_M3_channels = 1;

   libSoundSourceLoc_Handler_Instance.ptr_M4_channels = 1;

   libSoundSourceLoc_Handler_Instance.samples_to_process = 512; //how many samples

   AcousticSL_getMemorySize(&libSoundSourceLoc_Handler_Instance);

   libSoundSourceLoc_Handler_Instance.pInternalMemory = (uint32_t *) malloc(

         libSoundSourceLoc_Handler_Instance.internal_memory_size);

   error_value += AcousticSL_Init(&libSoundSourceLoc_Handler_Instance);

   /*Setup Source Localization dynamic parameters*/

   libSoundSourceLoc_Config_Instance.resolution = 5; // the best value is ?

   libSoundSourceLoc_Config_Instance.threshold = 18;//the best value is ?

Thanks for every help

0 REPLIES 0