cancel
Showing results for 
Search instead for 
Did you mean: 

Appropiate board for real time sound classification

AlbertG
Associate II

Hello,

I was trying to do sound classification with a STEVAL-STWINBX1. As using a NN directly in a microcontroller is impossible due to ram constrains, I decided to do a basic mel spectrogram (no full mfcc, I skip the dct and log stuff in order to speed up the process). Even when reducing the sample rate to around 16kHz, this chip is waaay to slow, like needs 4+ seconds for every second of sound, which makes it impossible to use in real time tasks (it is slow in every step of the process).And that's without the classifier, preprocessing only.

I was wondering what chip is capable of doing STFT fast enough to use in real time environments.

 

Thanks in advance,

 

Albert

 

PD: I am not sure this is the appropiate subforum. I apologize in advance if that is not the case.

3 REPLIES 3
liaifat85
Senior II

You can consider offloading some processing tasks to a more powerful companion chip, like an FPGA or a co-processor designed for signal processing. Another approach could be to preprocess the audio data on a more capable device (like a Raspberry Pi or a similar SBC) and then send it to the microcontroller for classification.

Chris21
Senior

STM32H7 series is based on the 32-bit Arm Cortex®-M7 core, running at up to 600 MHz with up to 1.4 Mbytes of SRAM.

AScha.3
Chief II

Hi,

what is a "sound classification" ?   

And if you do this on a PC with 8GB ram and 4 ...16  cores at 3 GHz - dont expect to run it on any chip with some 200KB ram and 200MHz speed on one core. 

> what chip is capable of doing STFT fast enough to use in real time environments

Any cpu at 200MHz and some KB ram can do this - but its more like an 1K FFT in 1ms (at 16bit fixed point precision).

And you have to use optimized routines , for the selected cpu.

If you feel a post has answered your question, please click "Accept as Solution".