BabyTalk

Offline speech recognition and a neural voice on an ESP32, from C or Erlang

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.

Reviews

Loading reviews

    More in Erlang

    • LassoSelf-hosted Ethereum JSON-RPC proxy that routes each call to the best provider
    • AetherS3Self-hostable distributed S3-compatible object store on the BEAM
    • AlexClawSingle-user AI agent on Elixir/OTP that watches sources and runs workflows

    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