tiny-voca-ar
a compact speech synthesis model for Classical Arabic
2 min read
tiny-voca-ar is a port of the lightweight tiny-voca architecture adapted for Modern Standard Arabic. Trained from scratch on synthetic data without pre-trained weights, it packs roughly 4.5 million parameters and outputs mono audio at 24 kHz. The model is built for offline, local, or embedded deployments where hardware resources are tight.
Key features
- Lightweight design: Just 4.5 million parameters for fast performance on low-end hardware.
- Diacritic-driven: Works exclusively with fully diacritized (tashkeel) text.
- Clean studio voice: Tuned for a male studio voice in the
M2slot. - Open license: Released under Apache-2.0 with CC BY 4.0 attribution.
What you can do
- Narrate texts: Generate offline audio tracks for Classical Arabic texts.
- Power bots: Add compact voice synthesis to local services and applications.
- Export to ONNX: Run cross-platform inference using the ready-to-use ONNX export.
Example
Generate speech in Python using the tiny-voca package:
import soundfile as sf
from tiny_voca.infer import load_model, speak_text
model = load_model("tiny-voca-ar/tiny-voca-ar.pt")
wave, _ = speak_text(model, "اِتَّصِلْ بِي عَلَى هَاتِفِي 0501234567 فِي أَيِّ وَقْتٍ.", voice="M2")
sf.write("phone.wav", wave.numpy(), 24000)Read more
Details• Architecture and training: trained for 79,955 steps on data from ClArTTS and the Arabic Speech Corpus.
• Metrics: achieves a Word Error Rate (WER) of 0.0532 evaluated with Whisper large-v3-turbo.
• Limitations: supports only a single male voice (the
M2 slot; F2 is untrained), and input text must include diacritics.









Comments