2020-03-04 01:58 AM
Hi,
I've been trying to setup beam forming(SMARTMIC1_V2.0.0) on my stm32f412g-discovery with two microphones connected to DFSDM peripheral but i can't quite understand how to setup it properly and examples aren't helpful.
Could anyone throw some light on AcousticBF_Handler_t and it's parameters? Below i'm posting my configuration with two 16kHz microphones returning PCM data
AcousticBF_Handler_t h_beam_forming;
h_beam_forming.algorithm_type_init = ACOUSTIC_BF_TYPE_STRONG;
h_beam_forming.ref_mic_enable = ACOUSTIC_BF_REF_ENABLE;
h_beam_forming.ptr_out_channels = 2;
h_beam_forming.data_format = ACOUSTIC_BF_DATA_FORMAT_PCM;
h_beam_forming.sampling_frequency = 16;
h_beam_forming.ptr_M1_channels = 1;
h_beam_forming.ptr_M2_channels = 1;
h_beam_forming.delay_enable = 1;
AcousticBF_getMemorySize(&h_beam_forming);
h_beam_forming.pInternalMemory = (uint32_*)malloc(h_beam_forming.internal_memory_size);
What exactly is ref_mic_enable and how do i know if i need it?
Because for now output is just garbage and i'm not sure if it's configuration or processing problem.
I've confirmed that audio from microphones is working just fine when it's not passed through lib.