Audio Codec2 on STM32

83 views Asked by At

I wanted to use Codec2 on STM32F4xx, so I took the existing libraries and ran them on the hardware - a Nucleo board. Then I started measuring the time it takes to encode and decode one frame - a block of sound signal lasting 40 ms, which corresponds to 320 samples at an 8kHz sampling frequency. After measuring the encoding function, I found that it takes about 46 ms, meaning that on the STM32, I am not able to use Codec2 in real-time - 46 > 40 ms. Does anyone have experience with this problem and can you tell me how many ms it takes you to encode one frame? I assume I should get under 40, otherwise it's unusable.

0

There are 0 answers