/ Модель

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

Лицензия
MIT
Библиотека
piper
Опубликована
16 ноя 2026

Hadra-TTS-piper

Синтез речиТекст → аудио3 профессии

Модель VITS в формате ONNX синтезирует алжирскую даржу из текста для голосовых помощников и озвучивания.

182скачиваний за 30 дней0лайковвеса обновлены18 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

Hadra-TTS-piper — модель синтеза речи для алжирской даржи, разработанная Touati Kamel. Она основана на архитектуре VITS и экспортирована в ONNX для запуска через Piper. Модель преобразует текст в аудио; в README заявлена скорость синтеза более чем в восемь раз выше реального времени на CPU, что подходит для локальных голосовых помощников и устройств с ограниченными ресурсами.

Модель дообучена на базе голоса ar_JO-kareem-medium и ориентирована на алжирскую разговорную речь, включая французские заимствования и переключение между арабским и французским. В README описаны три варианта подачи: энергичная разговорная, размеренная повествовательная и выразительная женская. Рекомендуемые сценарии включают голосовых помощников, аудиокниги, рассказы и озвучивание уведомлений. Репозиторий распространяется по лицензии MIT.

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

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

Ограничения

Модель специально настроена на алжирскую даржу; для французских заимствований README рекомендует предварительную нормализацию текста. Заявления о скорости и качестве приведены в README разработчика.

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

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

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

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

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

Открыть на Hugging Face

Hadra-TTS Piper (Algerian Darja)

Ultra-Fast, Edge-Ready Neural Text-to-Speech for Algerian Arabic

Live Benchmark Model on Hugging Face Architecture Model Size Inference Speed License: MIT

Hadra-TTS-piper is a production-ready, ultra-lightweight neural speech synthesis model fine-tuned specifically for Algerian Darja (الدارجة الجزائرية). Built on the high-efficiency VITS (Conditional Variational Autoencoder with Adversarial Training and Normalizing Flows) architecture and exported to ONNX Runtime, it produces crisp, natural, human-grade speech at over 8x faster than real-time on standard CPUs.


Live Interactive Benchmark Dashboard

Experience the complete test suite directly in your browser. All 75 generated WAV recordings across 5 stress-test tiers and 3 voice personas are hosted on our interactive dashboard:

Explore the Live Hadra Piper Benchmark Dashboard (Netlify)

Benchmark Summary Matrix (75/75 PASS — 100% Quality Rate)

Test TierFocus & Linguistic ChallengePromptsPersonasStatusAvg RTF (CPU)
Tier 1: Pan-Algerian Greetings & French Code-SwitchingNatural everyday conversation, welcoming phrases, and transliterated French terms ("c'est bon", "en retard").53100% PASS0.121x
Tier 2: Urban & Youth Street DarjaFast conversational slang ("حطة", "تحلاب", "تمنشير"), colloquial discourse particles.53100% PASS0.124x
Tier 3: Numbers, Currencies & QuantitiesAlgerian Centimes / Dinar syntax (ملاين، دورو، ميات ألف), telephone numbers, and time.53100% PASS0.128x
Tier 4: Cultural Proverbs, Folk Wisdom & HumorTraditional Algerian adages ("خالتي لعجوزة", "طريق السد", "الحيط واقف"), deep storytelling rhythm.53100% PASS0.122x
Tier 5: Long-Form Multi-Sentence Stress Tests20+ second continuous narratives, breathing flow, complex compound clauses, and sustained prosody.53100% PASS0.125x
Overall BenchmarkComprehensive Algerian Speech Synthesis Suite253 (75 clips)100% PASS0.124x

Key Performance Takeaway: With an average Real-Time Factor (RTF) of 0.124x, synthesizing a 10-second Algerian speech clip takes just 1.24 seconds on a single CPU core, making it ideal for edge devices, home automation, and low-latency voice assistants.


The 3 Acoustic Personas

Hadra-TTS-piper provides 3 distinct vocal delivery styles calibrated through fine-tuned duration and pitch variability scales (length_scale and noise_scale):

PersonaVibe & Delivery ProfileCalibrated length_scaleCalibrated noise_scaleRecommended Use Cases
Kahwa (kahwa)Energetic, crisp, natural conversational cadence; lively pan-Algerian street and podcast rhythm.0.950.667Voice assistants, conversational bots, interactive chatbots, podcast intros.
Rawi (rawi)Deep, deliberate, warm narrative voice; contemplative pacing with measured folkloric pauses.1.150.667Audiobooks, history documentaries, long-form storytelling, reflective narrations.
Loubna (loubna)Bright, expressive, gentle female delivery; dynamic melodic pitch with clear enunciations.0.900.667Bedtime stories, children's educational content, friendly notifications, e-learning.

Quickstart

1. Installation

Install the official Piper Python package:

pip install piper-tts

Download the model checkpoint and config from this repository:

# Download ONNX model (~63MB) and JSON configuration
wget https://huggingface.co/touati-kamel/Hadra-TTS-piper/resolve/main/model.onnx
wget https://huggingface.co/touati-kamel/Hadra-TTS-piper/resolve/main/model.onnx.json

2. Python Quickstart (With Persona Presets)

Synthesize authentic Algerian Darja audio with customized persona scales in just a few lines of code:

import wave
from piper import PiperVoice

# 1. Load the model and configuration
voice = PiperVoice.load("model.onnx", config_path="model.onnx.json", use_cuda=False)
voice.config.num_speakers = 1  # Standard single-speaker ONNX graph

# 2. Calibrated Persona Presets
PERSONAS = {
    "kahwa":  {"length_scale": 0.95, "noise_scale": 0.667},  # Energetic Podcast
    "rawi":   {"length_scale": 1.15, "noise_scale": 0.667},  # Deep Storyteller
    "loubna": {"length_scale": 0.90, "noise_scale": 0.667},  # Expressive Storyteller
}

# 3. Synthesize an Algerian sentence
text = "صباح الخير والفل والياسمين على ناس وهران والجزائر العاصمة وكامل خاوتنا."
persona = PERSONAS["kahwa"]

with wave.open("output_kahwa.wav", "wb") as wav_file:
    voice.synthesize(
        text,
        wav_file,
        length_scale=persona["length_scale"],
        noise_scale=persona["noise_scale"]
    )

print("Saved output_kahwa.wav (22.05 kHz 16-bit PCM Mono)!")

3. Standalone C++ Piper CLI

Because Hadra-TTS-piper is an official ONNX-compliant Piper model, you can run it directly with the standalone C++ binary on Linux, macOS, or Windows with zero Python dependencies:

# Synthesize with Kahwa persona (Lively cadence)
echo "صحا خويا، راك مليح اليوم؟ واش راك داير فيها؟" | piper \
  --model model.onnx \
  --config model.onnx.json \
  --length-scale 0.95 \
  --noise-scale 0.667 \
  --output_file greeting_kahwa.wav

# Synthesize with Rawi persona (Deep storytelling tempo)
echo "كان يا ما كان في قديم الزمان، كانت كاين حكاية قديمة راح نحكوهالكم اليوم." | piper \
  --model model.onnx \
  --config model.onnx.json \
  --length-scale 1.15 \
  --noise-scale 0.667 \
  --output_file story_rawi.wav

4. Home Assistant & Wyoming Protocol Deployment

Integrate native Algerian Darja into your Home Assistant Local Voice Assistant using the Wyoming Piper Docker container:

A. Format File Names

Rename the downloaded files to match the Wyoming naming convention:

mv model.onnx ar_DZ-hadra-medium.onnx
mv model.onnx.json ar_DZ-hadra-medium.onnx.json

B. Docker Compose Configuration

Place both files in a local directory (./piper-data) and run rhasspy/wyoming-piper:

version: "3.8"
services:
  wyoming-piper:
    image: rhasspy/wyoming-piper:latest
    container_name: wyoming-piper-darja
    restart: unless-stopped
    ports:
      - "10200:10200"
    volumes:
      - ./piper-data:/data
    command:
      - "--voice"
      - "ar_DZ-hadra-medium"
      - "--speaker"
      - "0"

C. Home Assistant Setup

  1. Navigate to Settings > Devices & Services > Add Integration.
  2. Select Wyoming Protocol, enter your host IP and port 10200.
  3. Go to Settings > Voice Assistants, edit your pipeline, and select ar_DZ-hadra-medium as your primary TTS engine.

Code-Switching & French Loanword Preprocessor

Spoken Algerian Darja frequently incorporates French loanwords ("c'est bon", "en retard", "portable", "l'hôpital", "rendez-vous"). To ensure optimal pronunciation through the Arabic phonemizer, use this lightweight normalization preprocessor:

import re

LOANWORD_MAP = {
    r"\bc['’]est bon\b": "سي بون",
    r"\ben retard\b": "اون غوطار",
    r"\bnormal\b": "نورمال",
    r"\bportable\b": "بورطابل",
    r"\bl['’]hôpital\b": "لوبيطال",
    r"\bpharmacie\b": "فارماسي",
    r"\bordonnance\b": "اوردونونس",
    r"\bscanner\b": "سكانير",
    r"\bmerci\b": "ميرسي",
    r"\bpardon\b": "باردون",
    r"\bbonjour\b": "بونجور",
    r"\bbon\b": "بون",
    r"\bdéjà\b": "ديجا",
    r"\bproblème\b": "بروبليم",
    r"\bservice\b": "سيرفيس",
    r"\brendez-vous\b": "رونديفو",
}

def normalize_algerian_darja(text: str) -> str:
    """Standardizes Algerian text and transliterates Latin loanwords for Piper phonemization."""
    # 1. Transliterate frequent Latin code-switched terms
    normalized = text
    for pattern, replacement in LOANWORD_MAP.items():
        normalized = re.sub(pattern, replacement, normalized, flags=re.IGNORECASE)
    
    # 2. Normalize common Arabic letter variants
    normalized = re.sub(r"[إأآا]", "ا", normalized)
    normalized = re.sub(r"ة\b", "ه", normalized)
    normalized = re.sub(r"ى\b", "ي", normalized)
    
    # 3. Clean excess whitespace and unwanted Latin characters
    normalized = re.sub(r"[^\w\s\u0600-\u06FF\.\,\!\؟\?]", " ", normalized)
    normalized = re.sub(r"\s+", " ", normalized).strip()
    return normalized

# Example usage:
raw_text = "صحا خويا، راك en retard c'est bon، الطبيب عطاني ordonnance pour le scanner ف la pharmacie."
clean_text = normalize_algerian_darja(raw_text)
print(clean_text)
# Output: "صحا خويا راك اون غوطار سي بون الطبيب عطاني اوردونونس pour le سكانير ف لا فارماسي"

Model Specifications & Technical Details

ParameterSpecificationDetails
Model ArchitectureVITSConditional Variational Autoencoder + Normalizing Flows + HiFi-GAN Vocoder
Base Voicear_JO-kareem-mediumRhasspy Piper Arabic Voice Checkpoint
Training CorpusOddAdmix Algerian Speech CollectionCurated high-fidelity speech datasets: Kahwa Podcast, Rawi Stories, and Loubna Children Tales
Sampling Rate22,050 Hz16-bit PCM Mono WAV
FormatONNX Runtime (v1.17+)Quantized CPU-friendly graph
Model Size~63.4 MBSingle unified model.onnx file
Runtime Dependenciespiper-tts, onnxruntimePure CPU inference, zero CUDA requirement
Phoneme Representationespeak-ng Arabic phoneme setInterleaved blank tokens with zero-padding

Citations & Acknowledgments

If you use Hadra-TTS-piper in your research, edge devices, or commercial applications, please cite:

@misc{touati2026hadrapiper,
  author = {Kamel Touati},
  title = {Hadra-TTS-piper: Ultra-Low-Latency Neural Speech Synthesis for Algerian Darja},
  year = {2026},
  publisher = {Hugging Face},
  howpublished = {\url{https://huggingface.co/touati-kamel/Hadra-TTS-piper}}
}

Special thanks to:

  • Rhasspy Piper by Michael Hansen for the incredible lightweight VITS speech architecture.
  • OddAdmix for collecting and curating open Algerian spoken speech datasets.
  • The Algerian NLP open-source community.

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

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

GPU в ailist

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

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

Библиотека «piper» рантаймом не поддерживается.

Ревизия весов
d59cd87

0 моделей