arXiv:2610.38739eess.ASOct 2026

Manuscript Offprint

arXiv:2610.38739

Streaming Speech Recognition on a Microcontroller: a 65.7M-Parameter Transducer in 2 and 4 Bits on the ESP32-P4

Billal Boumedine

Abstract

We run Kroko, a 65.7M-parameter streaming Zipformer2 transducer for English, on the ESP32-P4, a microcontroller with two 400 MHz RISC-V cores, a 128-bit SIMD extension (PIE) and 32 MB of PSRAM, but no neural accelerator. Without any training, the encoder's 290 matrices are stored with 2 or 4 bits per weight in Hadamard-rotated groups: the width of each matrix comes from its measured sensitivity, and each matrix is first corrected toward the original model's output, then rounded with GPTQ and a search over the group norms. The released 71 MB of int8 weights become a 26.65 MB file. Activations are int16 between the matrix products and int8 into them. A C engine with hand-written PIE kernels processes each 1.28 s chunk of audio in 0.90 s on both cores, beam search included, and its PC build computes the same bits as the chip, so accuracy is measured on whole test sets. LibriSpeech WER is 4.34 % on test-clean and 10.26 % on test-other, against 3.94 % and 9.17 % for the released model; on FLEURS and Common Voice the gap grows to 2.3 and 1.1 points. A GPU simulator shows that the integer arithmetic costs nothing and that the whole gap comes from the weights, and an ablation on all of test-clean shows that GPTQ does most of the work. We also report the port's speed history, from 51.3 s to 0.62 s of encoder time per chunk, each design step measured again in one build, an attempt to reach 16 MB that stopped at 19.63 MB, and what did not work. We did not measure energy. The inference engine, the firmware and the 2/4-bit weights are available at https://github.com/BoumedineBillal/esp32-pie-asr.

1 Introduction

Speech recognition on microcontrollers usually means recognizing a fixed list of commands. Espressif's ESP-SR, for instance, recognizes up to 200 commands on the ESP32-S3 [12]. Writing down arbitrary speech needs a model with tens of millions of parameters, which is more than the memory of most microcontrollers and, until recently, more than their arithmetic could handle. Oído [29] has just shown a 13M-parameter Conformer-CTC model on the ESP32-S3 that transcribes in 1.97 times the audio duration on one core: close to real time, not yet in it.

This report describes how we ran a model five times larger, faster than real time and in streaming mode, on the ESP32-P4. The chip has two 400 MHz RISC-V cores with a 128-bit SIMD extension called PIE [11]; it has no neural accelerator, and the board we used adds 32 MB of PSRAM and 16 MB of flash. The model is Kroko [4], a streaming Zipformer2 transducer [15, 31] for English, trained by Banafo and released as int8 ONNX weights for sherpa-onnx [19]. We did not retrain it. Everything described here happens after training: the weights go to 2 and 4 bits, the activations to int16 and int8, and a C engine with hand-written PIE kernels runs the result.

The system transcribes the board's microphone live and shows the words on the board's screen. On LibriSpeech test-clean [25] it reaches 4.34 % WER and on test-other 10.26 %, with a beam of 4, against 3.94 % and 9.17 % for the released model run with sherpa-onnx. On real speech from

FLEURS and Common Voice the gap widens to one to two points. Each 1.28s of audio takes 0.90s to process, and a word becomes final about 2s after it is spoken.

The report makes four contributions.

  • A training-free method that stores a streaming transducer's encoder with 2 or 4 bits per weight in the Cactus Quants layout [8] (Hadamard-rotated groups of 128, Lloyd-Max levels [22, 23], one norm per group): a bit width per matrix from its measured sensitivity, then a sequential pass that corrects each matrix toward the original model before rounding it with GPTQ [14] and choosing the group norms. It brings 71 MB to 26.65 MB for half a point of WER on test-clean, and an ablation on the whole test set shows what each part contributes (Section 4).

  • An integer design, chosen by measurement in a GPU simulator before it was written in C, that costs no measurable accuracy on LibriSpeech, FLEURS or Common Voice (Sections 5 and 9.2).

  • A C engine with PIE SIMD kernels that is bit-exact with its PC build, so that every accuracy number in this report is measured on complete test sets and is also the chip's, and the cost of each design step measured again in a single build (Sections 6 and 7).

  • An account of what did not work, including an attempt to reach 16 MB with slimming and quantization-aware training that stopped at 19.63 MB (Sections 10 and 11).

The engine and the firmware are open source [6], and so are the weights [7]. The conversion code is not part of the release; Section 4 and Algorithm 1 describe the method in enough detail to reimplement it.