General-purpose English speech recognition and an optional neural voice that run entirely on an ESP32-S3 or P4, with no cloud: a quantized Citrinet-256 on a custom inference runtime with hand-written SIMD kernels, wake phrases with no training, and firmware for MicroPython and AtomVM.
- 0.51 s to transcribe2 s of speech, ESP32-S3
- 8.2% (4-bit)Word error rate, clean
- 84.5 KBInternal RAM
Trade-offs
- Espressif's ESP-DL took 1.33 s per second of audio, so a runtime was written instead: about 13 times faster, half the size, with identical output.
- The 39 MB model is quantized to 6 MB in 4 bits, trading word error rate from 3.8% to 8.2% on clean speech.
- Listening and speaking take turns on one 84.5 KB block of internal RAM, and under MicroPython speech to text can't run with WiFi on.
Q&A4
Those send audio to a cloud service or spot a fixed list of trained commands. This transcribes any English sentence on the chip, and a wake phrase is any typed phrase.
Offline and private voice input, such as a LoRa node with a mic and no keyboard: a spoken sentence becomes a few dozen bytes of text, about a tenth of what a 700 bit/s voice codec needs.
The model is read in place from flash, each layer's weights are copied to internal RAM once per layer rather than per frame, work is split over both cores, and S3 kernels are hand-written vector assembly.
Poorly so far: separate noisy fine-tunes cut errors by a quarter to a third in noisy rooms but lose some clean-speech accuracy, so the model is picked by where the board will listen.
Reviews
Loading reviews
More in Erlang
More in Embedded
See all 28 →- CarWatchA car as a chat agent: Raspberry Pi 5 running a local 35B model in the car
Anemoia-ESP32NES emulator running at native speed on a plain ESP32
NightRunLocal LLM runtime that boots from USB with no conventional operating system
RaspiMIDIHubRaspberry Pi as a plug-and-play USB MIDI hub with virtual instruments- sanoTTS-jpJapanese text-to-speech small enough for a $3 ESP32-S3 microcontroller
- TouchDeckA local touch control deck for Home Assistant and PC stats on an ESP32-S3
More in Speech
See all 21 →
OpenSubsSubtitle generator that transcribes and burns captions with no video upload- Wyoming Voice MatchVoice-verifying ASR proxy for Home Assistant satellites
OpenASROn-device speech to text across many model families through one runtime
VoiceFlowPush-to-talk Whisper dictation and meeting recorder for Windows and Linux- VibeVoiceFusionMulti-speaker voice generation, transcription and LoRA training on a home GPU
DettoOn-device meeting capture and dictation for macOS, written to a vault