pingo-ptbr
An ultra-compact text-to-speech model for Brazilian Portuguese
2 min readupdated
pingo-ptbr is a miniature text-to-speech system with a total file size of just 0.87 MB, featuring two voice models (female F_s4 and male M_sm4) with a built-in vocoder. The model consists of an acoustic module and a frozen FARGAN vocoder, which convert text into 16 kHz mono audio without requiring network connectivity or heavy libraries. The development is targeted at running locally right in the browser using ONNX Runtime Web or on the CPU via MLX on Apple Silicon devices.
Key features
- Microscopic size: a total of about 1.08 million parameters, with weights packed into a single 0.87 MB file thanks to frame-by-frame quantization from 5 to 8 bits.
- Browser execution: supports export to ONNX graphs for client-side inference with complete privacy preservation.
- High speed: runs on CPU and Apple Silicon (speeds around 24x real-time on an M4 chip).
- Specialization: designed exclusively for Brazilian Portuguese with built-in text normalization and loanword substitution for correct pronunciation.
What you can do
- Integrate lightweight voice narration into web applications and websites without server load.
- Run local text-to-speech synthesis on low-end CPUs, mobile devices, or offline Python scripts.
- Build private local chatbots and assistants for Brazilian Portuguese speakers.
Example
import sys; sys.path.insert(0, "pingo")
import speak, soundfile as sf
model = speak.Pingo("weights/pingo-ptbr.bin")
audio = speak.speak(model, "Olá! Esta é a voz da SemFence.", voice="M_sm4", speed=1.0)
sf.write("hello.wav", audio, 16000)
Read more
DetailsWER benchmarks on a subset of MiniMax pt: around 0.95% (F_s4) and 1.00% (M_sm4).
Hardware requirements: standard CPU or Apple Silicon, no PyTorch dependency during inference.
Limitations: supports only Brazilian Portuguese, and the 16 kHz vocoder yields a characteristic telephone-like timbre.










Comments