/ Модель

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

Лицензия
Своя лицензия
Базовая модель
chatterbox
Библиотека
chatterbox
Опубликована
11 ноя 2026

chatterbox-farsi

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

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

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

Модель OncillaAI на основе Chatterbox синтезирует выразительную персидскую речь из текста и клонирует голос по короткому аудиообразцу.

OncillaAI Chatterbox Farsi — модель синтеза персидской речи, созданная на основе многоязычной Chatterbox от Resemble AI. Она преобразует обычный текст на фарси в выразительное аудио, поддерживает две встроенные озвучки — женскую и мужскую — и клонирование голоса по аудиофрагменту длительностью 5–10 секунд. Модель предназначена для озвучивания новостей, инструкций, историй и разговорных реплик; учитывает пунктуацию и интонацию персидского текста.

Дообученная часть — текстовый трансформер T3 в стиле Llama на 536 млн параметров. Токенизатор речи S3, декодер S3Gen и кодировщик голоса унаследованы от базовой модели. По данным карточки, синтез работает почти в реальном времени на NVIDIA T4 и примерно в 2,5 раза быстрее реального времени на H100. Для персидского используется языковой токен «ar», поскольку фарси не входит в список встроенных языков базовой модели.

Оценка на 35 отложенных фрагментах показала WER 12,5% и CER 3,7% для женского голоса и WER 16,9% и CER 5,5% для мужского; метрики включают ошибки распознавателя речи. Возможны ошибки в произношении редких слов и имён, чтении чисел, звуке в конце или преждевременной остановке; постановка ezafe зависит от контекста и образца голоса. Лицензия модели указана как other; базовая Chatterbox распространяется по MIT. Клонировать голос следует только с разрешения его владельца.

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

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

Ограничения

Возможны ошибки в ezafe, произношении редких слов и иностранных имён, чтении чисел, а также преждевременная остановка или короткий артефакт в конце аудио. Клонирование голоса требует разрешения владельца; карточка указывает лицензию «other».

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

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

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

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

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

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Синтез речи» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели сгенерируют результат по каждой задаче. Опубликованный тест появится на этой странице.

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

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

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

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

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

Открыть на Hugging Face

OncillaAI Chatterbox Farsi

A Persian (Farsi) text-to-speech model: natural, expressive Persian speech from ordinary Persian text, in any voice you give it a few seconds of. It is a fine-tune of the multilingual Chatterbox model by Resemble AI.

  • Reads ordinary Persian script with punctuation; pauses at commas, a falling tone at full stops, rising at «؟».
  • Two built-in voices (female, male) and zero-shot voice cloning from a 5-10 s clip.
  • About 0.5 B parameters in the fine-tuned text-to-speech-token model; speech decoder and voice encoder from the base.
  • Runs on an NVIDIA GPU: close to real time on a T4, about 2.5x faster than real time on an H100.

Samples

News

FemaleMale

“بر اساس گزارش سازمان هواشناسی، بارش باران و برف در بیشتر استان‌های شمالی و غربی کشور تا پایان هفته ادامه خواهد داشت. از رانندگان خواسته شده است که در جاده‌های کوهستانی با احتیاط بیشتری حرکت کنند و زنجیر چرخ همراه داشته باشند.”

Instructions

FemaleMale

“پیش از شروع به کار با این دستگاه، ابتدا مطمئن شوید که کابل برق به‌درستی به پریز وصل شده است. سپس دکمه‌ی روشن و خاموش را برای سه ثانیه نگه دارید تا چراغ سبز روشن شود. اگر چراغ قرمز شد، دستگاه را خاموش کنید، پنج دقیقه صبر کنید و دوباره امتحان کنید. در صورت تکرار مشکل، با بخش پشتیبانی تماس بگیرید.”

Story

FemaleMale

“پیرمرد از پنجره‌ی کوچک اتاق به کوچه نگاه کرد. باران ریزی می‌بارید و چراغ‌های زرد خیابان روی آسفالت خیس می‌درخشیدند. آهی کشید و با خودش گفت که این شهر دیگر شهر روزهای جوانی‌اش نیست.”

Names and technology

FemaleMale

“شرکت گوگل در ماه گذشته از نسخه‌ی تازه‌ای از مدل هوش مصنوعی خود رونمایی کرد. مدیرعامل این شرکت، ساندر پیچای، در سخنرانی خود در شهر سانفرانسیسکو گفت که این مدل می‌تواند متن، تصویر و صدا را با هم بفهمد و در بیش از صد زبان، از جمله فارسی، پاسخ دهد.”

Conversational, excited

FemaleMale

“وای، باورم نمی‌شه! جدی می‌گی؟ یعنی واقعاً قبول شدم؟ یه بار دیگه نگاه کن، شاید اشتباه خوندی. نه، نه، درسته، اسم منه! خدایا، این همه سال زحمت کشیدم، حالا بالاخره نتیجه شو دیدم. باید همین الان به بابا زنگ بزنم.”

Conversational

FemaleMale

“ببین، من نمی‌گم که تو اشتباه می‌کنی. فقط می‌گم قبل از اینکه تصمیم آخرتو بگیری، یه بار دیگه همه چیزو خوب بسنج. اگه اون کار جدید واقعاً چیزیه که می‌خوای، منم پشتتم، ولی دوست ندارم بعداً از یه تصمیم عجولانه پشیمون بشی.”

Quick start

pip install chatterbox-tts "setuptools<81"   # setuptools<81: the watermarker's import needs pkg_resources
import re
import shutil
from pathlib import Path

import torch
import torchaudio
from huggingface_hub import hf_hub_download, snapshot_download
from chatterbox.mtl_tts import ChatterboxMultilingualTTS

REPO = "mehdi-hf/chatterbox-farsi"
base = Path(snapshot_download("ResembleAI/chatterbox", allow_patterns=[
    "ve.pt", "s3gen.pt", "conds.pt", "grapheme_mtl_merged_expanded_v1.json", "Cangjie5_TC.json"]))
ckpt = Path("chatterbox_farsi"); ckpt.mkdir(exist_ok=True)
for f in base.iterdir():
    shutil.copy(f, ckpt / f.name)
shutil.copy(hf_hub_download(REPO, "t3_fa.safetensors"), ckpt / "t3_mtl23ls_v2.safetensors")  # the loader's file name
model = ChatterboxMultilingualTTS.from_local(ckpt, "cuda")

voice = hf_hub_download(REPO, "voices/female.wav")   # an example; a clean clip of your own works better (see Tips)
text = "سلام! امروز هوا خیلی خوب است، بیا با هم به پارک برویم."


def generate(text, tries=3, **kw):
    """Now and then the model stops almost at once; take such a cut-off take again."""
    for _ in range(tries):
        wav = model.generate(text, **kw)
        if wav.shape[-1] / model.sr >= len(text) / 40:   # Persian speech runs at ~12-15 characters a second
            break
    return wav


def generate_text(text, limit=450, gap=0.25, **kw):
    """One call for short text (best). Longer text: pieces of whole sentences (a call stops at about 40 s), joined by a short silence."""
    pieces, cur = [], ""
    for s in re.split(r"(?<=[.!?؟])\s+", text.strip()):
        if cur and len(cur) + 1 + len(s) > limit:
            pieces.append(cur)
            cur = s
        else:
            cur = (cur + " " + s).strip()
    pieces.append(cur)
    out = []
    for p in pieces:
        out += [generate(p, **kw), torch.zeros(1, int(gap * model.sr))]
    return torch.cat(out[:-1], dim=-1)


wav = generate_text(text, language_id="ar", audio_prompt_path=voice)   # Persian uses the "ar" language token
torchaudio.save("out.wav", wav, model.sr)

Tips

  • Punctuate. The model reads punctuation: end sentences with «.» or «؟», and put a comma where a pause belongs. A comma also stops an unwanted ezafe: «هوا، سرد بود» reads havâ, sard bud.
  • Force an ezafe where the model misses one by writing it: «کتابِ من», «خانهٔ بزرگ», «هوایِ سرد».
  • Long text: one call sounds best and holds up to about 40 s, so give each paragraph (up to about 450 characters) in one call; generate_text above splits longer text at sentence ends into pieces of that size. Many short sentence-by-sentence calls add audible gaps between the sentences.
  • Settings: the defaults (cfg_weight=0.5, exaggeration=0.5, temperature=0.8) were used for the samples. A lower cfg_weight (0.3) speaks a little slower.
  • The reference clip sets the sound and the delivery. Use a clean clip of one speaker, 8-12 s, without music, noise or long pauses. A dull, muffled or very short clip gives muffled output; a bright, clear clip gives a clearer voice (in our tests the clip changed the output's 2-4 kHz energy by more than 10 dB). The speaking style carries over too: a news reading gives formal, newsreader speech even on casual text, so use a conversational clip for conversational speech. The built-in voices are examples, not the best prompts (voices/male.wav is only 4.5 s and rather dull).

Model details

Base modelChatterbox multilingual (Resemble AI, MIT)
Fine-tuned partT3, the text-to-speech-token model: a Llama-style transformer, 536 M parameters, full fine-tune
Unchanged from the baseS3 speech tokenizer (25 tokens per second), S3Gen decoder (flow matching + HiFi-GAN vocoder), voice encoder
Text inputPersian script read directly through the base model's multilingual grapheme tokenizer: no phonemiser or G2P; punctuation, ZWNJ and ezafe marks («ـِ», «ـٔ») are kept
Language token"ar" (Persian is not one of the base model's languages)
Conditioninga speaker embedding (256-d) and 150 speech tokens (6 s) from the reference clip; classifier-free guidance on the text
Output24 kHz mono audio, up to about 40 s (1,000 speech tokens) per call
Weightst3_fa.safetensors, float32, 2.1 GB
Trainingcheckpoint at step 11,500 of 12,000, chosen by the lowest loss on held-out speakers; AdamW, learning rate 2e-5 with 500 warm-up steps and a cosine decay, about 16k tokens per batch, bf16 mixed precision, text dropped from 10% of examples to keep guidance working; about 1 hour on one NVIDIA H100

Evaluation

35 held-out passages of 8-30 s (news, conversation, science, stories, instructions, numbers, names, formal and colloquial speech), each generated once as a whole, then transcribed by a Persian speech recogniser and compared with the text. Lower is better; the figures include the recogniser's own errors.

VoiceWERCER
Female (built-in)12.5%3.7%
Male (built-in)16.9%5.5%

Ezafe (the unwritten linking vowel), rated by a native speaker on 20 test sentences, 2 takes each: 39 of 40 clips right (female), 32 of 32 (male).

Limitations

  • Ezafe is inferred from context and is right in most noun phrases, but short predicate sentences («مرد خوب است») sometimes get an ezafe they should not have; a comma after the subject fixes it.
  • Ezafe errors depend on the reference clip: the same text can get a missing or an extra ezafe with one clip and not with another. Try another clip, or write the ezafe mark.
  • Occasionally a take stops early, gains a short sound at the end, or mispronounces a rare word or a foreign name; generating again usually fixes it.
  • Numbers written in digits are read, but check them in text where every number matters.
  • Persian is not one of the base model's built-in languages, so the Arabic language token ("ar") is used.

Licence

This model is released under the OncillaAI Chatterbox Farsi Non-Commercial License v1.0 (full text in LICENSE; downloading or using the model means you accept it). In short:

  • Permitted: research, education, evaluation and personal projects, and sharing the generated audio for non-commercial purposes.
  • Not permitted: commercial use without a licence; distillation, or using the model or its outputs to train, fine-tune or improve any other model; redistributing the weights or offering them as a service; removing the watermark; the uses listed under Responsible use.
  • Attribution: public use must show "Powered by OncillaAI Chatterbox Farsi" with a link to this page.
  • Commercial licences (products, services, paid content, internal business use): contact mehdi@oncillaai.com.

The base model, Chatterbox by Resemble AI, is MIT-licensed; its notice is in NOTICE. Its own components that this model uses unchanged (speech decoder, voice encoder, tokenizer) are downloaded from Resemble AI's repository under that licence.

Responsible use

This model can imitate a real person's voice from a few seconds of audio.

  • Only clone a voice with that person's permission. Do not use this model to impersonate anyone, to deceive, for fraud or scams, for harassment, or to make speech appear to come from someone who did not say it.
  • Disclose synthetic speech to listeners where it could be mistaken for a real recording.
  • Do not present the built-in voices, or any cloned voice, as a real person speaking.
  • Every output carries Resemble AI's inaudible Perth watermark, applied by the chatterbox-tts package, so generated audio can be identified. Do not remove it.

Credits

Built on Chatterbox by Resemble AI (MIT).

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Ревизия весов
532f660

0 моделей