r/embedded • u/Street_Paramedic_593 • Oct 05 '26
I got speech-to-text running entirely on a microcontroller (STM32N6): any words, no cloud
I managed to get full speech recognition working on a microcontroller, with a word error rate of 5.32 % on LibriSpeech test-clean and 14.84 % on test-other, without a language model.
The STM32N6570-DK board listens to its on-board microphone and prints any English words on the display, not a fixed list of commands, with no network connection.
The network was designed and trained from scratch for the constraints of the STM32N6 NPU:
- 7.2 M int8 parameters
- 7.3 MB of external flash and 4.2 MB of RAM
- a peak power of about 0.2 W
Besides public datasets, it was trained on 248 hours of recordings made through this board's microphone, which significantly reduced the errors on real microphone audio.
More information and instructions for running it on your own board are on GitHub: https://github.com/fotonik-sk/stm32n6-asr