Skip to main content
slee.121
Associate
November 29, 2018
Question

Audio_playback_and_record example (STM32F4 Discovery)

  • November 29, 2018
  • 2 replies
  • 876 views

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,

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    November 29, 2018

    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    slee.121
    slee.121Author
    Associate
    November 29, 2018

    Thank you for your response.

    Stm32f4 Discovery boards use one microphone.

    I'll look for more data and analyze it.

    Thank you.