2024-09-06 09:51 AM
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.
2024-09-06 10:36 AM
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.
2024-09-06 01:17 PM
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.
2024-09-06 02:02 PM
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.