cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4Discovery problem recording/playing at the same time

haye
Associate II
Posted on September 30, 2015 at 11:57

Hello,

I am using the STM32F4Discovery board with the audio codec. I want to play and record sound simultaneously.

I have use the Audio_playback_and_record to understand how it work.

Then I have use a very simple code to try to play a sound. At this point I'm able to play a sound.

 Then I have try to record a sound and this is also working.

But when I'm trying to record sound and play sound as the same time it is not working.

I'm able to heard sound but this sound is slower than the voice in input. I'm working at 8kHz and when I use play/record as the same time I need to play at 24khz to hear the good speed of the voice.

What the problem could be ? because in my mind record and play are independant .
2 REPLIES 2
Posted on September 30, 2015 at 20:45

> I have use the Audio_playback_and_record to understand how it work.

Do you mean AN3997 and the accompanying code?

Do you want to record sound from the microphone, store it on an USB FLASH drive; and simultaneously retrieve data from the same USB FLASH drive and play it back?

JW

haye
Associate II
Posted on October 01, 2015 at 09:42

Thank you for your answer.

I have use the audio_playback_and_record example provided with the cube firmware (STM32Cube_FW_F4_V1.7.0).

I don't use usb_key just buffers. I record in 2 different buffer then I play the one is full.