cancel
Showing results for 
Search instead for 
Did you mean: 

Audio_playback_and_record example (STM32F4 Discovery)

slee.121
Associate II

Hi.

First , I'm not good at English.​

I am testing an example of Audio_palyback_and_recorder of STM32f4 Discovery.

In the i2S setting of the microphone,

hAudioInI2s.Init.AudioFreq = 2 * AudioFreq; where, AudioFreq = 16K

Why did you multiply 2?

And how do you decide the size of the PCM data buffer after converting the PCM from PDM?

​Thank you.

Best regards,

2 REPLIES 2

Is that how it deals with paired stereo samples? You'd likely want to look at how the Codec (manual/datasheet) describes frequencies and data sizes, and how they interrelate.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Thank you for your response.

Stm32f4 Discovery boards use one microphone.

I'll look for more data and analyze it.

Thank you.