Skip to content

Evaluation scripts for the Open TTS Leaderboard: https://huggingface.co/spaces/hf-audio/open_tts_leaderboard

Python

Add Persian evaluation using Neyshekar held-out splits (#37)

Reza Sayar76838d27667f
diff --git a/.gitignore b/.gitignore
index badf68f..c2609f3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
*.jsonl
*.json
+*.wav
# Byte-compiled / optimized / DLL files
__pycache__/
diff --git a/README.md b/README.md
index b5b2f04..6aec0b7 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,7 @@ The following datasets are used in the Open TTS Leaderboard:
1. [Seed TTS Eval](https://github.com/BytedanceSpeech/seed-tts-eval) (`tts` config): `en` (English) and `zh` (Chinese).
2. [CV3 Eval](https://github.com/QwenAudio/CV3-Eval): `en`, `zh`, `fr` (French), `es` (Spanish), `ja` (Japanese), `ko` (Korean), `it` (Italian), `de` (German), and `ru` (Russian) (`zero_shot` config, 500 samples per language).
3. [MiniMax Multilingual](https://huggingface.co/datasets/MiniMaxAI/TTS-Multilingual-Test-Set) (`tts` config): 100 samples x 24 languages. (Thai is scored with CER; Ukrainian is not supported by ASR)
+4. [Neyshekar](https://huggingface.co/datasets/shekar-ai/Neyshekar) (`tts` config): `fa` (Persian), from its predefined test split (2,098 samples), scored with CER. A `tts_validation` config, from its validation split, is reserved for development. See the [dataset card](https://huggingface.co/datasets/hf-audio/neyshekar_eval) for how prompts and targets are paired.
While human preference is the ultimate decider, **arenas cannot scale to keep up with the pace of TTS releases**. To this end, we use objective metrics to evaluate models on complementary aspects of performance:
@@ -77,6 +78,8 @@ Keep the repo names (`seed_tts_eval`, `cv3_eval`) as above, so that `DATASET_NAM
The [MiniMax](https://huggingface.co/datasets/MiniMaxAI/TTS-Multilingual-Test-Set) test set is CC BY-SA 4.0, so it is redistributed publicly as [hf-audio/minimax_eval](https://huggingface.co/datasets/hf-audio/minimax_eval) and jobs use it by default (`MINIMAX_EVAL_PATH`); no copy of your own is needed.
+Likewise, [Neyshekar](https://huggingface.co/datasets/shekar-ai/Neyshekar) (Persian) is CC0 1.0, so it is redistributed publicly as [hf-audio/neyshekar_eval](https://huggingface.co/datasets/hf-audio/neyshekar_eval) and jobs use it by default (`NEYSHEKAR_EVAL_PATH`).
+
#### 4. Smoke test
@@ -146,7 +149,7 @@ flowchart LR
4. **UTMOS** (`utmos`, `UTMOS_LANGS` only): [transformers/score_utmos.py](transformers/score_utmos.py) predicts a MOS for each wav with UTMOS22 strong.
5. **KOMOS** (`komos`, optional, Korean only): [transformers/score_komos.py](transformers/score_komos.py) scores Korean audio with `komos==0.0.2` and a pinned checkpoint in an isolated environment.
6. **Score** (on your machine): the model's manifests are synced to `./results/<model>` and scored per language:
- - **WER** after text normalization (CER for `zh`, `ja`, `ko`)
+ - **WER** after text normalization (CER for `zh`, `ja`, `ko`, `th`, `fa`)
- **RTFx**: total audio duration divided by total generation time, measured in stage 1
- **SIM**: mean speaker similarity, for voice cloning only
- **UTMOS**: mean predicted MOS
diff --git a/fishaudio-drama-3/submit_jobs.sh b/fishaudio-drama-3/submit_jobs.sh
index 03daa25..bcd957a 100755
--- a/fishaudio-drama-3/submit_jobs.sh
+++ b/fishaudio-drama-3/submit_jobs.sh
@@ -92,6 +92,7 @@ DATASET_CONFIGS=(
"tts id id ${MINIMAX_EVAL_PATH}"
"tts th th ${MINIMAX_EVAL_PATH}"
"tts vi vi ${MINIMAX_EVAL_PATH}"
+ "tts fa fa ${NEYSHEKAR_EVAL_PATH}"
)
# ── Models: "model_id concurrency" (CLI args override; only fishaudio/drama-3 is supported) ──
diff --git a/fishaudio-s2-pro/submit_jobs.sh b/fishaudio-s2-pro/submit_jobs.sh
index 96fcad3..e6aed00 100644
--- a/fishaudio-s2-pro/submit_jobs.sh
+++ b/fishaudio-s2-pro/submit_jobs.sh
@@ -66,6 +66,7 @@ DATASET_CONFIGS=(
"tts id id ${MINIMAX_EVAL_PATH}"
"tts th th ${MINIMAX_EVAL_PATH}"
"tts vi vi ${MINIMAX_EVAL_PATH}"
+ "tts fa fa ${NEYSHEKAR_EVAL_PATH}"
)
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
diff --git a/higgs/submit_jobs.sh b/higgs/submit_jobs.sh
index 3862082..18ac3a3 100644
--- a/higgs/submit_jobs.sh
+++ b/higgs/submit_jobs.sh
@@ -86,6 +86,7 @@ DATASET_CONFIGS=(
"tts id id ${MINIMAX_EVAL_PATH}"
"tts th th ${MINIMAX_EVAL_PATH}"
"tts vi vi ${MINIMAX_EVAL_PATH}"
+ "tts fa fa ${NEYSHEKAR_EVAL_PATH}"
)
# ── Models: "model_id concurrency" (CLI args override) ───────────────────────
diff --git a/moss-tts/submit_jobs.sh b/moss-tts/submit_jobs.sh
index 06c43dc..befe581 100644
--- a/moss-tts/submit_jobs.sh
+++ b/moss-tts/submit_jobs.sh
@@ -46,7 +46,6 @@ DATASET_CONFIGS=(
"zero_shot fr fr ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
"zero_shot it it ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
"zero_shot ru ru ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- # MiniMax multilingual (100 sentences/language): the languages the model supports. No `uk`: Qwen3-ASR has no Ukrainian.
"tts en en ${MINIMAX_EVAL_PATH}"
"tts zh zh ${MINIMAX_EVAL_PATH}"
"tts ja ja ${MINIMAX_EVAL_PATH}"
@@ -62,6 +61,7 @@ DATASET_CONFIGS=(
"tts el el ${MINIMAX_EVAL_PATH}"
"tts tr tr ${MINIMAX_EVAL_PATH}"
"tts ar ar ${MINIMAX_EVAL_PATH}"
+ "tts fa fa ${NEYSHEKAR_EVAL_PATH}"
)
# ── Models: "model_id batch_size" (CLI args override) ────────────────────────
diff --git a/normalizer/data_utils.py b/normalizer/data_utils.py
index 74861a7..e287367 100644
--- a/normalizer/data_utils.py
+++ b/normalizer/data_utils.py
@@ -2,6 +2,7 @@ import re
import num2words
from normalizer import EnglishTextNormalizer, BasicMultilingualTextNormalizer
+from normalizer.persian import PersianTextNormalizer
from normalizer.hindi import normalize_hi_numbers_after, normalize_hi_numbers_before
@@ -36,6 +37,8 @@ class MultilingualNormalizer(BasicMultilingualTextNormalizer):
return text.replace("%", " phần trăm")
def __call__(self, s, lang=None):
+ if lang == "fa":
+ return persian_normalizer(s)
if lang == "vi":
s = self._normalize_vi_numbers(s)
elif lang == "hi":
@@ -50,5 +53,7 @@ class MultilingualNormalizer(BasicMultilingualTextNormalizer):
normalizer = EnglishTextNormalizer()
+persian_normalizer = PersianTextNormalizer()
+
ml_normalizer = MultilingualNormalizer(remove_diacritics=False)
diff --git a/normalizer/eval_utils.py b/normalizer/eval_utils.py
index 753de58..a0ea361 100644
--- a/normalizer/eval_utils.py
+++ b/normalizer/eval_utils.py
@@ -29,8 +29,10 @@ _CJK_PATTERN = re.compile(
# Language codes that must be scored with CER. The single source of truth for the CJK list.
CJK_LANGUAGES = {"zh", "yue", "cmn", "ja", "jpn", "ko", "kor"}
-# Other scripts without word delimiters: ml_normalizer, then scored per character (CER).
-CHAR_LANGUAGES = {"th"}
+# Other languages scored per character (CER, spaces removed) after their own normalizer: Thai has no
+# word delimiters; Persian's are optional (half-space, space or joined: می‌روم / می روم / میروم),
+# so WER would mostly count spelling conventions of the TTS input and the ASR output.
+CHAR_LANGUAGES = {"th", "fa"}
def is_cjk_language(language: str) -> bool:
diff --git a/normalizer/persian.py b/normalizer/persian.py
new file mode 100644
index 0000000..362e873
--- /dev/null
+++ b/normalizer/persian.py
@@ -0,0 +1,73 @@
+"""Persian orthographic normalization, applied identically to references and ASR text."""
+
+import re
+import unicodedata
+
+from num2words import num2words
+
+from .normalizer import remove_non_speech_annotations
+
+
+_LETTERS = str.maketrans({"ي": "ی", "ى": "ی", "ك": "ک", "ۀ": "ه"})
+_DIGITS = str.maketrans("۰۱۲۳۴۵۶۷۸۹٠١٢٣٤٥٦٧٨٩", "01234567890123456789")
+# Short vowels, tanwin, shadda, sukun, dagger alif and Quranic annotation marks.
+# Keep hamza/madda: أ/آ/ؤ/ئ must not collapse into ا/و/ی.
+_VOCALIZATION = re.compile("[\u0610-\u061a\u064b-\u0652\u0656-\u065f\u0670\u06d6-\u06ed]")
+
+
+class PersianTextNormalizer:
+ """Use WER with Persian spelling conventions and the shared compound-boundary policy.
+
+ ZWNJ becomes a space; Persian is scored per character with spaces removed (CHAR_LANGUAGES
+ in eval_utils), so joined vs split spellings never count as errors. Do not stem or equate colloquial/formal words.
+ Numeric digit scripts are folded and integers expanded with num2words' Persian rules.
+ Decimal/group separators are handled before punctuation, so ۱۲٫۵ is not read as ۱۲۵.
+
+ This is a fixed notation policy, not a general Persian verbalizer: dates, phone numbers,
+ digit-by-digit readings, percentages, currencies and alternative decimal readings are not
+ reconciled, and numbers of 10**15 or more stay numeric. A TTS that reads these correctly
+ can still be penalized, so keep this in mind when interpreting Persian WER.
+ """
+
+ def __call__(self, text: str) -> str:
+ text = unicodedata.normalize("NFKC", text).lower().translate(_LETTERS).translate(_DIGITS)
+ text = remove_non_speech_annotations(text)
+ text = _VOCALIZATION.sub("", text).replace("ـ", "")
+ # Optional written ezafe on heh (خانهٔ / خانۀ); preserve hamza elsewhere.
+ text = text.replace("ه\u0654", "ه")
+ text = text.replace("\u200c", " ")
+ text = "".join(c for c in text if unicodedata.category(c) != "Cf")
+ # Only remove grouping separators in groups of three, never every comma blindly.
+ text = re.sub(r"(?<=\d)[,٬](?=\d{3}(?:\D|$))", "", text)
+ text = text.replace("٫", ".").replace("−", "-")
+
+ def expand(match):
+ number = match.group()
+ # Pass integers: num2words' Persian implementation cannot parse strings and
+ # its fractional helper conflates e.g. .05 and .5. Spell decimal notation
+ # with ممیز, retaining leading fractional zeros, without float rounding.
+ try:
+ integer, dot, fraction = number.partition(".")
+ value = int(integer)
+ if abs(value) >= 10**15:
+ return number
+ words = num2words(value, lang="fa")
+ if number.startswith("-") and value == 0:
+ words = "منفی " + words
+ if dot:
+ zeros = len(fraction) - len(fraction.lstrip("0"))
+ tail = (["صفر"] * zeros)
+ if fraction.lstrip("0"):
+ if len(fraction.lstrip("0")) > 15:
+ return number
+ tail.append(num2words(int(fraction), lang="fa"))
+ words += " ممیز " + " ".join(tail)
+ return words
+ except (ValueError, OverflowError):
+ return number
+
+ text = re.sub(r"(?<!\w)-?\d+(?:\.\d+)?", expand, text)
+ # The number expander can introduce ZWNJ; normalize its output as well.
+ text = text.translate(_LETTERS).replace("\u200c", " ")
+ text = "".join(" " if unicodedata.category(c)[0] in "PS" else c for c in text)
+ return " ".join(text.split())
diff --git a/omnivoice/submit_jobs.sh b/omnivoice/submit_jobs.sh
index 8e02bcb..85c2399 100644
--- a/omnivoice/submit_jobs.sh
+++ b/omnivoice/submit_jobs.sh
@@ -74,6 +74,7 @@ DATASET_CONFIGS=(
"tts id id ${MINIMAX_EVAL_PATH}"
"tts th th ${MINIMAX_EVAL_PATH}"
"tts vi vi ${MINIMAX_EVAL_PATH}"
+ "tts fa fa ${NEYSHEKAR_EVAL_PATH}"
)
# ── Models: "model_id batch_size" (CLI args override) ────────────────────────
diff --git a/scripts/open_results_pr.py b/scripts/open_results_pr.py
index 0940349..3ff8b4e 100644
--- a/scripts/open_results_pr.py
+++ b/scripts/open_results_pr.py
@@ -14,6 +14,8 @@ Files written (all in that dataset repo):
cv3_voice_clone.csv CV3-Eval, cloning each prompt (WER, RTFx, SIM, UTMOS + averages)
minimax.csv MiniMax multilingual, own/default voice (WER, RTFx, UTMOS + averages)
minimax_voice_clone.csv MiniMax multilingual, cloning each prompt (WER, RTFx, SIM, UTMOS + averages)
+ neyshekar.csv Neyshekar Persian test, own/default voice (WER, RTFx)
+ neyshekar_voice_clone.csv Neyshekar Persian test, cloning each prompt (WER, RTFx, SIM)
streaming.csv time-to-first-audio, CPU and GPU (TTFA, RTFx at batch 1)
Every file but model_info.csv also has a free-text `Note` column, filled by --note (e.g. hardware
@@ -63,6 +65,7 @@ REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, REPO_ROOT) # so `from normalizer import ...` resolves regardless of cwd
from huggingface_hub import CommitOperationAdd, HfApi, hf_hub_download # noqa: E402
+from huggingface_hub.errors import EntryNotFoundError # noqa: E402
from normalizer.eval_utils import SIM_BACKEND_SUFFIXES, UTMOS_COLUMN_LANGUAGES, KOMOS_LANGUAGES, default_multilingual, score_results # noqa: E402
@@ -101,13 +104,16 @@ class Target:
voice_clone: which side of the `_voice_clone` split this file publishes.
xvector_sim: this file also carries the xvector-scale SIM column, which needs a second scoring
pass (one `score_results` call reports one SIM scale).
+ languages: optional allowed language set, also preventing a development config whose
+ name shares the marker prefix from being published as final test results.
"""
- def __init__(self, filename, marker, voice_clone, xvector_sim=False):
+ def __init__(self, filename, marker, voice_clone, xvector_sim=False, languages=None):
self.filename = filename
self.marker = marker
self.voice_clone = voice_clone
self.xvector_sim = xvector_sim
+ self.languages = languages
# Keyed by --targets value; the order here is the order the files are reported and committed in.
@@ -120,6 +126,8 @@ TARGETS = {
"cv3_voice_clone": Target("cv3_voice_clone.csv", "cv3_eval_zero_shot_", voice_clone=True),
"minimax": Target("minimax.csv", "minimax_eval_tts_", voice_clone=False),
"minimax_voice_clone": Target("minimax_voice_clone.csv", "minimax_eval_tts_", voice_clone=True),
+ "neyshekar": Target("neyshekar.csv", "neyshekar_eval_tts_", voice_clone=False, languages={"fa"}),
+ "neyshekar_voice_clone": Target("neyshekar_voice_clone.csv", "neyshekar_eval_tts_", voice_clone=True, languages={"fa"}),
}
# streaming.csv is filled from the TTFA sidecars rather than by scoring, so it is not a Target.
@@ -205,6 +213,8 @@ def select_manifests(model_dir, model_safe, target, variant):
unmatched.append(stem)
continue
rest = rest[: -len(variant)]
+ if target.languages is not None and rest not in target.languages:
+ continue
selected[stem] = rest
return selected, unmatched
@@ -411,7 +421,17 @@ def line_terminator(line):
def fetch_csv(filename, hf_token, revision=None):
"""`filename` as published on `revision` (default: main; e.g. "refs/pr/126" for an open PR)."""
- path = hf_hub_download(RESULTS_REPO, filename, repo_type="dataset", token=hf_token, revision=revision)
+ try:
+ path = hf_hub_download(RESULTS_REPO, filename, repo_type="dataset", token=hf_token, revision=revision)
+ except EntryNotFoundError:
+ # Bootstrap only the new benchmark's files. Missing existing files and permission
+ # errors must still fail. The separate tts_validation config cannot match these targets.
+ if filename not in {"neyshekar.csv", "neyshekar_voice_clone.csv"}:
+ raise
+ header = ["model", "fa WER", "fa RTFx"]
+ if filename == "neyshekar_voice_clone.csv":
+ header.append("fa SIM")
+ return Published(serialize_row(header) + "\n")
with open(path, newline="", encoding="utf-8") as handle:
return Published(handle.read())
diff --git a/scripts/prepare_neyshekar_eval.py b/scripts/prepare_neyshekar_eval.py
new file mode 100644
index 0000000..94dd2de
--- /dev/null
+++ b/scripts/prepare_neyshekar_eval.py
@@ -0,0 +1,260 @@
+"""Prepare Persian Neyshekar evaluation data in the leaderboard's prompt/text schema.
+
+Only the predefined test/validation splits are downloaded (never train). Test becomes
+`tts/fa`; validation becomes `tts_validation/fa`, reserved for development. Pair clips
+within each split because the source splits are speaker-disjoint.
+
+Neyshekar is CC0 1.0, so everyone uses the one public copy at hf-audio/neyshekar_eval (the default
+destination), as with hf-audio/minimax_eval. The dataset card credits and cites the source.
+
+Examples:
+ python scripts/prepare_neyshekar_eval.py --dry-run --output-dir /tmp/neyshekar_eval
+ python scripts/prepare_neyshekar_eval.py # -> hf-audio/neyshekar_eval
+ python scripts/prepare_neyshekar_eval.py YOUR_USERNAME/neyshekar_eval
+"""
+
+import argparse
+from collections import Counter, defaultdict
+import hashlib
+import io
+import json
+import math
+from pathlib import Path
+import sys
+
+from datasets import Audio, Dataset, Features, Value, load_dataset
+from huggingface_hub import DatasetCard, HfApi, snapshot_download
+import soundfile as sf
+
+sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
+from normalizer.persian import PersianTextNormalizer # noqa: E402
+
+
+DEFAULT_REPO_ID = "hf-audio/neyshekar_eval"
+SOURCE_REPO_ID = "shekar-ai/Neyshekar"
+# V6.0: 2,149 test and 1,886 validation clips, with stable speaker IDs.
+SOURCE_REVISION = "30696ada746a66bb3047c984744b5ecfd60fe4e9"
+CONFIGS = {"test": "tts", "validation": "tts_validation"}
+_NORMALIZE = PersianTextNormalizer()
+
+
+def text_key(text):
+ """Detect repeated prompt/target sentences despite punctuation and half-space variants."""
+ return _NORMALIZE(text).replace(" ", "")
+
+
+def check_disjoint(splits):
+ """Fail rather than leak speakers or recordings between development and final test."""
+ seen_speakers, seen_ids = set(), set()
+ for name, rows in splits.items():
+ speakers = {row["speaker_id"] for row in rows}
+ ids = {row["id"] for row in rows}
+ if seen_speakers & speakers or seen_ids & ids:
+ raise ValueError(f"Speaker or recording overlap in source split {name!r}")
+ seen_speakers.update(speakers)
+ seen_ids.update(ids)
+
+
+def pair_records(rows, source_split):
+ """One fixed 3–10 s prompt per speaker; all other eligible, distinct texts are targets.
+
+ Choose the prompt closest to 5 s (tie: lowest numeric source ID), without using ASR
+ or model scores. Targets must be 1–30 s. Exclude every selected prompt's ID and
+ normalized text from ALL targets in this split. Deduplicate target texts per speaker.
+ Speakers without a usable prompt and a distinct target are omitted and reported.
+ """
+ if source_split not in CONFIGS:
+ raise ValueError("Only predefined test and validation splits are allowed")
+ counts = Counter()
+ grouped = defaultdict(list)
+ ids = set()
+ for row in rows:
+ counts["source_rows"] += 1
+ if row["id"] in ids:
+ raise ValueError(f"Duplicate source id {row['id']}")
+ ids.add(row["id"])
+ duration = row["duration"]
+ if (not isinstance(row["text"], str) or not row["text"].strip()
+ or not row["speaker_id"] or not isinstance(duration, (int, float))
+ or not math.isfinite(duration) or not 1 <= duration <= 30):
+ counts["invalid_or_out_of_duration_range"] += 1
+ continue
+ key = text_key(row["text"])
+ if not key:
+ counts["empty_normalized_text"] += 1
+ continue
+ grouped[row["speaker_id"]].append((row, key))
+
+ prompts = {}
+ for speaker, clips in sorted(grouped.items()):
+ candidates = [r for r, _ in clips if 3 <= r["duration"] <= 10]
+ if not candidates or len({key for _, key in clips}) < 2:
+ counts["speakers_without_prompt_or_distinct_target"] += 1
+ continue
+ prompts[speaker] = min(candidates, key=lambda r: (abs(r["duration"] - 5), r["id"]))
+
+ prompt_ids = {p["id"] for p in prompts.values()}
+ prompt_texts = {text_key(p["text"]) for p in prompts.values()}
+ records = []
+ for speaker, clips in sorted(grouped.items()):
+ if speaker not in prompts:
+ counts["rows_without_prompt"] += len(clips)
+ continue
+ prompt = prompts[speaker]
+ seen_texts = set()
+ for row, key in sorted(clips, key=lambda item: item[0]["id"]):
+ if row["id"] in prompt_ids or key in prompt_texts:
+ counts["prompt_id_or_text_excluded"] += 1
+ continue
+ if key in seen_texts:
+ counts["duplicate_target_text"] += 1
+ continue
+ seen_texts.add(key)
+ records.append({
+ "id": f"{source_split}_{row['id']}",
+ "text": row["text"],
+ "prompt_text": prompt["text"],
+ "prompt_audio": prompt["audio"],
+ "speaker_id": speaker,
+ "source_id": row["id"],
+ "prompt_id": prompt["id"],
+ "source_split": source_split,
+ })
+ if not records:
+ raise ValueError(f"No usable prompt/target pairs in {source_split}")
+ counts["output_rows"] = len(records)
+ counts["output_speakers"] = len({r["speaker_id"] for r in records})
+ return records, dict(counts)
+
+
+def build_dataset(records):
+ """Embed source WAV bytes unchanged and validate each distinct selected prompt."""
+ for prompt_id in sorted({r["prompt_id"] for r in records}):
+ audio = next(r["prompt_audio"] for r in records if r["prompt_id"] == prompt_id)
+ source = io.BytesIO(audio["bytes"]) if audio.get("bytes") is not None else audio["path"]
+ info = sf.info(source)
+ if info.channels != 1 or info.samplerate != 16_000 or not 3 <= info.duration <= 10:
+ raise ValueError(f"Prompt {prompt_id}: expected mono 16 kHz audio of 3–10 s, got {info}")
+ features = Features({
+ "id": Value("string"), "text": Value("string"), "prompt_text": Value("string"),
+ "prompt_audio": Audio(sampling_rate=16_000), "speaker_id": Value("string"),
+ "source_id": Value("int64"), "prompt_id": Value("int64"), "source_split": Value("string"),
+ })
+ return Dataset.from_dict({k: [r[k] for r in records] for k in features}, features=features)
+
+
+def dataset_card(revision, reports):
+ return f"""# Neyshekar Persian TTS evaluation
+
+Reformatted from [{SOURCE_REPO_ID}](https://huggingface.co/datasets/{SOURCE_REPO_ID}),
+revision `{revision}`, under [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/).
+Source authors: Ahmad Amirivojdan, Farzad Nadiri, Abolfazl Alizadeh and Shaghayegh Yaraghi.
+See [Neyshekar (2026)](https://arxiv.org/abs/2609.14542). Do not attempt to identify speakers.
+
+When requested, `tts/fa` uses the predefined **test** split and `tts_validation/fa` uses
+**validation**, for development only. No training recordings are used. Requested source
+splits are checked for disjoint speaker IDs. This does not establish disjointness from any
+evaluated model's training data; model authors must disclose Neyshekar training overlap.
+
+Within each split, select one 3–10 second prompt per speaker, closest to 5 seconds,
+ties broken by ascending source ID. Targets are the remaining 1–30 second recordings'
+transcripts, deduplicated per speaker. All selected prompt IDs and normalized prompt
+texts are excluded from targets across that split. Speakers without a prompt and a
+distinct target are omitted. Pairing uses no ASR/TTS quality scores. Rows are ordered
+by speaker ID, then numeric target ID. Speaker distribution follows the source and
+is not balanced. This is an automatically constructed evaluation set, not a manually
+audited TTS benchmark.
+
+**Changes:** prompt/target pairing, filtering, and conversion to the leaderboard's
+`id`, `text`, `prompt_text`, `prompt_audio` schema, with source/prompt IDs and split
+provenance. Original transcripts and prompt WAV bytes are unchanged. Target recordings
+are not copied into the evaluation set. Preparation script:
+[`prepare_neyshekar_eval.py`](https://github.com/huggingface/open-tts-leaderboard/blob/main/scripts/prepare_neyshekar_eval.py).
+
+Scoring: Qwen3-ASR (`fa`), Persian normalized WER, RTFx, and WavLM SIM for cloning.
+UTMOS22 is English-only and is not reported here. Normalization is applied only at
+scoring time, never to the synthesis input. See the repository's Persian evaluation docs.
+
+## Preparation report
+
+The SHA-256 covers ordered `[target_id, prompt_id]` pairs, encoded as compact JSON.
+
+```json
+{json.dumps(reports, ensure_ascii=False, indent=2)}
+```
+
+## Citation
+
+All credit for the recordings and transcripts goes to the Neyshekar authors. If you use this
+evaluation set, please cite the source corpus:
+
+```bibtex
+@article{{amirivojdan2026neyshekar,
+ title={{Neyshekar: An Open Persian Read-Speech Corpus for Automatic Speech Recognition}},
+ author={{Amirivojdan, Ahmad and Nadiri, Farzad and Alizadeh, Abolfazl and Yaraghi, Shaghayegh}},
+ journal={{arXiv preprint arXiv:2609.14542}},
+ year={{2026}},
+ doi={{10.48550/arXiv.2609.14542}},
+ url={{https://arxiv.org/abs/2609.14542}}
+}}
+```
+"""
+
+
+def main():
+ parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
+ parser.add_argument("repo_id", nargs="?", default=DEFAULT_REPO_ID,
+ help=f"HF dataset id to push to (default: {DEFAULT_REPO_ID}).")
+ parser.add_argument("--revision", default=SOURCE_REVISION, help="Source revision (default: pinned V6.0 commit)")
+ parser.add_argument("--splits", nargs="+", choices=list(CONFIGS), default=list(CONFIGS))
+ parser.add_argument("--dry-run", action="store_true", help="Prepare and validate without uploading")
+ parser.add_argument("--output-dir", type=Path, help="Also save datasets, card and provenance locally")
+ parser.add_argument("--private", action="store_true", help="Create a private destination (default: public)")
+ args = parser.parse_args()
+ # load_dataset(repo, split=...) can still prepare/download every split. Restrict
+ # the actual source files so the 10 GB training set is never downloaded.
+ revision = HfApi().dataset_info(SOURCE_REPO_ID, revision=args.revision).sha
+ source_dir = Path(snapshot_download(
+ SOURCE_REPO_ID, repo_type="dataset", revision=revision,
+ allow_patterns=[f"data/{name}-*.parquet" for name in args.splits],
+ ))
+ splits = {
+ name: load_dataset("parquet", data_files={name: sorted(str(p) for p in (source_dir / "data").glob(f"{name}-*.parquet"))},
+ split=name).cast_column("audio", Audio(decode=False))
+ for name in dict.fromkeys(args.splits)
+ }
+ check_disjoint(splits)
+ prepared, reports = {}, {}
+ for source_split, source in splits.items():
+ records, report = pair_records(source, source_split)
+ config = CONFIGS[source_split]
+ pairs = [[r["source_id"], r["prompt_id"]] for r in records]
+ report["pairs_sha256"] = hashlib.sha256(json.dumps(pairs, separators=(",", ":")).encode()).hexdigest()
+ prepared[config] = build_dataset(records)
+ reports[config] = {"source_split": source_split, **report}
+ print(f"{config}/fa: {json.dumps(report)}")
+ card_text = dataset_card(revision, reports)
+ if args.output_dir:
+ args.output_dir.mkdir(parents=True, exist_ok=True)
+ for config, dataset in prepared.items():
+ dataset.save_to_disk(str(args.output_dir / config / "fa"))
+ (args.output_dir / "README.md").write_text(card_text, encoding="utf-8")
+ (args.output_dir / "provenance.json").write_text(json.dumps({
+ "source_repo": SOURCE_REPO_ID, "source_revision": revision, "configs": reports,
+ }, indent=2) + "\n", encoding="utf-8")
+ if args.dry_run:
+ print("Dry run — nothing uploaded.")
+ return
+ for config, dataset in prepared.items():
+ dataset.push_to_hub(args.repo_id, config_name=config, split="fa", private=args.private)
+ card = DatasetCard.load(args.repo_id, repo_type="dataset")
+ card.data.license = "cc0-1.0"
+ card.data.language = ["fa"]
+ card.data.task_categories = ["text-to-speech"]
+ card.data.source_datasets = [SOURCE_REPO_ID]
+ card.text = card_text
+ card.push_to_hub(args.repo_id, repo_type="dataset", commit_message="Document Neyshekar Persian evaluation provenance")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/scripts/tts_jobs_common.sh b/scripts/tts_jobs_common.sh
index 1e45219..f6e2dc0 100644
--- a/scripts/tts_jobs_common.sh
+++ b/scripts/tts_jobs_common.sh
@@ -40,6 +40,8 @@ DEFAULT_DATASET_PATH="${DATASET_PATH:-${DATASET_NAMESPACE}/seed_tts_eval}"
CV3_EVAL_PATH="${CV3_EVAL_PATH:-${DATASET_NAMESPACE}/cv3_eval}"
# MiniMax is CC BY-SA 4.0, so everyone uses the one public copy (scripts/prepare_minimax_eval.py).
MINIMAX_EVAL_PATH="${MINIMAX_EVAL_PATH:-hf-audio/minimax_eval}"
+# Neyshekar (Persian) is CC0, so everyone uses the one public copy (scripts/prepare_neyshekar_eval.py).
+NEYSHEKAR_EVAL_PATH="${NEYSHEKAR_EVAL_PATH:-hf-audio/neyshekar_eval}"
ORG_NAME="${ORG_NAME:-}"
# Stage-1 (generation) flavor. IMPORTANT: keep this the SAME (h200) for EVERY backend — RTFx is
# measured on the generation stage, so a uniform GPU is required for RTFx to be comparable across
diff --git a/transformers/submit_jobs.sh b/transformers/submit_jobs.sh
index d7f87f7..bbf5325 100755
--- a/transformers/submit_jobs.sh
+++ b/transformers/submit_jobs.sh
@@ -62,7 +62,7 @@ declare -A TRANSFORMERS_LANGUAGES=(
# The 10 speech-output languages of the model card.
["Qwen/Qwen3-Omni-30B-A3B-Instruct"]="en zh fr de ru it es pt ja ko"
# run_eval.py's SEAMLESS_LANGUAGE_CODES (speech output) that some dataset below has.
- ["facebook/seamless-m4t-v2-large"]="en zh ja ko fr de es it pt ru nl pl cs ro fi tr ar hi id th vi"
+ ["facebook/seamless-m4t-v2-large"]="en zh ja ko fr de es it pt ru nl pl cs ro fi tr ar hi id th vi fa"
)
supports_language() {
[[ " ${TRANSFORMERS_LANGUAGES[${MODEL_ID}]:-${TRANSFORMERS_DEFAULT_LANGUAGES}} " == *" $1 "* ]]
@@ -104,6 +104,7 @@ DATASET_CONFIGS=(
"tts id id ${MINIMAX_EVAL_PATH}"
"tts th th ${MINIMAX_EVAL_PATH}"
"tts vi vi ${MINIMAX_EVAL_PATH}"
+ "tts fa fa ${NEYSHEKAR_EVAL_PATH}"
)
# ── Models: "model_id batch_size max_new_tokens" (max_new_tokens optional; CLI args override) ──