Capturing raw audio data from ST IoT Discovery Kit using STM32CubeIDE and DFSDM HAL

I’m using the ST IoT Discovery Kit (B-L475E-IOT01A) and I’ve successfully deployed the trained neural model using the Cube.MX CMSIS-PACK, but I’m not sure how to use the microphone on the board through the STM32CubeIDE HALs to retrieve raw audio. I’ve tried using various HAL_DFSDM functions but haven’t had any luck. Are there any examples I can use as a starting point to retrieve raw data from the microphone to pass to the DSP for inference?

Hi @domsoria,

I have a few examples demonstrating how to use HAL to capture audio data from an I2S microphone here: ei-keyword-spotting/embedded-demos/stm32cubeide at master · ShawnHymel/ei-keyword-spotting · GitHub