tiny-urdu-tts is a small, open-source Urdu text-to-speech (TTS) model for Roman Urdu. It has only 4.5 million parameters (21 MB) and runs on a CPU or right in your web browser, with no GPU, server or API key.
اردو ٹیکسٹ ٹو اسپیچ: رومن اردو لکھیں اور سنیں
4.5M parameters · 21 MB · Urdu TTS · runs on CPU / in the browser
Type aap kaise hain? and it speaks it in Urdu.
| Text | Audio |
|---|---|
| aap kaise hain? | |
| mujhe chai pasand hai. | |
| shukriya, bohat shukriya! |
M2)| File | Use |
|---|---|
model.onnx |
Browser and CPU inference (onnxruntime / onnxruntime-web) |
model.json / config.json |
Config: sample rate, voices, phoneme symbols |
sample1-3.wav |
Audio samples |
inference.pt |
PyTorch checkpoint, for further fine-tuning with tiny-voca |
The model takes phoneme IDs, not raw text. The Roman Urdu phonemizer is in the GitHub repo:
web/lib/urdu.ts and web/app/page.tsxpython urdu/run.py tiny_voca.infer --checkpoint inference.pt --voice M2 --text "aap kaise hain?" --output out.wavONNX inputs: tokens, stress (int64 [1, N]), voice (int64 [1]), speed, pitch_shift, pitch_range (float32 [1]). Output: audio (float32 [1, samples]).
mere 25 dost hain is read as Urdu wordscomputer, mobile, doctor, hello, thanksmujhe chai pasand hai, shukriya, bohat shukriya!baRa (big) vs bura (bad)model.onnx 21 MBinference.pt 18 MBmodel.safetensors 18 MBn4ze3m/tiny-voca