tiny-ava
tiny-ava is a tiny, ultra-fast Persian (Farsi) + English text-to-speech model family trained from scratch on top of the tiny-voca architecture. Including its built-in source-filter waveform generator, tiny-ava v2 is 8.2M parameters (34.4 MB ONNX) and runs 34× faster than real time on 1 CPU thread (81× real time on 4 CPU threads) — 100% offline in the browser or on Android.
- Try it live in your browser: https://huggingface.co/spaces/mehdi-hf/tiny-ava-demo
- Android Offline TalkBack App & GitHub repo: https://github.com/mallahyari/tiny-ava
- Persian G2P frontends:
mehdi-hf/persian-g2p-tiny(16 MB, MIT —27/27ژ,86.4%diacritics) ·mehdi-hf/persian-g2p-0.6b(596M, Apache-2.0)
| Model | Params | Voices | Languages | ONNX Size | CPU Speed (1t / 4t) | License |
|---|---|---|---|---|---|---|
tiny-ava v2 (Recommended) | 8.20M | Parisa (FA female), Mana (real studio human FA female), Maya (EN female) (voice IDs 0, 2, 3) | Persian + English (code-switching) | 34.4 MB | 34.1× / 81.2× RT | CC BY 4.0 |
tiny-ava v1 (Parisa) | 4.53M | Parisa (FA female) | Persian | 20.4 MB | 41.9× / 83.3× RT | CC BY 4.0 |
Files
| File | Size | Contents |
|---|---|---|
tiny-ava-v2.pt | 31.3 MB | v2 PyTorch inference weights (8.2M, bilingual FA+EN, float32) |
onnx/tiny-ava-v2.onnx | 34.4 MB | v2 ONNX export (opset 17, float32) |
onnx/tiny-ava-v2.json | 1.1 KB | v2 84-symbol unified FA+EN IPA table & speaker map |
tiny-ava-parisa.pt | 18.2 MB | v1 PyTorch weights (4.5M, single-voice Parisa) |
onnx/tiny-ava-parisa.onnx | 20.4 MB | v1 ONNX export (4.5M, single-voice Parisa) |
samples/v2/ | — | v2 24 kHz WAV samples across Parisa, Mana, & Maya |
charts/training_curves_v2.png | — | v2 140k-step training & validation curves |
SHA256 (v2):
tiny-ava-v2.pt:b4ca11e8b95e36648bdc5153d6956d6eacb70ff7a49fd35275fda9c0d88e6919onnx/tiny-ava-v2.onnx:ee49d4f51882cd7acbcd28ce7ace570e47897018d03db410b6b883bcc818bed2
Samples (tiny-ava v2, 24 kHz)
| Voice & Category | Text | Audio |
|---|---|---|
| Parisa · Greeting | سلام، حال شما چطور است؟ امروز هوای تهران آفتابی است. | |
Parisa · Persian ژ (/ʒ/) | موبایل من شارژ نداره و باید پروژه ویژه انرژی در ژاپن را بررسی کنم. | |
| Parisa · Bilingual FA + EN | سلام، Captain Phoenix امروز درباره Artificial Intelligence و tiny-ava صحبت کرد. | |
| Mana (real human studio) · Ezafe + Kasra | بارانِ ریزی روی آسفالتِ خیسِ خیابان میبارد و هوا بسیار دلپذیر است. | |
Mana (real human studio) · ژ | رژیم غذایی سالم و پژوهش علمی برای سلامتی بسیار مهم است. | |
| Maya · English Demo | Hello! Welcome to tiny-ava, an ultra-fast offline voice running right on your phone. | |
| Maya · TalkBack UI | Something did not go through. Please check your network connection and try again. |
Benchmarks (tiny-ava v2, Held-Out Test Clips, faster-whisper large-v3)
| Voice | Language | Data Source | v2 CER ↓ | Ref CER | v2 WER ↓ | Ref WER |
|---|---|---|---|---|---|---|
mana (id 2) | Persian (fa) | Real human studio (Mana-TTS HIGH, CC0) | 5.79% | 8.13% | 32.28% | 40.94% |
parisa (id 0) | Persian (fa) | Chatterbox Run C (incl. 1,494 ژ phones) | 7.48% | 9.33% | 40.14% | 44.66% |
maya (id 3) | English (en) | n4ze3m/tiny-voca (CC BY 4.0) | 2.78% | 1.72% | 10.58% | 7.94% |

ONNX Interface (onnx/tiny-ava-v2.onnx)
| Input | Type | Shape | Meaning |
|---|---|---|---|
tokens | int64 | [1, N] | Unified 84-symbol FA+EN IPA & punctuation IDs (0..83), wrapped with <bos> / <eos> |
stress | int64 | [1, N] | 0 unstressed, 1 primary lexical stress, 2 secondary stress (EN) / explicit ezafe (FA) |
voice | int64 | [1] | 0 = parisa (FA female), 2 = mana (FA female), 3 = maya (EN female) |
speed | float32 | [1] | Speaking rate (1.0 default; cap neural speed around 1.3 and use Sonic WSOLA for 1.5×–3.5×) |
pitch_shift | float32 | [1] | Added to log F0 (0.058 ≈ +1 semitone) |
pitch_range | float32 | [1] | Scales pitch movement around utterance mean (1.0–1.1 recommended) |
| Output | Type | Shape | Meaning |
|---|---|---|---|
audio | float32 | [1, samples] | 24 kHz mono waveform (scale peak ≤ 0.99 before 16-bit WAV export) |
durations | int64 | [1, N] | Predicted duration per token in frames (256 samples = 10.67 ms) |
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; English voice data fromn4ze3m/tiny-voca(CC BY 4.0); Mana real human voice fromMahtaFetrat/Mana-TTS(CC0-1.0). - Offline Aligner (annotation only):
facebook/wav2vec2-lv-60-espeak-cv-ft(Apache-2.0).