Nano Urdu TTS - ultra-compact speech synthesis for Urdu
2 min readupdated
Nano Urdu is a distilled Urdu speech synthesis (TTS) model featuring only 443,402 parameters. Its int8 weights take up about 502 KB, allowing the model to run locally on a CPU via the C runtime sanoTTS or directly in the browser using WebAssembly. The model is based on knowledge distillation training from a larger teacher model, Meta MMS-TTS Urdu (36M parameters), on the UrduTTS dataset. It is suited for developers who need a built-in, extremely lightweight Urdu voice engine for mobile or web applications without relying on cloud APIs.
Key features
- Microscopic size: only 443k parameters and 502 KB in quantized form (int8).
- Browser execution: runs on the user device via WebAssembly.
- High speed: the average real-time factor is about 0.029 (roughly 35 times faster than real-time on a single CPU thread).
- Teacher-level quality: in intelligibility metrics (WER), the model is virtually on par with the MMS-TTS teacher.
What you can do
- Run a browser demo: test pronunciation and voice directly in the web interface.
- Integrate into applications: embed the lightweight C runtime into mobile or desktop programs for offline voice generation.
- Generate speech via scripts: use Python scripts to render Urdu text into audio files.
Example
import nano_safetensors as ns # из папки code/ после выполнения make upstream
voice = ns.load("../model.safetensors") # загрузка трех сетей (duration, acoustic, decoder) и словаря
audio = ns.speak(voice, "پاکستان کا دارالحکومت اسلام آباد ہے۔") # генерация float32 numpy массива, 24 kHz
Read more
DetailsBenchmarks (WER on corpus): MMS-TTS teacher - 10.9%, Nano Urdu (int8) - 10.5%.
Hardware requirements: runs on CPU or in browser, minimal RAM/VRAM consumption.
License and limitations: CC BY-NC 4.0 (for non-commercial research only), supports only Urdu script (no Latin script or mixed text).










Comments