الحاج شلبي
Hag Shalaby v0.1
Egyptian Arabic · Text-to-Speech · Voice Cloning
About
Hag Shalaby is an Egyptian Arabic TTS model fine-tuned from Chatterbox Multilingual TTS.
It is designed for Egyptian Arabic pronunciation, conversational speech, and expressive voice generation while retaining Chatterbox's reference-based voice cloning.
The model does not contain a permanently baked-in speaker identity. The generated voice is conditioned on the reference audio supplied at inference time.
Files
| File | Description |
|---|---|
model.safetensors | Fine-tuned model weights |
text_v2.py | Training-time text normalization |
ref.wav | Starter reference audio |
Installation
pip install chatterbox-tts==0.1.7 torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0
Pin
torchvisionto matchtorch. Installingchatterbox-ttson its own can leave a mismatchedtorchvision, which causesRuntimeError: operator torchvision::nms does not exist(often surfaced asModuleNotFoundError: Could not import module 'LlamaModel'). If you already hit that, force-reinstall the trio and restart the runtime:pip install -U --force-reinstall torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0
Usage
import torch
import torchaudio as ta
import importlib.util
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
from chatterbox.mtl_tts import ChatterboxMultilingualTTS
repo = "nomeda-lab/hag-shalaby-tts-0.5B-v0.1"
ckpt_path = hf_hub_download(repo, "model.safetensors")
ref_wav = hf_hub_download(repo, "ref.wav")
text_v2_path = hf_hub_download(repo, "text_v2.py")
# Load the exact text pipeline used during training
spec = importlib.util.spec_from_file_location("text_v2", text_v2_path)
text_v2 = importlib.util.module_from_spec(spec)
spec.loader.exec_module(text_v2)
# Load Chatterbox
model = ChatterboxMultilingualTTS.from_pretrained(device="cuda")
model.t3.load_state_dict(
load_file(ckpt_path),
strict=False,
)
model.t3.eval()
# Normalize text
text = text_v2.normalize_v2(
"أهلاً بيك في خدمة العملاء، ممكن أساعدك إزاي؟"
)
# Generate speech
wav = model.generate(
text,
language_id="ar",
audio_prompt_path=ref_wav,
cfg_weight=0.3,
exaggeration=0.5,
)
ta.save("out.wav", wav, model.sr)
Text Normalization
Always use
normalize_v2()
The normalization pipeline is part of the model's expected input distribution.
It handles the text transformations used during training, including:
- Alef variants
- Hamza
- Egyptian qaf behavior
- Number verbalization
- Other training-time normalization
Avoid manually replacing characters after normalization.
For example, forcing:
ق → ء
can move the input away from the training distribution and reduce output quality.
Use:
text = text_v2.normalize_v2(text)
Reference Audio
Use a clean 6–15 second recording from a single speaker.
The reference audio strongly affects the generated voice.
You can replace the included reference with your own:
audio_prompt_path="your_reference.wav"
Limitations
- Reference audio quality strongly affects the output.
- Egyptian dialect pronunciation is not perfectly consistent.
- Colloquial Arabic receives limited automatic diacritization.
- Number verbalization does not guarantee complete grammatical agreement.
- Highly expressive or unusual inputs may produce unstable prosody.
- The model has not been comprehensively evaluated for production deployment.
Attribution
Base model: Chatterbox Multilingual TTS — Resemble AI
Training datasets, recordings, and third-party components retain their respective licenses.
Source recordings remain the property of their creators. This release does not transfer rights to any narrator's voice or likeness.
Do not use the model to impersonate a real person without appropriate authorization.
License
CC BY-NC 4.0
Third-party components and datasets remain subject to their respective licenses.
الحاج شلبي
Hag Shalaby v0.1 · nomeda-lab