Skip to main content
GUIRAT.Youssef
Associate III
September 14, 2018
Question

Issue while recording audio with SAI interface ?

  • September 14, 2018
  • 2 replies
  • 928 views

Hi ,

I'm doing an audio recording with the SAI interface of the STM32L4R9AI microcontroller.

I'm using DMA in circular mode and I'm getting audio data which I wrote into SD memory.

However, when I tried to open the recorded file , I hear my audio speech with a great noise .

I'm working with these parameters :

  • Sampling rate : 48K
  • Data per sample : 24 bits
  • Audio mode : Mono mode
  • Audio protocole : Free protocol

The microphone I'm using is the ICS-43434 which outputs PCM audio frame and supports I2S protocol.

Have encountered such issue before ?

What kind of checks should I do when it comes to audio recording with SAI ?

kind regards,

Elliot

This topic has been closed for replies.

2 replies

Technical Moderator
September 17, 2018

Hello,

Do you have this issue with the SAI example available in the STM32CubeL4 firmware package?

Have you proceeded and set-up your board as described in the readme.txt file?

With Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
waclawek.jan
Super User
September 17, 2018

> Data per sample : 24 bits

> Audio mode : Mono mode

> Audio protocole : Free protocol

I suspect this is some CubeMX stuff so I wonder what does this exactly mean in terms of SAI registers value and how does it match the microphone's requirement:

0690X000006C2DIQA0.png

JW