Skip to main content
DLe.5
Associate II
May 13, 2019
Question

Any example or link to STM32L4 and SAI Audio Codec and Microphone control?

  • May 13, 2019
  • 4 replies
  • 1350 views

Please let me know if ST had example or link to STM32L4 and SAI Audio Codec and Microphone control

Thanks

This topic has been closed for replies.

4 replies

ST Technical Moderator
May 20, 2019

Hello,

Can you please explain more your needs, your request seems not clear because SAI is not an audio codec but could be interfaced with an audio codec for audio playback/record feature.

For playback usage, you can review the SAI_AudioPlay example, which is deployed on some STM32L4 board as STM32L476G-EVAL and 32L476GDISCOVERY, STM32L4R9I-EVAL and 32L4R9IDISCOVERY :

STM32Cube_FW_L4_V1.14.0\Projects\STM32L476G-EVAL\Examples\SAI\SAI_AudioPlay

STM32Cube_FW_L4_V1.14.0\Projects\32L476GDISCOVERY\Examples\SAI\SAI_AudioPlay

STM32Cube_FW_L4_V1.14.0\Projects\32L4R9IDISCOVERY\Examples\SAI\SAI_AudioPlay

STM32Cube_FW_L4_V1.14.0\Projects\STM32L4R9I-EVAL\Examples\SAI\SAI_AudioPlay

For record usage, there is no example, but BSP Audio for some boards has been implemented to perform record from headset microphone (analog microphone connected to audio codec, audio codec connected to SAI). So, you can have look on BSP AUDIO record functions for L496 and L4R9I discovery boards.

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
DLe.5
DLe.5Author
Associate II
May 21, 2019

Hi Imen Dahmen,

I would like to use STM32L4 and SAI Audio Codec and Microphone for controlling the HALF Duplex communication in USB connection.

Any hint or example available?

MikeDB
Senior II
May 21, 2019
DLe.5
DLe.5Author
Associate II
May 21, 2019

Hi MikeDB,

We have to use the Dynamic Microphone as an input of the CODEC and STM32L4 will communicate and control audio data via I2S.

(Not the PDM)

Thanks