nano-voca-arabic

nano-voca-arabic is the quarter-size sibling of tiny-voca-arabic v2.1: a 1.2M-parameter Modern Standard Arabic (فصحى) text-to-speech model with the same eight voices in four speaking styles (assistant, news, story, promo; one female and one male voice each), trained from scratch on the same data with the same recipe. The waveform generator is included: text in, 24 kHz audio out, about 330× real time on four CPU threads.

Based on tiny-voca by Muhammed Nazeem (@n4ze3m). This model uses the original tiny-voca architecture and training code (github.com/n4ze3m/tiny-voca, Apache-2.0), with narrower layers. No tiny-voca weights were reused: it was trained from scratch on Arabic data.

Demo · Dataset · Half size (2.3M): oddadmix/micro-voca-arabic · One-eighth size (0.56M): oddadmix/pico-voca-arabic · One-sixteenth size (0.28M): oddadmix/femto-voca-arabic · 1/32 size (0.14M): oddadmix/atto-voca-arabic · Full size (4.5M): oddadmix/tiny-voca-arabic-v2.1

nano-voca-arabic tiny-voca-arabic v2.1
Parameters 1,155,211 (5 MB PyTorch, 8 MB ONNX) 4,534,411 (18 MB PyTorch, 21 MB ONNX)
Width (channels / feed-forward / predictor) 96 / 320 / 64 192 / 640 / 128
Layers same same
CPU speed, 4 threads (ONNX) ~330× real time ~200× real time
Character error rate, validation / test / new sentences 0.8% / 1.0% / 0.4% 0.8% / 1.1% / 0.5%
Quality score (DNSMOS P.808), the 40 samples below 3.63 3.76

Same inputs, outputs and voice order as v2.1: a drop-in replacement where size or speed matters more.

voice Name Style Gender
0 a000 Assistant female
1 am6 Assistant male
2 nf2 News female
3 nm2 News male
4 sf1 Story female
5 sm3 Story male
6 pf4 Promo female
7 pm2 Promo male

Samples

Text a000 am6 nf2 nm2 sf1 sm3 pf4 pm2
مرحبًا بكم، هذا نموذج صغير لتحويل النص إلى كلام باللغة العربية الفصحى. ▶ ▶ ▶ ▶ ▶ ▶ ▶ ▶
تقع مدينة القاهرة على ضفاف نهر النيل، وهي من أكبر المدن في العالم العربي. ▶ ▶ ▶ ▶ ▶ ▶ ▶ ▶
هل يمكنك أن تخبرني عن حالة الطقس غدًا؟ أريد أن أخرج في نزهة مع أصدقائي. ▶ ▶ ▶ ▶ ▶ ▶ ▶ ▶
يبلغ عدد سكان المدينة مليوني شخص ويشكّل الشباب أكثر من ثلث السكان. ▶ ▶ ▶ ▶ ▶ ▶ ▶ ▶
العلم نور، والجهل ظلام. ومن جدّ وجد، ومن زرع حصد. ▶ ▶ ▶ ▶ ▶ ▶ ▶ ▶

How it works

Identical to v2.1: numbers read as MSA words, CATT diacritization, a rule-based 49-symbol MSA phonemizer (code/arabic_frontend.py), then the tiny-voca network predicts durations, pauses, pitch, voicing and energy and a source-filter synthesizer makes the waveform. There is no separate neural vocoder.

Evaluation

Whisper large-v3 transcripts of generated speech against the input text (diacritics and punctuation removed). Held-out texts were not seen in training in either voice of a style; the new sentences appear in no split. 25 validation, 25 test and 8 new sentences per voice, the same sentences used for v2.1. CER, with the CER of the original recordings in brackets:

Voice Validation Test New sentences
a000 assistant F 0.3% (0.6%) 1.5% (1.8%) 0.0%
am6 assistant M 0.5% (0.5%) 0.1% (0.2%) 0.0%
nf2 news F 1.1% (1.7%) 3.1% (3.5%) 0.8%
nm2 news M 0.4% (0.5%) 0.5% (1.0%) 0.8%
sf1 story F 0.4% (0.3%) 0.4% (0.5%) 0.0%
sm3 story M 0.3% (0.5%) 0.2% (0.3%) 0.0%
pf4 promo F 2.4% (2.5%) 1.2% (2.0%) 0.9%
pm2 promo M 1.0% (0.9%) 1.2% (1.5%) 0.6%

Every voice is within 0.9 points of v2.1's CER (the largest change is pf4 on new sentences, 0.0% → 0.9%). Generated durations are within 6% of the recordings for every voice (sf1 is the fastest, at 0.94).

Usage (ONNX Runtime)

pip install onnxruntime numpy soundfile tqdm
hf download oddadmix/nano-voca-arabic --local-dir nano-voca-arabic

The front end in code/ uses the CATT diacritizer; the demo Space contains it ready to run (tiny_voca_ar/, catt_tashkeel/). Minimal call:

import numpy as np, onnxruntime as ort, soundfile as sf
from tiny_voca_ar.numbers import expand_numbers
from tiny_voca_ar.text import phonemize

session = ort.InferenceSession("nano-voca-arabic/onnx/model.onnx", providers=["CPUExecutionProvider"])
phones = phonemize(expand_numbers("مرحبًا بكم في عالم الذكاء الاصطناعي."))
one = lambda v: np.array([v], dtype=np.float32)
voice = 1  # 0 a000, 1 am6, 2 nf2, 3 nm2, 4 sf1, 5 sm3, 6 pf4, 7 pm2 (the order of "voices" in onnx/model.json)
audio, durations = session.run(None, {
    "tokens": np.array([phones.ids], dtype=np.int64), "stress": np.array([phones.stress], dtype=np.int64),
    "voice": np.array([voice], dtype=np.int64), "speed": one(1.0), "pitch_shift": one(0.0), "pitch_range": one(1.0)})
sf.write("hello.wav", audio[0], 24000)

Inputs: tokens/stress int64 [1, N], voice int64 [1], speed (1 = as predicted, larger is faster), pitch_shift (added to log F0; 0.058 ≈ one semitone), pitch_range (scales intonation). Read long text one sentence at a time (at most 500 phonemes / 32 s per call) and join the audio. Voices differ in loudness; scale each result to the same peak level.

The PyTorch checkpoint nano-voca-arabic.pt loads with the tiny-voca code (tiny_voca.infer.load_model) using the Arabic text.py / arabic_frontend.py from code/; config.json holds the narrower sizes.

Training

Same data and recipe as v2.1: 200k steps on one GPU (about 5 h). Steps 0–120k use the tiny-voca adversarial weight (--gan-ratio 0.7); steps 120k–200k continue with --gan-ratio 6. Only channels, feedforward and predictor_channels changed in the config.

Limitations

  • Eight voices, Modern Standard Arabic only; dialectal text is read with MSA rules.
  • Pronunciation follows the automatic diacritization. When CATT picks the wrong reading, the model says it.
  • The quality score on the samples is 0.13 below v2.1 (DNSMOS P.808 3.63 vs 3.76; micro-voca-arabic: 3.73). Intelligibility is unchanged, but listen before choosing it over micro-voca-arabic.
  • The same voice-quality limits as v2.1 apply (sf1 and the news voices are a little noisier than their recordings).
  • Latin script, emoji and symbols other than numbers and % are skipped.

Training data

oddadmix/tiny-voca-arabic-v2.1-dataset: 99,948 clips (264 h) in the eight synthetic voices; 89,569 training clips passed the alignment quality checks. All voices are synthetic; please tell listeners when audio they hear was generated.

License

Apache-2.0.

Credits

  • Original model, architecture and training code: tiny-voca by Muhammed Nazeem (@n4ze3m), Apache-2.0 (code).
  • Diacritizer: CATT by Abjad AI, Apache-2.0.

Citation

@software{oddadmix2026nanovocaarabic,
  author  = {oddadmix},
  title   = {nano-voca-arabic: a 1.2M-parameter eight-voice Modern Standard Arabic text-to-speech model},
  year    = {2026},
  url     = {https://huggingface.co/oddadmix/nano-voca-arabic},
  license = {Apache-2.0}
}
Downloads last month
3
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support