tiny-ava is a tiny 4.5M-parameter Persian (Farsi) text-to-speech model trained from scratch on top of the tiny-voca architecture. Including the built-in waveform generator, the complete model is ~18 MB (PyTorch) / ~20 MB (ONNX) and runs 38× faster than real time on 1 CPU thread (77× real time on 4 CPU threads).
سلام، حال شما چطور است؟ امروز هوای تهران آفتابی است.
Ezafe chain
نشست سران سیاسی کشورهای عضو به خوبی پیش رفت.
Explicit kasra (ـِ)
بارانِ ریزی روی آسفالتِ خیسِ خیابان میبارد.
Homograph (تست → tost)
من هر روز صبح نان تست داغ با کره و عسل میخورم.
Homograph (گل → gol)
گل قرمز زیبایی را روی میز گذاشت و لبخند زد.
Homograph + diacritic (گِل)
کفشهایم بعد از باران پر از گِل و لای شد.
Homograph (مرد → mord)
حیوان خانگی من دیروز در اثر گرمای شدید بیهوش شد و مرد.
Question (؟)
آیا واقعاً فکر کردی که تولد تو را فراموش میکنم؟
Persian uvulars (ق/غ/خ/ع)
قصر قدیم در کنار غار خاموش و عمیق کوهستان قرار دارد.
Long sentence
توسعه مدلهای کوچک هوش مصنوعی باعث میشود که فناوری تبدیل متن به گفتار بدون نیاز به سرور و اینترنت روی دستگاههای معمولی اجرا شود.
Colloquial Persian
سلام، چطوری؟ دیگه باید برم، نمیتونم بیشتر بمونم.
ONNX Interface
The ONNX graph (onnx/tiny-ava-parisa.onnx) takes Persian IPA token IDs and stress/ezafe values and directly outputs a 24 kHz waveform. Text-to-phoneme conversion runs outside the graph using either mehdi-hf/persian-g2p-tiny (16 MB) or mehdi-hf/persian-g2p-0.6b (596M), mapped to the 46-symbol table in onnx/tiny-ava-parisa.json.
Inputs
Input
Type
Shape
Meaning
tokens
int64
[1, N]
Persian IPA & punctuation IDs (0..45), wrapped with <bos> and <eos>
Training data: 8,033 clean punctuated Parisa clips (19.97 hours, 24 kHz), annotated with mehdi-hf/persian-g2p-0.6b and offline CTC forced alignment (facebook/wav2vec2-lv-60-espeak-cv-ft, 99.73% QC acceptance, 88.6% fricative-to-vowel voicing flip within 2 frames).
Training schedule: 104,000 steps on 1× NVIDIA A100-80GB (~5.5 hours). Spectral + prosody losses for the first 8,000 steps, followed by multi-period and multi-resolution GAN discriminators (--gan-ratio 0.7, --teacher-final 0).
Held-Out Test Evaluation (50 clips, faster-whisper large-v3, language="fa")
Model
Persian CER ↓
Persian WER ↓
CPU Speed (1 thread / 4 threads)
tiny-ava (parisa, 4.53M)
6.95%(0.85× teacher)
36.96%(0.92× teacher)
38.5× / 77.4× real time
Teacher recordings (reference floor)
8.20%
40.22%
—
Limitations
Single fixed female voice (parisa); no voice cloning.
Pronunciation accuracy on rare homographs, numbers, and out-of-vocabulary loanwords depends on the upstream Persian G2P frontend (typing explicit ـَ, ـِ, ـُ diacritics lets you override pronunciation deterministically).
Deterministic prosody: the same input text is always spoken with the same cadence.
Utterance-level generation (not frame-streaming), though a 5-second Persian sentence synthesizes in ~65 ms on 4 CPU threads.
License & Credits
Model Weights License:CC BY 4.0 (Creative Commons Attribution 4.0 International) — free for personal, research, and commercial use as long as you give credit.
Required Attribution: Please include "Powered by tiny-ava (Mehdi Allahyari / OncillaAI)" with a link to mehdi-hf/tiny-ava.
Architecture: Based on n4ze3m/tiny-voca (Apache-2.0) by Muhammed Nazeem.