/ Модель

Характеристики

Лицензия
Apache 2.0
Опубликована
17 ноя 2026

EL-HARRACHI-Lite

Синтез речиТекст → аудио3 профессии
170скачиваний за 30 дней1лайквеса обновлены20 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Лёгкая модель algerian-nlp синтезирует речь на алжирском дариджа с поддержкой переключения на французский и тремя встроенными голосами.

EL-HARRACHI-Lite — лёгкая многофразовая модель синтеза речи, разработанная algerian-nlp на основе hexgrad/Kokoro-82M с архитектурой StyleTTS2 и iSTFTNet. Она преобразует текст на алжирском дариджа в монофоническую речь WAV с частотой 24 кГц, поддерживает переключение на французский и предлагает три встроенных голоса: kahwa, rawi и loubna. Для синтеза не требуется референсная аудиозапись.

Модель предназначена для озвучивания ответов голосовых помощников, повествования и чтения текстов для доступности. В README указана адаптация на трёх коллекциях алжирской речи OddAdmix. Формальные оценки естественности и разборчивости, включая MOS и WER/CER при обратном распознавании, ещё не проводились; приведены лишь автоматические акустические проверки.

Доступны только три встроенных голоса: клонирование произвольного голоса не поддерживается. Для корректного произношения вход необходимо преобразовать в поддерживаемую IPA-фонемизацию; региональный охват отражает центральные и западные варианты алжирской речи, восточные и сахарские варианты не оценивались. Лицензия — Apache-2.0.

Сценарии применения

  • озвучивание ответов голосового помощника на алжирском дариджа
  • синтез повествования и рассказов тремя встроенными голосами
  • чтение текстов вслух для доступности
  • озвучивание фраз на дариджа с вкраплениями французского

Ограничения

Поддерживаются только три встроенных голоса; клонирование новых голосов не предусмотрено. Формальные оценки естественности и разборчивости не проводились, а корректное произношение зависит от IPA-фонемизации; восточные и сахарские варианты дариджа не оценивались.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

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).

TaskMulti-Speaker Text-to-Speech (TTS)
ArchitectureKokoro-82M (StyleTTS2 + 12L PL-BERT + iSTFTNet Vocoder)
Audio Output24 kHz mono WAV (80 mel channels)
Speakers3 Algerian personas (kahwa, rawi, loubna)
Vocabulary178-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:

PersonaFile (ID)Recommended SpeedVocal ProfileDialectal Phonology Focus
kahwa (قهوة)voices/kahwa.pt (0)1.08×Energetic, lively urban podcast presenter; fast conversational pacingVoiced velar /ɡ/ (گاع, ڤيديو)
rawi (راوي)voices/rawi.pt (1)0.88×Deep, resonant traditional Casbah narrator; measured pausesUvular stop /q/ (قالك, القصبة)
loubna (لبنى)voices/loubna.pt (2)1.00×Clear, melodic female storyteller; articulate phrasingStandard 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 MetricUntuned / Collapsed BaselineEL-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 Centroid6,700 – 7,800 Hz576 – 996 Hz
Pitch Contour ($F_0$)~6.88 Hz (flatline)100 – 250 Hz
Waveform Clipping RateDiscontinuous spikes0.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

ComponentSpecification
Base Checkpointhexgrad/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 Decoderhidden_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 & Mels24,000 Hz sample rate, 80 mel channels
Speakerskahwa (0), rawi (1), loubna (2)
Vocabularyn_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):

CollectionDomainRaw Utterances
oddadmix/arabic-audio-collection-algerian-kahwa-postcastConversational / spontaneous23,264
oddadmix/arabic-audio-collection-algerian-loubna-storiesExpressive narratives48,590
oddadmix/arabic-audio-collection-algerian-rawiCultural oral folklore5,296
TotalMulti-domain77,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.

TierRaw UtterancesShare
other (unresolvable Hub license on all three OddAdmix collections)77,150100.0%

Training Details

ParameterValue
ObjectiveMulti-speaker StyleTTS2 / Kokoro adaptation
Optimizer & LRUnrecorded
Batch Size / ScheduleUnrecorded
Steps / EpochsUnrecorded
Hardware / SeedUnrecorded

Limitations

  • Perceptual & intelligibility metrics are unmeasured. Only spectral/waveform diagnostics (< 2 kHz formant 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 runtime model.vocab patches 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

FileSizeDescription / SHA-256
kokoro_arabic.pth327.2 MB (327,232,075 B)Model checkpoint · SHA-256 81623d48af377133da90e0667dcede098ceb5f450359a3178b48619e81236f4d
voices/kahwa.pt524.8 KB (524,763 B)Speaker embedding (kahwa, id 0) · SHA-256 2f45783cfec0a805a5d6ce4533ac7d3e4cccb01491bcf529641182b8ae8eb259
voices/loubna.pt524.8 KB (524,770 B)Speaker embedding (loubna, id 2) · SHA-256 1227c0b3795a0fc0cff00625c79377445a26d8c720f1e4ce18d34d61a166d4dd
voices/rawi.pt524.8 KB (524,756 B)Speaker embedding (rawi, id 1) · SHA-256 f826504e9f2b2a2a3ac55338502e1dda3c02e3168ac3a02ff5a1b2fcf6a870eb
config.json2.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.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

Не удалось определить, чем загружать веса модели (нет library_name и architectures).

Ревизия весов
5eea79a

0 моделей