EL-HARRACHI-Lite
EL-HARRACHI-Lite (الحراشي لايت) is a lightweight 82M-parameter multi-speaker neural text-to-speech (TTS) model adapted from hexgrad/Kokoro-82M (StyleTTS2 + iSTFTNet) for Algerian Darija (arq) with French code-switching support. It ships three built-in Algerian vocal personas (kahwa, rawi, loubna) at 24 kHz, requiring no reference audio clip at inference time.
Formal speech-quality evaluation (MOS listening tests, ASR round-trip intelligibility, and speaker similarity) is currently unmeasured; automated 75-generation acoustic signal checks confirm clean human speech formant concentration (93.5% energy < 2 kHz, 3.9% noise > 4 kHz, 0.0% clipping).
| Task | Multi-Speaker Text-to-Speech (TTS) |
| Architecture | Kokoro-82M (StyleTTS2 + 12L PL-BERT + iSTFTNet Vocoder) |
| Audio Output | 24 kHz mono WAV (80 mel channels) |
| Speakers | 3 Algerian personas (kahwa, rawi, loubna) |
| Vocabulary | 178-slot IPA/punctuation phoneme table (config.json) |
| License (Weights) | Apache-2.0 |
| Author(s) | Kamel Touati, Algerian NLP Collective |
Voice Personas
Three built-in speaker embeddings ([510, 1, 256] style vectors in voices/*.pt) ship directly in the repository:
| Persona | File (ID) | Recommended Speed | Vocal Profile | Dialectal Phonology Focus |
|---|---|---|---|---|
kahwa (قهوة) | voices/kahwa.pt (0) | 1.08× | Energetic, lively urban podcast presenter; fast conversational pacing | Voiced velar /ɡ/ (گاع, ڤيديو) |
rawi (راوي) | voices/rawi.pt (1) | 0.88× | Deep, resonant traditional Casbah narrator; measured pauses | Uvular stop /q/ (قالك, القصبة) |
loubna (لبنى) | voices/loubna.pt (2) | 1.00× | Clear, melodic female storyteller; articulate phrasing | Standard pan-Algerian phonetic balance |
Quickstart
Install dependencies:
pip install kokoro huggingface_hub soundfile torch
Track 1: Inference Pipeline (KPipeline + KModel)
kokoro_arabic.pth, config.json, and voices/*.pt ship directly inside this repository. Note that config.json maps ɡ (92), q (59), v (64), and p (58) natively, while the original phoneme patch maps pharyngeal symbols (ʕ → 7, ħ → 8) onto slots 7 and 8:
import soundfile as sf
import torch
from huggingface_hub import hf_hub_download
from kokoro import KModel, KPipeline
REPO = "algerian-nlp/EL-HARRACHI-Lite"
config_path = hf_hub_download(REPO, "config.json")
ckpt_path = hf_hub_download(REPO, "kokoro_arabic.pth")
voice_path = hf_hub_download(REPO, "voices/kahwa.pt") # or voices/rawi.pt, voices/loubna.pt
device = "cuda" if torch.cuda.is_available() else "cpu"
model = KModel(config=config_path, model=ckpt_path).to(device).eval()
# Optional pharyngeal slot patch documented for the Arabic checkpoint
model.vocab["ʕ"] = 7 # ع (voiced pharyngeal fricative)
model.vocab["ħ"] = 8 # ح (voiceless pharyngeal fricative)
FRENCH_LOANS = {
"c'est bon": "seː boːn",
"en retard": "an rotaːr",
"d'accord": "daːkoːr",
"rendez-vous": "raːndeːvuː",
"le médecin": "lu meːdsaːn",
"la voiture": "la vwaːtiːr",
"permis": "biːrmiː",
"bureau": "biːruː",
"express": "ikspriːs",
"wifi": "wiːfiː",
}
AR_TO_IPA = [
("گ", "ɡ"), ("ڤ", "v"), ("پ", "p"),
("ع", "ʕ"), ("ح", "ħ"), ("خ", "x"), ("ش", "ʃ"), ("ج", "ʒ"),
]
def darja_to_ipa(text: str) -> str:
for fr, ipa in FRENCH_LOANS.items():
text = text.replace(fr, ipa)
for ar, ipa in AR_TO_IPA:
text = text.replace(ar, ipa)
return text
voice_tensor = torch.load(voice_path, map_location=device, weights_only=True)
pipeline = KPipeline(lang_code="a", model=model)
prompt = "صباح الخير والفل والياسمين على ناس وهران والجزائر العاصمة وكامل خاوتنا."
phonemes = darja_to_ipa(prompt)
for idx, (_gs, _ps, audio) in enumerate(
pipeline(phonemes, voice=voice_tensor, speed=1.08, split_pattern=r"\n+")
):
sf.write(f"el_harrachi_lite_kahwa_{idx}.wav", audio, 24000)
Track 2: Direct Checkpoint Loading (kokoro_arabic.pth)
For acoustic fine-tuning or inspecting latent speaker tensors:
import torch
from huggingface_hub import hf_hub_download
from kokoro import KModel
REPO = "algerian-nlp/EL-HARRACHI-Lite"
device = "cuda" if torch.cuda.is_available() else "cpu"
model = KModel(
config=hf_hub_download(REPO, "config.json"),
model=hf_hub_download(REPO, "kokoro_arabic.pth"),
).to(device).eval()
voice_kahwa = torch.load(hf_hub_download(REPO, "voices/kahwa.pt"), map_location=device, weights_only=True)
Evaluation
Evaluation status: Formal perceptual and intelligibility benchmarks (MOS listening tests, ASR round-trip WER/CER, speaker similarity) are currently unmeasured, and no held-out TTS test partition has been scored against algerian-nlp/EL-HARRACHI or external baselines.
Automated Acoustic Signal Diagnostics (75 Generations)
Measured across a 25-prompt, 5-tier stress suite synthesized across all three personas (kahwa, rawi, loubna; 75 waveforms total):
| Signal Metric | Untuned / Collapsed Baseline | EL-HARRACHI-Lite |
|---|---|---|
Speech Formant Energy (< 2 kHz) | 5.4% – 8.5% | 93.5% |
High-Frequency Noise Floor (> 4 kHz) | 77.9% – 85.1% | 3.9% |
| Spectral Centroid | 6,700 – 7,800 Hz | 576 – 996 Hz |
| Pitch Contour ($F_0$) | ~6.88 Hz (flatline) | 100 – 250 Hz |
| Waveform Clipping Rate | Discontinuous spikes | 0.0% (peak 0.20 – 0.65) |
Per-tier mean speech formant energy (< 2 kHz):
- Tier 1 — Everyday Colloquial (pan-Algerian greetings, Casbah proverbs اللي فات مات، والحديث قياس, social banter):
94.2% - Tier 2 — French Code-Switching (clinical ordonnance, scanner, automotive le mécanicien, les freins, administrative terms):
94.8% - Tier 3 — Regional Phonology & Voicing (voiced velar
/ɡ/گاع الناس قالو, uvular/q/قالك القاضي فالقصبة, pharyngeals/ʕ/,/ħ/عين الدفلى وعين وسارة):93.7% - Tier 4 — Numbers, Dates & Currency (Dinar amounts زوج ملاين و سبعمية وخمسين ألف, dates 15 جويلية 2026, phone digits):
93.9% - Tier 5 — Extreme Linguistic Stress (tongue twisters خيط حرير على حيط خليل, single-word صحة!, 46-word narratives):
94.1%
Intended Use & Scope
Recommended uses:
- Lightweight, real-time / CPU-friendly Algerian Darija speech synthesis across three built-in voices (
kahwa,rawi,loubna). - Voice-assistant responses, narration, and accessibility reading without needing reference audio cloning.
Out-of-scope uses:
- Zero-shot voice cloning from arbitrary unseen speakers (use algerian-nlp/EL-HARRACHI for reference-audio cloning).
- Speech recognition or translation.
- Impersonating real individuals without consent or automated decisions affecting individuals.
This model has not been evaluated for bias, toxicity, or audio misuse safeguards.
Architecture
| Component | Specification |
|---|---|
| Base Checkpoint | hexgrad/Kokoro-82M (StyleTTS2 + iSTFTNet) |
| Phoneme Text Encoder (PL-BERT) | 12 layers, hidden size 768, 12 attention heads, FFN intermediate 2,048, max pos 512, dropout 0.1 |
| Acoustic Decoder | hidden_dim=512, dim_in=64, n_layer=3, max_dur=50, style_dim=128 (256-d latent voice vectors), text_encoder_kernel_size=5 |
| Vocoder (iSTFTNet) | upsample_rates=[10, 6], upsample_kernel_sizes=[20, 12], upsample_initial_channel=512, resblock_kernel_sizes=[3, 7, 11], gen_istft_n_fft=20, gen_istft_hop_size=5 |
| Audio & Mels | 24,000 Hz sample rate, 80 mel channels |
| Speakers | kahwa (0), rawi (1), loubna (2) |
| Vocabulary | n_token=178 (114 mapped IPA and punctuation symbols in config.json) |
Training Data
Adapted from three OddAdmix Algerian speech collections (same source families as algerian-nlp/EL-HARRACHI, 77,150 raw utterances total across podcasts, storytelling, and oral folklore; exact filtering counts for this checkpoint are unrecorded):
| Collection | Domain | Raw Utterances |
|---|---|---|
oddadmix/arabic-audio-collection-algerian-kahwa-postcast | Conversational / spontaneous | 23,264 |
oddadmix/arabic-audio-collection-algerian-loubna-stories | Expressive narratives | 48,590 |
oddadmix/arabic-audio-collection-algerian-rawi | Cultural oral folklore | 5,296 |
| Total | Multi-domain | 77,150 |
Decontamination: Unmeasured; no held-out TTS test split or train/test audio deduplication is documented.
Training Data License Composition
The model weights and this card are released under Apache-2.0. That grant applies to the published weights and card only and does not relicense the underlying third-party audio collections.
| Tier | Raw Utterances | Share |
|---|---|---|
other (unresolvable Hub license on all three OddAdmix collections) | 77,150 | 100.0% |
Training Details
| Parameter | Value |
|---|---|
| Objective | Multi-speaker StyleTTS2 / Kokoro adaptation |
| Optimizer & LR | Unrecorded |
| Batch Size / Schedule | Unrecorded |
| Steps / Epochs | Unrecorded |
| Hardware / Seed | Unrecorded |
Limitations
- Perceptual & intelligibility metrics are unmeasured. Only spectral/waveform diagnostics (
< 2 kHzformant energy, noise floor, F0, clipping) have been measured; MOS and ASR round-trip WER are not yet scored. - Fixed 3-speaker set. Supports only the three bundled speaker embeddings (
kahwa,rawi,loubna); unseen-speaker voice cloning is not supported. - Requires IPA phonemization. Inputs must be mapped cleanly into the IPA symbol set in
config.json(plus any runtimemodel.vocabpatches for pharyngealsʕ/ħ); unmapped characters degrade pronunciation. - Regional coverage. Reflects Central/Western Algerian registers present in the three OddAdmix collections; Eastern and Saharan varieties are outside measured coverage.
Repository Contents
| File | Size | Description / SHA-256 |
|---|---|---|
kokoro_arabic.pth | 327.2 MB (327,232,075 B) | Model checkpoint · SHA-256 81623d48af377133da90e0667dcede098ceb5f450359a3178b48619e81236f4d |
voices/kahwa.pt | 524.8 KB (524,763 B) | Speaker embedding (kahwa, id 0) · SHA-256 2f45783cfec0a805a5d6ce4533ac7d3e4cccb01491bcf529641182b8ae8eb259 |
voices/loubna.pt | 524.8 KB (524,770 B) | Speaker embedding (loubna, id 2) · SHA-256 1227c0b3795a0fc0cff00625c79377445a26d8c720f1e4ce18d34d61a166d4dd |
voices/rawi.pt | 524.8 KB (524,756 B) | Speaker embedding (rawi, id 1) · SHA-256 f826504e9f2b2a2a3ac55338502e1dda3c02e3168ac3a02ff5a1b2fcf6a870eb |
config.json | 2.7 KB (2,657 B) | Kokoro-82M + PL-BERT + iSTFTNet + speaker config |
The name
Dahmane El Harrachi (1926–1980), born Abderrahmane Amrani in El Harrach, Algiers, was one of the defining voices and mandole masters of Algerian Chaâbi music. His songs — most famously Ya Rayah (1973) — gave unmistakable voice to everyday working-class life, exile, and Algerian street poetry across decades.
His vocal delivery remains woven into how Algerian Darija is remembered and heard. Naming the collective's lightweight speech synthesis tier EL-HARRACHI-Lite honors that legacy: fast, accessible synthesis that speaks Algerian Darija naturally.
The naming is homage and implies no endorsement.
Citation
@misc{algerian_nlp_el_harrachi_lite_2026,
title = {EL-HARRACHI-Lite: Lightweight Multi-Speaker Speech Synthesis for Algerian Darija},
author = {Touati, Kamel and Algerian NLP Collective},
year = {2026},
url = {https://huggingface.co/algerian-nlp/EL-HARRACHI-Lite}
}
Upstream base model:
@misc{hexgrad_kokoro_82m,
title = {Kokoro-82M},
author = {hexgrad},
url = {https://huggingface.co/hexgrad/Kokoro-82M}
}
License
Weights and card are released under Apache-2.0. Refer to the Training Data License Composition section above regarding the underlying audio before redistributing derivatives.