pingo-ptbr-edge
An ultralightweight text-to-speech model for ESP32-S3
1 min read
The model is an optimized version of a Portuguese text-to-speech engine, adapted to run on microcontrollers like the ESP32-S3. The total parameter count is only around 380,000, and all code is written in pure C without PyTorch or heavy libraries. The development makes it possible to generate voice directly on a microcontroller, although actual hardware tests have not yet been conducted by the authors.
Key features
- Only 379,814 parameters for the entire system.
- The acoustic module weighs about 131 KB in 4-bit quantization.
- The stripped-down xxs vocoder requires only ~39.6 MMAC/s.
- Operates on pure C (libm) with no external dependencies.
What you can do
- Compile the project on a computer and test speech generation in pure C.
- Build firmware for the ESP32-S3 microcontroller using ESP-IDF.
- Use the repository as a foundation for standalone voice assistants on hardware.
Example
Running the build and test on a computer via the Make utility:
cd c && make && ./pingo_c ac_test_in.i32 saida.s16
ffmpeg -f s16le -ar 16000 -ac 1 -i saida.s16 saida.wav
make testRead more
DetailsAcoustic module: 270,081 parameters, 4-bit.
Vocoder: xxs, 109,733 parameters, int8 (107 KB).
Memory consumption: firmware ~443-448 KB.
Language: Portuguese only (pt-BR).










Comments