Run this model with HF Jobs

Run ramin-mahmoodi/Chatterbox-Persian-Expressive on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/ramin-mahmoodi/Chatterbox-Persian-Expressive. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/ramin-mahmoodi/Chatterbox-Persian-Expressive on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

🎙️ Chatterbox Persian Expressive (V2.5)

A high-quality Persian (Farsi) Text-to-Speech & Zero-Shot Voice Cloning checkpoint for Resemble AI's Chatterbox T3 Multilingual architecture (~536M Llama backbone), released under the MIT license.

License Notice: This model checkpoint and accompanying artifacts are released under the MIT license (free for open-source and commercial use, including in MIT-licensed projects).


✨ Key Highlights

  • Clean Drop-In Checkpoint: Standard 292-key t3_fa_expressive.safetensors drop-in replacement for ChatterboxMultilingualTTS.t3.
  • ~465 Hours of DNSMOS-Filtered Persian Speech: Combined studio narration (Mana-TTS), conversational multi-speaker speech, Microsoft DNSMOS P.835 GPU-filtered Persian YouTube & Cinema dialogues, and 6-class emotional Persian speech (angry, surprised, happy, sad, fearful, neutral).
  • Model Soup (75% V2.5 + 25% V2): Merges expressive conversational/cinematic prosody & dynamic exaggeration control (0.35 -> 0.70) with crisp studio diction.
  • Native Persian Diacritics (َ ِ ُ ّ ٔ): Respects optional vowel & ezafe marks (e.g., باوَرِت vs باوَرَت, کُشتی vs کِشتی, کلِ خونه) and pairs seamlessly with the included automatic Ezafe tagger & multi-paragraph chunker in persian_tts_engine.py.
  • Zero-Shot Voice Cloning: Clones unseen speakers (studio narrators, dubbers, conversational voices) from a 5–10s reference clip at ~3× faster than real time (RTF ≈ 0.35) on modern GPUs.

🎧 Voice Samples (نمونه صداها)

All samples below were generated with t3_fa_expressive.safetensors + persian_tts_engine.py (temperature=0.58, cfg_weight=0.50, clean natural Persian text — optional surgical diacritics supported). Dubber voices (Tahami, Medghalchi, Yakideh, Shokoofandeh) are 100% unseen Zero-Shot voice clones.

1. Mana (Studio Formal) — مانا (استودیویی / رسمی)

سینما، جادوی قرن بیستم و بیست و یکم است؛ داستانی پر از هیجان، ماجراجویی و رؤیا که در تاریکی سالن‌ها زنده می‌شود.

Duration: 9.39s  |  Exaggeration: 0.4


2. Abolhassan Tahami (Zero-Shot Dubber, Multi-Paragraph) — ابوالحسن تهامی (دوبلور - Zero-Shot، متن بلند)

سلام! امروز می‌خواهیم درباره پیشرفت شگفت‌انگیز هوش مصنوعی در سال ۱۴۰۵ صحبت کنیم. فناوری تبدیل متن به گفتار فارسی حالا می‌تواند با لحن طبیعی، مکث‌های دقیق و حفظ احساس واقعی صحبت کند.

سینما همواره هنر روایت داستان‌های ماندگار بوده است. وقتی صدای گرم یک گوینده با کلمات همراه می‌شود، هر جمله جان تازه‌ای می‌گیرد و در ذهن شنونده می‌ماند.

Duration: 29.81s  |  Exaggeration: 0.46


3. Nasrollah Medghalchi (Zero-Shot Epic Narration) — نصرالله مدقالچی (دوبلور حماسی - Zero-Shot)

در دل کوه‌های سر به فلک کشیده، جایی که باد داستان‌های کهن را زمزمه می‌کند، سرنوشت یک سرزمین رقم می‌خورد!

Duration: 9.32s  |  Exaggeration: 0.52


4. Manouchehr Yakideh (Zero-Shot Dramatic) — منوچهر یکیده (دوبلور دراماتیک - Zero-Shot)

حقیقت همیشه در سایه‌ها پنهان نمی‌ماند؛ روزی فرا می‌رسد که تمام رازهای این شهر برملا خواهد شد.

Duration: 7.19s  |  Exaggeration: 0.5


5. Zohreh Shokoofandeh (Zero-Shot Expressive) — زهره شکوفنده (دوبلور محاوره‌ای و هیجانی - Zero-Shot)

وای باوَرِت میشه؟ دیشب داشتم فیلم می‌دیدم، یهو برق رفت و کلِ خونه تاریک شد! اصلاً یه وضعی بود!

Duration: 8.35s  |  Exaggeration: 0.62


6. Conversational (Numbers & Question Test) — محاوره‌ای (تست اعداد فارسی و سؤال)

سلام! قیمت بلیت قطار تهران به مشهد در سال ۱۴۰۵ حدود ۴۵۰ هزار تومان است؛ آیا مایلید همین الان رزرو را انجام دهم؟

Duration: 9.43s  |  Exaggeration: 0.54

(Full sample metadata and Ezafe-annotated texts are also available in samples/samples_manifest.json.)


🚀 Quickstart (Production Engine with Auto-Ezafe & Long-Text Support)

pip install chatterbox-tts safetensors soundfile transformers sentencepiece num2fawords huggingface_hub
import soundfile as sf
from huggingface_hub import hf_hub_download
from persian_tts_engine import PersianCommercialTTS

ckpt_path = hf_hub_download(
    repo_id="ramin-mahmoodi/Chatterbox-Persian-Expressive",
    filename="t3_fa_expressive.safetensors",
)

tts = PersianCommercialTTS(ckpt_path, device="cuda", load_ezafe=False)

text = """سلام! امروز می‌خواهیم درباره پیشرفت شگفت‌انگیز هوش مصنوعی در سال ۱۴۰۵ صحبت کنیم.
وای باوَرِت میشه؟ دیشب داشتم فیلم می‌دیدم، یهو برق رفت و کل خونه تاریک شد!"""

wav = tts.synthesize(
    text,
    audio_prompt_path="reference_voice.wav",  # 5-10s clean reference clip
    exaggeration=0.55,   # Sweet spot: 0.35-0.42 (formal), 0.50-0.60 (conversational), 0.62-0.70 (expressive)
    cfg_weight=0.50,
    temperature=0.60,
    auto_ezafe=False,
)
sf.write("output.wav", wav, 24000)

Vanilla chatterbox-tts Drop-in Usage

import torch, soundfile as sf
from safetensors.torch import load_file
from huggingface_hub import hf_hub_download
from chatterbox.mtl_tts import ChatterboxMultilingualTTS

model = ChatterboxMultilingualTTS.from_pretrained(device="cuda")
ckpt = hf_hub_download("ramin-mahmoodi/Chatterbox-Persian-Expressive", "t3_fa_expressive.safetensors")
model.t3.load_state_dict(load_file(ckpt, device="cpu"), strict=True)
model.t3.eval()

wav = model.generate(
    "سینما، جادوی قرن بیستم و بیست و یکم است؛ داستانی پر از هیجان، ماجراجویی و رؤیا.",
    language_id=None,  # Important: pass language_id=None!
    audio_prompt_path="reference_voice.wav",
    exaggeration=0.50,
    cfg_weight=0.50,
    temperature=0.60,
    repetition_penalty=1.6,
)
sf.write("out.wav", wav.squeeze().cpu().numpy(), 24000)

⚙️ Recommended Inference Settings

  • language_id: None (Always pass None — trained without a language prefix token)
  • exaggeration: 0.35 – 0.70 (0.35–0.42 formal/news, 0.50–0.60 natural conversational, 0.62–0.70 expressive/emotional)
  • cfg_weight: 0.50 (Keeps crisp Persian diction & strong speaker similarity)
  • temperature: 0.55 – 0.65 (Balances natural prosody and pronunciation stability)
  • repetition_penalty: 1.6 (Prevents loops while preserving natural vowel length)

Included Runtime Fixes in persian_tts_engine.py:

  1. Patches Chatterbox's AlignmentStreamAnalyzer 2× (80ms) false-positive repetition cutoff to 6× (240ms) so expressive long vowels never cut off prematurely.
  2. Patches mtl_tts.punc_norm to recognize the Persian question mark ؟ (U+061F) without appending a stray period (؟.).
  3. Smart 40–135 char chunker for seamless multi-paragraph audiobook/dubbing synthesis.

📜 License

Released under the MIT License — see LICENSE for full details.

  • You are free to: Use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software and model weights, including in commercial and MIT-licensed projects, provided the copyright notice and permission notice are included.
Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ramin-mahmoodi/Chatterbox-Persian-Expressive

Finetuned
(102)
this model
Finetunes
1 model

Space using ramin-mahmoodi/Chatterbox-Persian-Expressive 1