Skip to content

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

Python

Add ZTTS2-Eval Mini (#55)

Sofian Mejjoutea23512d7d66f
diff --git a/.gitignore b/.gitignore
index c2609f3..1826b03 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,7 @@
*.jsonl
*.json
+# Hub commit each model is pinned to in the jobs (scripts/pin_revisions.py)
+!model_revisions.json
*.wav
# Byte-compiled / optimized / DLL files
diff --git a/README.md b/README.md
index 6aec0b7..475feb6 100644
--- a/README.md
+++ b/README.md
@@ -9,10 +9,11 @@ The following datasets are used in the Open TTS Leaderboard:
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.
+5. [ZTTS2-Eval](https://github.com/Zyphra/ZTTS2-Eval) Mini ([Zyphra/ztts2_eval_mini](https://huggingface.co/datasets/Zyphra/ztts2_eval_mini), public): the benchmark's coreset panels, run and reported as two datasets: `clean` (`ztts2_mini_clean`: FLEURS-R, 35 languages, 3,500 items) and `in_the_wild` (`ztts2_mini_itw`: VoxBlink2, 20 languages, 1,919 items). In-The-Wild is wired in but opt-in, as it is not on the leaderboard yet. Transcribed with Whisper-large-v3 for languages it introduces: `fil` (Tagalog), `sv`, `da`, `hu`, `uk`, `nb`, `he`, `bg`, `hr`, `sk`, `ca` and `ms`, and with Qwen3-ASR for the rest.
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:
-1. **Intelligibility**: word/character error rate (WER and CER) between the target text and the generated audio's transcript, using [Qwen3 ASR](https://huggingface.co/Qwen/Qwen3-ASR-1.7B-hf) (top ranking open-source model on the [Open ASR Leaderboard](https://huggingface.co/spaces/hf-audio/open_asr_leaderboard)).
+1. **Intelligibility**: word/character error rate (WER and CER) between the target text and the generated audio's transcript, using [Qwen3 ASR](https://huggingface.co/Qwen/Qwen3-ASR-1.7B-hf) (top ranking open-source model on the [Open ASR Leaderboard](https://huggingface.co/spaces/hf-audio/open_asr_leaderboard)) (ZTTS2-Eval Mini: routed per language, see above).
2. **Speed**: inverse real-time factor (RTFx) for batched offline inference on an H200 GPU, and time-to-first-audio (TTFA) for quantifying streaming batch size 1 latency on an A100 GPU and CPU.
3. **Speaker similarity** by computing the cosine similarity (SIM) between [WavLM speaker embeddings](https://huggingface.co/bezzam/wavlm_large_finetune_seed_tts_eval) of the generated audio and the reference clip. Note that not all models support voice cloning, so those models are omitted from this evaluation.
4. **Naturalness**: predicted MOS (1-5) with [UTMOS22 strong](https://github.com/tarepan/SpeechMOS) (UTMOS). UTMOS22 is trained on English only, so it is reported for `en` only. An optional [KOMOS](https://github.com/upskyy/komos) pilot reports Korean predicted MOS for `ko`.
@@ -80,6 +81,8 @@ The [MiniMax](https://huggingface.co/datasets/MiniMaxAI/TTS-Multilingual-Test-Se
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`).
+[ZTTS2-Eval](https://github.com/Zyphra/ZTTS2-Eval) Mini is public as [Zyphra/ztts2_eval_mini](https://huggingface.co/datasets/Zyphra/ztts2_eval_mini) and jobs use it by default (`ZTTS2_EVAL_MINI_PATH`). It is built with `python scripts/prepare_ztts2_eval_mini.py --ztts2-root <ZTTS2-Eval checkout>` (the prompt audio comes from ZTTS2-Eval's `scripts/prep/download_data.py`). Its In-The-Wild part is CC-BY-NC-SA-4.0 (non-commercial).
+
#### 4. Smoke test
@@ -144,12 +147,12 @@ flowchart LR
```
1. **Generate** (`generate`): the backend's `run_eval.py` synthesizes every sample of the split and writes the wavs plus a JSONL manifest to `RESULTS_BUCKET`, in a folder per model.
-2. **Transcribe** (`transcribe`): [transformers/transcribe.py](transformers/transcribe.py) transcribes the wavs with [Qwen3-ASR-1.7B](https://huggingface.co/Qwen/Qwen3-ASR-1.7B-hf), using the split's language as a hint.
+2. **Transcribe** (`transcribe`): [transformers/transcribe.py](transformers/transcribe.py) transcribes the wavs with [Qwen3-ASR-1.7B](https://huggingface.co/Qwen/Qwen3-ASR-1.7B-hf), using the split's language as a hint. ZTTS2-Eval Mini splits use `--asr_profile ztts2` instead (Whisper-large-v3 or Qwen3-ASR per language, as ZTTS2-Eval).
3. **Speaker similarity** (`sim`, voice cloning only): [transformers/score_similarity.py](transformers/score_similarity.py) compares each generated clip with its reference prompt, using the [Seed TTS Eval](https://github.com/BytedanceSpeech/seed-tts-eval#metrics) speaker-verification model (WavLM-large + ECAPA-TDNN, mirrored [here](https://huggingface.co/bezzam/wavlm_large_finetune_seed_tts_eval)).
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`, `th`, `fa`)
+ - **WER** after text normalization (CER for `zh`, `ja`, `ko`, `th`, `fa`; in Korean a Latin word is one CER token, as in ZTTS2-Eval; Arabic vowel marks and letter variants such as أ/إ/ا or ة/ه are folded, as in ZTTS2-Eval), pooled over the split (total errors / total reference words) with each utterance's errors capped at its reference length, so one runaway or hallucinated clip counts as at most 100% WER
- **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
@@ -176,18 +179,23 @@ Useful environment variables (see [scripts/tts_jobs_common.sh](scripts/tts_jobs_
| `DATASET_NAMESPACE` | `hf-audio` | Namespace holding your private `seed_tts_eval` / `cv3_eval` copies |
| `RESULTS_BUCKET` | `hf-audio/tts_leaderboard_h200` | Bucket the jobs write to |
| `MAX_EVAL_SAMPLES` | `-1` (all) | Cap samples per split, e.g. `8` for a smoke test |
-| `ONLY_LANGS` | (all) | Only run the configured splits for these languages, e.g. `"en zh"` |
-| `ONLY_DATASETS` | (all) | Only run the configured splits of these dataset repos (name after the namespace), e.g. `"minimax_eval"` |
+| `ONLY_DATASETS` | (all but the opt-in `ztts2_mini_itw`) | Only run these of the backend's datasets (naming `ztts2_mini_itw` includes it), by [registry](#datasets-and-languages) name (`seed_tts cv3 minimax neyshekar ztts2_mini_clean ztts2_mini_itw`) or repo name (`ztts2_eval_mini` = both ZTTS2 panels), e.g. `"minimax"` |
+| `ONLY_LANGS` | (all) | Only run the splits in these languages, e.g. `"en zh"` |
+| `DRY_RUN` | `false` | Print the (model, split) combos a run would submit, without submitting anything |
| `STAGES` | `generate transcribe sim utmos` | Subset of stages, e.g. `"transcribe sim"` to re-score existing wavs. Add the optional `komos` stage to score Korean (`ko`) outputs |
| `VOICE_CLONE` | `false` | Clone the prompt speaker (backends that support both modes) |
| `ASR_OVERWRITE` / `SIM_OVERWRITE` | `false` | Recompute `pred_text` / `sim` instead of resuming. SIM is always recomputed when `generate` runs; set `SIM_OVERWRITE=true` only to re-score existing audio with `STAGES="sim"` |
| `ORG_NAME` | (none) | Run the jobs under an organization's namespace |
+| `ZTTS2_EVAL_MINI_PATH` | `Zyphra/ztts2_eval_mini` | ZTTS2-Eval Mini dataset repo (public) |
Examples:
```bash
# all configured models + splits of a backend
bash kokoro/submit_jobs.sh
+# only MiniMax German and French; DRY_RUN=true lists the splits without submitting
+ONLY_DATASETS=minimax ONLY_LANGS="de fr" DRY_RUN=true bash voxcpm2/submit_jobs.sh
+
# a specific model (overrides the backend's MODEL_CONFIGS; format is backend-specific)
VOICE_CLONE=true bash transformers/submit_jobs.sh "vibevoice/VibeVoice-1.5B-hf 32 512"
@@ -197,6 +205,26 @@ python scripts/score_model.py --model_id hexgrad/Kokoro-82M --language en
Job logs are written to `<backend>/job_logs/`. Live status is at https://huggingface.co/settings/jobs.
+#### Datasets and languages
+
+The datasets and their splits are defined once, in the registry in [scripts/tts_jobs_common.sh](scripts/tts_jobs_common.sh) (`dataset_repo` / `dataset_splits`). A backend only lists the languages its model speaks:
+```bash
+SUPPORTED_LANGUAGES="en zh fr de es" # default (empty): every language
+```
+`run_pipeline` runs every split of every dataset whose language is in `SUPPORTED_LANGUAGES`, and skips the rest. A backend that must leave a whole dataset out can set `DATASETS` (default: every dataset in the registry), e.g. `DATASETS="seed_tts cv3 minimax"`. A backend whose rule depends on the model or the mode (e.g. one checkpoint per language, or languages only in voice-cloning mode) overrides `supports_language()` instead, calling `language_supported` for the `SUPPORTED_LANGUAGES` check: see [zonos3-mini/submit_jobs.sh](zonos3-mini/submit_jobs.sh) or [transformers/submit_jobs.sh](transformers/submit_jobs.sh).
+
+To add a dataset, add it to `DATASET_NAMES`, `dataset_repo` and `dataset_splits` in the registry; to add a language to an existing dataset, add the split to `dataset_splits`. Either way every backend that supports the language picks it up, with no change to the backends (check with `DRY_RUN=true`).
+
+#### Pinned model revisions
+
+Every job downloads the models at the commit pinned in [model_revisions.json](model_revisions.json). To maintain the list:
+```bash
+python scripts/pin_revisions.py # pin new models (MODEL_CONFIGS, scorers) at their current main
+python scripts/pin_revisions.py --add org/name # e.g. a repo logged as UNPINNED
+python scripts/pin_revisions.py --check # pinned repos whose main moved, with the new commits
+python scripts/pin_revisions.py --bump org/name # re-pin after reviewing those commits
+```
+
#### Publishing results
The leaderboard reads its CSVs from [hf-audio/tts_leaderboard_results](https://huggingface.co/datasets/hf-audio/tts_leaderboard_results) (private dataset). [scripts/open_results_pr.py](scripts/open_results_pr.py) scores the bucket manifests the same way as above and opens a PR on that repo with the model's rows. Without `--open_pr` it is a dry run:
@@ -249,10 +277,12 @@ Seamless is fast and batched, so most of each of its generation jobs (~1 min per
3. **Write `<backend>/submit_jobs.sh`**, which sources [scripts/tts_jobs_common.sh](scripts/tts_jobs_common.sh) and then:
- sets `TTS_SPACE` (your Docker Space), or its own registry image if it doesn't use a Space, and `RUN_EVAL_INJECT="$(inject_run_eval)"`
- defines `generate_stage()`, the `hf jobs run` command for stage 1
- - sets `SUPPORTS_VOICE_CLONE=true` if the model can clone, and optionally defines `supports_language()` to skip splits the model can't synthesize
- - sets `DATASET_CONFIGS` and `MODEL_CONFIGS`, then calls `run_pipeline`
-4. **Smoke test** with `MAX_EVAL_SAMPLES=8 ONLY_LANGS="en" bash <backend>/submit_jobs.sh`, then run the full evaluation.
-5. **Open a PR** on this repository with the new backend folder, using the [pull request template](.github/pull_request_template.md). Include the scores printed at the end of the run. A maintainer will then publish the results to the leaderboard with `scripts/open_results_pr.py`.
+ - sets `SUPPORTS_VOICE_CLONE=true` if the model can clone
+ - sets `SUPPORTED_LANGUAGES`, the model card's languages (see [Datasets and languages](#datasets-and-languages))
+ - sets `MODEL_CONFIGS`, then calls `run_pipeline`
+4. **Pin the model**: `python scripts/pin_revisions.py` adds the new model ids to [model_revisions.json](model_revisions.json) (see [Pinned model revisions](#pinned-model-revisions)).
+5. **Smoke test**: check the splits with `DRY_RUN=true bash <backend>/submit_jobs.sh`, run `MAX_EVAL_SAMPLES=8 ONLY_LANGS="en" bash <backend>/submit_jobs.sh`, then run the full evaluation.
+6. **Open a PR** on this repository with the new backend folder, using the [pull request template](.github/pull_request_template.md). Include the scores printed at the end of the run. A maintainer will then publish the results to the leaderboard with `scripts/open_results_pr.py`.
## Time-to-first audio (streaming) evaluation
@@ -352,4 +382,11 @@ If you use the Open TTS Leaderboard, please cite it along with the benchmarks it
journal = {arXiv preprint arXiv:2505.17589},
year = {2025}
}
+
+@misc{ztts2eval,
+ title={{ZTTS2-Eval}: A Multilingual, In-the-Wild Zero-Shot TTS Benchmark},
+ author={Zyphra},
+ year={2026},
+ howpublished={\url{https://github.com/Zyphra/ZTTS2-Eval}},
+}
```
diff --git a/audio8/submit_jobs.sh b/audio8/submit_jobs.sh
index 567d635..f820b36 100755
--- a/audio8/submit_jobs.sh
+++ b/audio8/submit_jobs.sh
@@ -41,43 +41,8 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-# Without a 4th field the line uses DEFAULT_DATASET_PATH (hf-audio/seed_tts_eval).
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot fr fr ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot zh zh ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ja ja ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ko ko ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot de de ${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.
- # Not supported by the model: cs, ro, el, uk. Supported but not in MiniMax: ms, no, sv.
- "tts en en ${MINIMAX_EVAL_PATH}"
- "tts zh zh ${MINIMAX_EVAL_PATH}"
- "tts yue yue ${MINIMAX_EVAL_PATH}"
- "tts ja ja ${MINIMAX_EVAL_PATH}"
- "tts ko ko ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "tts ru ru ${MINIMAX_EVAL_PATH}"
- "tts nl nl ${MINIMAX_EVAL_PATH}"
- "tts pl pl ${MINIMAX_EVAL_PATH}"
- "tts fi fi ${MINIMAX_EVAL_PATH}"
- "tts tr tr ${MINIMAX_EVAL_PATH}"
- "tts ar ar ${MINIMAX_EVAL_PATH}"
- "tts hi hi ${MINIMAX_EVAL_PATH}"
- "tts id id ${MINIMAX_EVAL_PATH}"
- "tts th th ${MINIMAX_EVAL_PATH}"
- "tts vi vi ${MINIMAX_EVAL_PATH}"
-)
+# ── Languages Audio8 Realistic covers (model card; no cs, el, ro, uk) ──
+SUPPORTED_LANGUAGES="zh en ja ko de fr es it ru ar fi hi id ms nl nb pl pt sv th tr vi yue"
# ── Models: "model_id batch_size" (CLI args override) ────────────────────────
MODEL_CONFIGS=(
diff --git a/auk/submit_jobs.sh b/auk/submit_jobs.sh
index 27823fb..7794de3 100755
--- a/auk/submit_jobs.sh
+++ b/auk/submit_jobs.sh
@@ -26,8 +26,7 @@ resolve_mode() {
}
# ── Languages AuK is documented for ─────────────────────────────────────────
-AUK_LANGUAGES="${AUK_LANGUAGES:-en zh}"
-supports_language() { [[ " ${AUK_LANGUAGES} " == *" $1 "* ]]; }
+SUPPORTED_LANGUAGES="${AUK_LANGUAGES:-en zh}"
# ── Stage 1: TTS generation. MODEL_CFG = "model_id [batch_size] [duration_scale]". ──
MAX_ATTN_COST="${MAX_ATTN_COST:-0}"
@@ -62,18 +61,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-# Seed-TTS zero-shot TTS splits: en (1088), zh (2020), zh_hard (400).
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot zh zh ${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}"
-)
-
# ── Models: "model_id [batch_size] [duration_scale]" (CLI args override) ─────
MODEL_CONFIGS=(
"tencent/AuK 16 1.0"
diff --git a/breeze-tts/run_eval.py b/breeze-tts/run_eval.py
index cb88013..34e66c9 100644
--- a/breeze-tts/run_eval.py
+++ b/breeze-tts/run_eval.py
@@ -57,7 +57,11 @@ from breeze_infer.runtime import ( # noqa: E402
)
from breeze_infer.templates import get_template, prepare_inputs # noqa: E402
from models.fast_streaming import FastBreezeStreamingRuntime, FastStreamingConfig # noqa: E402
-from models.warmup_profile import load_warmup_profile # noqa: E402
+from models.warmup_profile import ( # noqa: E402
+ BackbonePrefillWarmupGraph,
+ TextEncoderWarmupGraph,
+ load_warmup_profile,
+)
# infer.py's own ceilings, which override the checkpoint's generation_config (max_new_tokens=750).
MAX_NEW_TOKENS = 1500
@@ -72,6 +76,32 @@ DEFAULT_INSTRUCTIONS = {
}
+def _cover_all_lengths(profile):
+ """Declare every batch size's graphs up to the profile's longest length (step: its shortest).
+
+ configs/fast.json stops batch-1 graphs at 256 tokens (batch 2, the CFG path, goes to 512), and the
+ frozen runtime raises on an undeclared shape, so a longer reference prompt in no-CFG voice cloning
+ (e.g. ZTTS2-Eval's) failed. Declaring the missing shapes only adds graphs, captured in the
+ untimed warmup; shapes the profile already had are unchanged.
+ """
+ def extend(graphs, size_of, length_of, make):
+ lengths = sorted({length_of(g) for g in graphs})
+ step, longest = lengths[0], lengths[-1]
+ have = {(size_of(g), length_of(g)) for g in graphs}
+ extra = [make(b, n) for b in sorted({size_of(g) for g in graphs})
+ for n in range(step, longest + 1, step) if (b, n) not in have]
+ return tuple(graphs) + tuple(extra)
+
+ return replace(
+ profile,
+ text_encoder_graphs=extend(profile.text_encoder_graphs, lambda g: g.batch_size, lambda g: g.token_length,
+ lambda b, n: TextEncoderWarmupGraph(batch_size=b, token_length=n)),
+ backbone_prefill_graphs=extend(profile.backbone_prefill_graphs, lambda g: g.branch_batch_size,
+ lambda g: g.sequence_length,
+ lambda b, n: BackbonePrefillWarmupGraph(branch_batch_size=b, sequence_length=n)),
+ )
+
+
def _default_instruction(language: str) -> str:
return DEFAULT_INSTRUCTIONS.get((language or "en").split("_")[0], DEFAULT_INSTRUCTIONS["en"])
@@ -107,6 +137,7 @@ def main(args):
if runtime.fast_enabled:
profile = load_warmup_profile(BREEZE_REPO / "configs" / "fast.json")
profile = replace(profile, codec_chunk_frames=runtime.codec_chunk_frames)
+ profile = _cover_all_lengths(profile)
manifest = runtime.warmup_from_profile(profile)
print(f"Fast-path warmup: {manifest['total_elapsed_ms']:.2f} ms")
diff --git a/breeze-tts/submit_jobs.sh b/breeze-tts/submit_jobs.sh
index c58de83..da42516 100755
--- a/breeze-tts/submit_jobs.sh
+++ b/breeze-tts/submit_jobs.sh
@@ -14,8 +14,7 @@ FAST_ALL="${FAST_ALL:-true}"
# ── Languages this backend can select ────────────────────────────────────────
# Breeze TTS 2 is English + Chinese only; other CV3-Eval languages are skipped.
-BREEZE_LANGUAGES="en zh"
-supports_language() { [[ " ${BREEZE_LANGUAGES} " == *" $1 "* ]]; }
+SUPPORTED_LANGUAGES="en zh"
# ── Voice cloning ────────────────────────────────────────────────────────────
# Breeze has no default voice: VOICE_CLONE=false uses reference-free voice design (no SIM).
@@ -48,17 +47,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot zh zh ${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}"
-)
-
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
MODEL_CONFIGS=("BreezeBlue/Breeze-TTS-2")
[[ $# -gt 0 ]] && MODEL_CONFIGS=("$@")
diff --git a/chatterbox/submit_jobs.sh b/chatterbox/submit_jobs.sh
index 3bb0b42..7dd2016 100644
--- a/chatterbox/submit_jobs.sh
+++ b/chatterbox/submit_jobs.sh
@@ -53,39 +53,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment to pick) ────────
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot fr fr ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot zh zh ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ja ja ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ko ko ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot de de ${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}"
- "tts ko ko ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "tts ru ru ${MINIMAX_EVAL_PATH}"
- "tts nl nl ${MINIMAX_EVAL_PATH}"
- "tts pl pl ${MINIMAX_EVAL_PATH}"
- "tts el el ${MINIMAX_EVAL_PATH}"
- "tts fi fi ${MINIMAX_EVAL_PATH}"
- "tts tr tr ${MINIMAX_EVAL_PATH}"
- "tts ar ar ${MINIMAX_EVAL_PATH}"
- "tts hi hi ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id variant supported_langs" (CLI args override) ───────────
# variant: `english` -> ChatterboxTTS (English-only checkpoint, no language argument)
# `multilingual` -> ChatterboxMultilingualTTS (needs language_id; `_multilingual` suffix)
diff --git a/cosyvoice3/submit_jobs.sh b/cosyvoice3/submit_jobs.sh
index 726507f..19a797d 100755
--- a/cosyvoice3/submit_jobs.sh
+++ b/cosyvoice3/submit_jobs.sh
@@ -26,9 +26,7 @@ resolve_mode() {
}
# ── Languages Fun-CosyVoice3 covers (model card: 9 languages) ────────────────
-# Matched against asr_language (so `zh_hard` / `hard_zh` match `zh`).
-COSYVOICE3_LANGUAGES=" zh en ja ko de es fr it ru "
-supports_language() { [[ "${COSYVOICE3_LANGUAGES}" == *" $1 "* ]]; }
+SUPPORTED_LANGUAGES="zh en ja ko de es fr it ru"
# ── Stage 1: TTS generation. MODEL_CFG = "model_id batch_size [llm_checkpoint]". ──
# No batched API (inference_zero_shot takes one string); --batch_size only chunks manifest
@@ -57,31 +55,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot de de ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ko ko ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ru ru ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ja ja ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot zh zh ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot fr fr ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot it it ${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}"
- "tts ko ko ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts ru ru ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id batch_size [llm_checkpoint]" (CLI args override) ───────
# The base (llm.pt) and RL (llm.rl.pt) checkpoints write separate manifests, so both can coexist.
MODEL_CONFIGS=(
diff --git a/echo-tts/submit_jobs.sh b/echo-tts/submit_jobs.sh
index 2c2025b..6a79acb 100644
--- a/echo-tts/submit_jobs.sh
+++ b/echo-tts/submit_jobs.sh
@@ -9,7 +9,7 @@ TTS_SPACE="${TTS_SPACE:-mrfakename/evals-echo-tts}" # stage-1 image (Dockerfil
# gen FLAVOR (h200) is set centrally in tts_jobs_common.sh for RTFx comparability — don't override.
RUN_EVAL_INJECT="$(inject_run_eval)"
SUPPORTS_VOICE_CLONE=true # VOICE_CLONE=true clones each sample's reference speaker + scores SIM
-supports_language() { [[ "$1" == en ]]; } # English only
+SUPPORTED_LANGUAGES="en" # English only
# ── Stage 1: TTS generation. MODEL_CFG = "model_id". ──
generate_stage() {
@@ -31,13 +31,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment to pick) ────────
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "tts en en ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
MODEL_CONFIGS=(
"jordand/echo-tts-base"
diff --git a/fishaudio-drama-3/submit_jobs.sh b/fishaudio-drama-3/submit_jobs.sh
index bcd957a..eacbb2a 100755
--- a/fishaudio-drama-3/submit_jobs.sh
+++ b/fishaudio-drama-3/submit_jobs.sh
@@ -13,7 +13,7 @@ SGLANG_PORT="${SGLANG_PORT:-8000}"
WARMUP_STEPS="${WARMUP_STEPS:-2}" # untimed warm-up batches
# gen FLAVOR (h200) is set centrally in tts_jobs_common.sh for RTFx comparability — don't override.
# run_eval.py is large: gzip it, since a job body is one `bash -c` argument (128 KiB cap).
-RUN_EVAL_INJECT="$(inject_cmd_gz "${BACKEND_DIR}/run_eval.py" /app/fishaudio-drama-3/run_eval.py) $(inject_cmd_gz "${REPO_ROOT}/scripts/run_eval_utils.py" /app/scripts/run_eval_utils.py) ${SCRIPTS_PYTHONPATH}"
+RUN_EVAL_INJECT="${HF_PIN_INJECT} $(inject_cmd_gz "${BACKEND_DIR}/run_eval.py" /app/fishaudio-drama-3/run_eval.py) $(inject_cmd_gz "${REPO_ROOT}/scripts/run_eval_utils.py" /app/scripts/run_eval_utils.py) ${SCRIPTS_PYTHONPATH}"
# Voice cloning (VOICE_CLONE=true): clone the per-sample reference + score SIM; else built-in voice.
SUPPORTS_VOICE_CLONE=true
@@ -56,44 +56,8 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment to pick) ────────
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot zh zh ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot fr fr ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ja ja ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ko ko ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot de de ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${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}"
- "tts ko ko ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "tts ru ru ${MINIMAX_EVAL_PATH}"
- "tts nl nl ${MINIMAX_EVAL_PATH}"
- "tts pl pl ${MINIMAX_EVAL_PATH}"
- "tts cs cs ${MINIMAX_EVAL_PATH}"
- "tts ro ro ${MINIMAX_EVAL_PATH}"
- "tts el el ${MINIMAX_EVAL_PATH}"
- "tts fi fi ${MINIMAX_EVAL_PATH}"
- "tts tr tr ${MINIMAX_EVAL_PATH}"
- "tts ar ar ${MINIMAX_EVAL_PATH}"
- "tts hi hi ${MINIMAX_EVAL_PATH}"
- "tts id id ${MINIMAX_EVAL_PATH}"
- "tts th th ${MINIMAX_EVAL_PATH}"
- "tts vi vi ${MINIMAX_EVAL_PATH}"
- "tts fa fa ${NEYSHEKAR_EVAL_PATH}"
-)
+# Fish Audio Drama 3 covers every ZTTS2-Eval Mini language (model card): every benchmark language but Cantonese (yue).
+SUPPORTED_LANGUAGES="en zh ja ko fr de es it pt ru nl pl cs ro el fi tr ar hi id th vi fa sv da hu uk nb he bg hr sk ca ms fil"
# ── Models: "model_id concurrency" (CLI args override; only fishaudio/drama-3 is supported) ──
MODEL_CONFIGS=(
diff --git a/fishaudio-s2-pro/submit_jobs.sh b/fishaudio-s2-pro/submit_jobs.sh
index e6aed00..71909df 100644
--- a/fishaudio-s2-pro/submit_jobs.sh
+++ b/fishaudio-s2-pro/submit_jobs.sh
@@ -30,44 +30,8 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment to pick) ────────
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot zh zh ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot fr fr ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ja ja ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ko ko ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot de de ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${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}"
- "tts ko ko ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "tts ru ru ${MINIMAX_EVAL_PATH}"
- "tts nl nl ${MINIMAX_EVAL_PATH}"
- "tts pl pl ${MINIMAX_EVAL_PATH}"
- "tts cs cs ${MINIMAX_EVAL_PATH}"
- "tts ro ro ${MINIMAX_EVAL_PATH}"
- "tts el el ${MINIMAX_EVAL_PATH}"
- "tts fi fi ${MINIMAX_EVAL_PATH}"
- "tts tr tr ${MINIMAX_EVAL_PATH}"
- "tts ar ar ${MINIMAX_EVAL_PATH}"
- "tts hi hi ${MINIMAX_EVAL_PATH}"
- "tts id id ${MINIMAX_EVAL_PATH}"
- "tts th th ${MINIMAX_EVAL_PATH}"
- "tts vi vi ${MINIMAX_EVAL_PATH}"
- "tts fa fa ${NEYSHEKAR_EVAL_PATH}"
-)
+# Fish Audio S2 Pro covers every ZTTS2-Eval Mini language (model card): every benchmark language but Cantonese (yue).
+SUPPORTED_LANGUAGES="en zh ja ko fr de es it pt ru nl pl cs ro el fi tr ar hi id th vi fa sv da hu uk nb he bg hr sk ca ms fil"
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
MODEL_CONFIGS=("fishaudio/s2-pro")
diff --git a/gibbstts/submit_jobs.sh b/gibbstts/submit_jobs.sh
index 7d5556a..40c9c95 100644
--- a/gibbstts/submit_jobs.sh
+++ b/gibbstts/submit_jobs.sh
@@ -14,7 +14,7 @@ SUPPORTS_VOICE_CLONE=true
resolve_mode() { VOICE_CLONE=true voice_clone_mode; }
# The base checkpoint covers English and Chinese only.
-supports_language() { [[ "$1" == en || "$1" == zh ]]; }
+SUPPORTED_LANGUAGES="en zh"
# ── Stage 1: TTS generation. MODEL_CFG = "model_id batch_size". ──
# Sampling settings (steps, CFG, temperature, ...) and BF16/compile/tail padding are run_eval.py's defaults.
@@ -40,18 +40,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-# Without a 4th field the line uses DEFAULT_DATASET_PATH (hf-audio/seed_tts_eval).
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH}"
- "zero_shot zh zh ${CV3_EVAL_PATH}"
- # MiniMax multilingual (100 sentences/language): the languages the model supports.
- "tts en en ${MINIMAX_EVAL_PATH}"
- "tts zh zh ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id batch_size" (CLI args override) ────────────────────────
MODEL_CONFIGS=(
"ydqmkkx/GibbsTTS 32"
diff --git a/higgs/submit_jobs.sh b/higgs/submit_jobs.sh
index 18ac3a3..051258f 100644
--- a/higgs/submit_jobs.sh
+++ b/higgs/submit_jobs.sh
@@ -49,45 +49,9 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment to pick) ────────
-# Higgs TTS 3 is multilingual and infers the language from the text (no --language flag, no
-# `supports_language` gate), so asr_language is only the stage-2 ASR hint.
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot fr fr ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot zh zh ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ja ja ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ko ko ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot de de ${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}"
- "tts en en ${MINIMAX_EVAL_PATH}"
- "tts zh zh ${MINIMAX_EVAL_PATH}"
- "tts ja ja ${MINIMAX_EVAL_PATH}"
- "tts ko ko ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "tts ru ru ${MINIMAX_EVAL_PATH}"
- "tts nl nl ${MINIMAX_EVAL_PATH}"
- "tts pl pl ${MINIMAX_EVAL_PATH}"
- "tts cs cs ${MINIMAX_EVAL_PATH}"
- "tts ro ro ${MINIMAX_EVAL_PATH}"
- "tts el el ${MINIMAX_EVAL_PATH}"
- "tts fi fi ${MINIMAX_EVAL_PATH}"
- "tts tr tr ${MINIMAX_EVAL_PATH}"
- "tts ar ar ${MINIMAX_EVAL_PATH}"
- "tts hi hi ${MINIMAX_EVAL_PATH}"
- "tts id id ${MINIMAX_EVAL_PATH}"
- "tts th th ${MINIMAX_EVAL_PATH}"
- "tts vi vi ${MINIMAX_EVAL_PATH}"
- "tts fa fa ${NEYSHEKAR_EVAL_PATH}"
-)
+# Higgs TTS 3 covers every ZTTS2-Eval Mini language (model card): every benchmark language but Cantonese (yue). It
+# infers the language from the text (no language flag), so the split language is only the stage-2 ASR hint.
+SUPPORTED_LANGUAGES="en zh ja ko fr de es it pt ru nl pl cs ro el fi tr ar hi id th vi fa sv da hu uk nb he bg hr sk ca ms fil"
# ── Models: "model_id concurrency" (CLI args override) ───────────────────────
MODEL_CONFIGS=(
diff --git a/index-tts/submit_jobs.sh b/index-tts/submit_jobs.sh
index d3bdae3..0478a47 100755
--- a/index-tts/submit_jobs.sh
+++ b/index-tts/submit_jobs.sh
@@ -18,9 +18,8 @@ SUPPORTS_VOICE_CLONE=true
# ── Languages IndexTTS-2.5 covers (model card: zh, en, ja, es, ar) ───────────
# An unsupported `lang` does NOT raise upstream, it just produces wrong-language audio, so gate
-# the combos here. Matched against asr_language (so `zh_hard` / `hard_zh` match `zh`).
-INDEXTTS_LANGUAGES=" zh en ja es ar "
-supports_language() { [[ "${INDEXTTS_LANGUAGES}" == *" $1 "* ]]; }
+# the combos here.
+SUPPORTED_LANGUAGES="zh en ja es ar"
# ── Stage 1: TTS generation. MODEL_CFG = "model_id batch_size". ──
# No batched API; --batch_size only chunks manifest writing / resume. See run_eval.py.
@@ -47,23 +46,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-# asr_language doubles as the TTS `lang` tag (--language above).
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot zh zh ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ja ja ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${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}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts ar ar ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id batch_size" (CLI args override) ────────────────────────
MODEL_CONFIGS=(
"IndexTeam/IndexTTS-2.5 32"
diff --git a/indic-tiny-tts/submit_jobs.sh b/indic-tiny-tts/submit_jobs.sh
index 18326c2..ad01c39 100755
--- a/indic-tiny-tts/submit_jobs.sh
+++ b/indic-tiny-tts/submit_jobs.sh
@@ -33,7 +33,7 @@ VOICE="${VOICE:-male}"
echo "indic-tiny-tts: revision=${MODEL_REVISION} voice=${VOICE} results bucket=${RESULTS_BUCKET}"
# Single-language (Hindi) model: skip every other split instead of burning a GPU job on garbage audio.
-supports_language() { [[ "$1" == "hi" ]]; }
+SUPPORTED_LANGUAGES="hi"
# ── Stage 1: TTS generation (the model synthesizes one sample at a time: no batch size) ──
generate_stage() {
@@ -57,11 +57,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]". Hindi exists only in MiniMax (100 sentences). ──
-DATASET_CONFIGS=(
- "tts hi hi ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
MODEL_CONFIGS=("sulabhkatiyar/indic-tiny-tts-hindi")
[[ $# -gt 0 ]] && MODEL_CONFIGS=("$@")
diff --git a/inflect-nano/submit_jobs.sh b/inflect-nano/submit_jobs.sh
index dab2937..86a084c 100644
--- a/inflect-nano/submit_jobs.sh
+++ b/inflect-nano/submit_jobs.sh
@@ -32,16 +32,7 @@ generate_stage() {
# ── Languages this backend can select ────────────────────────────────────────
# English-only (model card: `language: [en]`); non-en splits are skipped rather than synthesized
# with English phonemes, which would give a meaningless (>100%) CER.
-INFLECT_NANO_LANGUAGES="en"
-supports_language() { [[ " ${INFLECT_NANO_LANGUAGES} " == *" $1 "* ]]; }
-
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${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}"
-)
+SUPPORTED_LANGUAGES="en"
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
MODEL_CONFIGS=("owensong/Inflect-Nano-v1")
diff --git a/inflect-v2/submit_jobs.sh b/inflect-v2/submit_jobs.sh
index c63ee75..502f667 100755
--- a/inflect-v2/submit_jobs.sh
+++ b/inflect-v2/submit_jobs.sh
@@ -16,8 +16,7 @@ RUN_EVAL_INJECT="$(inject_run_eval)"
# ── Languages this backend can select ────────────────────────────────────────
# English-only (model cards: `language: [en]`); non-en splits are skipped rather than synthesized
# with English phonemes, which would give a meaningless (>100%) CER.
-INFLECT_V2_LANGUAGES="en"
-supports_language() { [[ " ${INFLECT_V2_LANGUAGES} " == *" $1 "* ]]; }
+SUPPORTED_LANGUAGES="en"
# ── Stage 1: TTS generation (one sample at a time — no batched API) ──────────
# The model repo carries the inference code as well as the ~40 MB checkpoint, so run_eval.py
@@ -40,16 +39,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" ────────────────────
-# The optional 4th field points one line at a different dataset repo (default: Seed-TTS).
-# English-only model, so only the `en` splits.
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${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}"
-)
-
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
# Nano-v2 is the same code path and image — uncomment to evaluate both in one submission.
MODEL_CONFIGS=(
diff --git a/inflect-v3/submit_jobs.sh b/inflect-v3/submit_jobs.sh
index cfc6484..85ff7a1 100755
--- a/inflect-v3/submit_jobs.sh
+++ b/inflect-v3/submit_jobs.sh
@@ -16,7 +16,7 @@ DEFAULT_STAGES="generate transcribe utmos" # no SIM (fixed voice, no r
RUN_EVAL_INJECT="$(inject_run_eval)"
# English-only (model card: `language: [en]`); other splits are skipped rather than read with English G2P.
-supports_language() { [[ "$1" == "en" ]]; }
+SUPPORTED_LANGUAGES="en"
# ── Per-model device: Atom is CPU-only; Mini and Micro run on the h200 GPU ──
inflect_v3_device() {
@@ -61,13 +61,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" ────────────────────
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "tts en en ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
# Mini-v3 is already published (see tts_leaderboard_results PR #133); default to the two newer
# variants that still need to be measured. Pass "owensong/Inflect-Mini-v3" explicitly to re-run it.
diff --git a/kokoro-vietnamese/submit_jobs.sh b/kokoro-vietnamese/submit_jobs.sh
index af750b8..0d45143 100755
--- a/kokoro-vietnamese/submit_jobs.sh
+++ b/kokoro-vietnamese/submit_jobs.sh
@@ -12,7 +12,7 @@ RUN_EVAL_INJECT="$(inject_run_eval)"
# Vietnamese only. Built-in voices: diem_trinh, hung_thinh, mai_linh, mai_loan, manh_dung, my_yen, ...
KOKORO_VI_VOICE="${KOKORO_VI_VOICE:-diem_trinh}"
-supports_language() { [[ "$1" == "vi" ]]; }
+SUPPORTED_LANGUAGES="vi"
# ── Stage 1: TTS generation (serial synthesis, one sample at a time) ─────────
generate_stage() {
@@ -34,12 +34,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" ─────────────────────
-# MiniMax multilingual: 100 sentences per language, public at hf-audio/minimax_eval.
-DATASET_CONFIGS=(
- "tts vi vi ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
MODEL_CONFIGS=("contextboxai/Kokoro-Vietnamese")
[[ $# -gt 0 ]] && MODEL_CONFIGS=("$@")
diff --git a/kokoro/submit_jobs.sh b/kokoro/submit_jobs.sh
index 2c09e94..740c580 100755
--- a/kokoro/submit_jobs.sh
+++ b/kokoro/submit_jobs.sh
@@ -19,7 +19,7 @@ RUN_EVAL_INJECT="$(inject_run_eval)"
declare -A KOKORO_LANG_CODE=( [en]=a [es]=e [fr]=f [it]=i [ja]=j [zh]=z [pt]=p [hi]=h )
declare -A KOKORO_VOICES=( [en]=af_heart [es]=ef_dora [fr]=ff_siwis [it]=if_sara \
[ja]=jf_alpha [zh]=zf_xiaobei [pt]=pf_dora [hi]=hf_alpha )
-supports_language() { [[ -n "${KOKORO_LANG_CODE[$1]:-}" ]]; }
+SUPPORTED_LANGUAGES="en es fr it ja zh pt hi" # the KOKORO_LANG_CODE keys
# Setting KOKORO_VOICE forces one voice for every combo — only safe for a single-language run,
# since a voice whose prefix does not match the lang_code is rejected by Kokoro.
KOKORO_VOICE="${KOKORO_VOICE:-}"
@@ -48,27 +48,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot fr fr ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot it it ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ja ja ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot zh zh ${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}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "tts hi hi ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
MODEL_CONFIGS=("hexgrad/Kokoro-82M")
[[ $# -gt 0 ]] && MODEL_CONFIGS=("$@")
diff --git a/lfm2-audio/submit_jobs.sh b/lfm2-audio/submit_jobs.sh
index 7332e21..eb49330 100644
--- a/lfm2-audio/submit_jobs.sh
+++ b/lfm2-audio/submit_jobs.sh
@@ -11,7 +11,7 @@ DEFAULT_STAGES="generate transcribe utmos" # no SIM (fixed voice
RUN_EVAL_INJECT="$(inject_run_eval)"
# English only (model card), with four built-in voices: us_female, us_male, uk_female, uk_male.
-supports_language() { [[ "$1" == "en" ]]; }
+SUPPORTED_LANGUAGES="en"
LFM_VOICE="${LFM_VOICE:-us_female}"
# ── Stage 1: TTS generation (generate_sequential is batch-1 only — no batch size) ──
@@ -34,14 +34,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${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}"
-)
-
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
MODEL_CONFIGS=("LiquidAI/LFM2.5-Audio-1.5B")
[[ $# -gt 0 ]] && MODEL_CONFIGS=("$@")
diff --git a/lfm3-audio/submit_jobs.sh b/lfm3-audio/submit_jobs.sh
index b3e909e..2419c54 100644
--- a/lfm3-audio/submit_jobs.sh
+++ b/lfm3-audio/submit_jobs.sh
@@ -36,36 +36,8 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-# The languages of each benchmark that the model speaks (model card: 18 languages; see LANGUAGES
-# in run_eval.py). Without a 4th field the line uses DEFAULT_DATASET_PATH (hf-audio/seed_tts_eval).
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH}"
- "zero_shot zh zh ${CV3_EVAL_PATH}"
- "zero_shot fr fr ${CV3_EVAL_PATH}"
- "zero_shot es es ${CV3_EVAL_PATH}"
- "zero_shot ja ja ${CV3_EVAL_PATH}"
- "zero_shot ko ko ${CV3_EVAL_PATH}"
- "zero_shot de de ${CV3_EVAL_PATH}"
- "zero_shot it it ${CV3_EVAL_PATH}"
- "tts en en ${MINIMAX_EVAL_PATH}"
- "tts zh zh ${MINIMAX_EVAL_PATH}"
- "tts ja ja ${MINIMAX_EVAL_PATH}"
- "tts ko ko ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "tts nl nl ${MINIMAX_EVAL_PATH}"
- "tts pl pl ${MINIMAX_EVAL_PATH}"
- "tts el el ${MINIMAX_EVAL_PATH}"
- "tts fi fi ${MINIMAX_EVAL_PATH}"
- "tts tr tr ${MINIMAX_EVAL_PATH}"
- "tts ar ar ${MINIMAX_EVAL_PATH}"
-)
+# The 18 languages of the model card (LANGUAGES in run_eval.py).
+SUPPORTED_LANGUAGES="en zh ja ko fr de es it pt nl pl el fi tr ar da he sv"
# ── Models: "model_id batch_size" (CLI args override) ────────────────────────
MODEL_CONFIGS=(
diff --git a/magpie-tts/submit_jobs.sh b/magpie-tts/submit_jobs.sh
index b75c609..25f39ef 100644
--- a/magpie-tts/submit_jobs.sh
+++ b/magpie-tts/submit_jobs.sh
@@ -44,33 +44,7 @@ generate_stage() {
# ── Languages this backend can actually select ───────────────────────────────
# An unmapped language silently falls back to the first tokenizer in run_eval.py, so gate the combos.
# These are the 9 languages the checkpoint ships a tokenizer for (no Korean).
-MAGPIE_LANGUAGES="en de es fr it vi zh ja hi"
-supports_language() { [[ " ${MAGPIE_LANGUAGES} " == *" $1 "* ]]; }
-
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-# asr_language is the language hint for both the TTS model and Qwen3-ASR, so it must be a real
-# language code (`zh_hard` pairs with `zh`).
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot zh zh ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ja ja ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot de de ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot fr fr ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot it it ${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}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts hi hi ${MINIMAX_EVAL_PATH}"
- "tts vi vi ${MINIMAX_EVAL_PATH}"
-)
+SUPPORTED_LANGUAGES="en de es fr it vi zh ja hi"
# ── Models: "model_id batch_size speaker" (CLI args override) ────────────────
# Baked speakers: John, Sofia, Aria, Jason, Leo (no zero-shot cloning).
diff --git a/maya2/submit_jobs.sh b/maya2/submit_jobs.sh
index e4454fe..6b73b51 100644
--- a/maya2/submit_jobs.sh
+++ b/maya2/submit_jobs.sh
@@ -14,7 +14,7 @@ SUPPORTS_VOICE_CLONE=true
MAYA_VOICE="${MAYA_VOICE:-Ahana}"
# 11 Indian languages + English (model card); of the benchmarks' languages only en and hi.
-supports_language() { [[ "$1" == en || "$1" == hi ]]; }
+SUPPORTED_LANGUAGES="en hi"
# ── Stage 1: TTS generation. MODEL_CFG = "model_id batch_size" (batch = the engine's max_seats). ──
generate_stage() {
@@ -40,15 +40,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-# Without a 4th field the line uses DEFAULT_DATASET_PATH (hf-audio/seed_tts_eval).
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${CV3_EVAL_PATH}"
- "tts en en ${MINIMAX_EVAL_PATH}"
- "tts hi hi ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id batch_size" (CLI args override) ────────────────────────
MODEL_CONFIGS=(
"maya-research/maya2-native 32"
diff --git a/ming-tts/submit_jobs.sh b/ming-tts/submit_jobs.sh
index f3a5655..4ab535e 100644
--- a/ming-tts/submit_jobs.sh
+++ b/ming-tts/submit_jobs.sh
@@ -13,7 +13,7 @@ RUN_EVAL_INJECT="$(inject_run_eval)"
# the model's seven languages (built-in voices exist for English and Chinese; the other five use the
# English voice cross-lingually, see run_eval.py).
SUPPORTS_VOICE_CLONE=true
-supports_language() { [[ " en zh ja ko de fr es " == *" $1 "* ]]; }
+SUPPORTED_LANGUAGES="en zh ja ko de fr es"
# ── Stage 1: TTS generation. MODEL_CFG = "model_id" (batch 1: the model's code assumes it). ──
generate_stage() {
@@ -35,28 +35,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-# supports_language() skips the splits the selected mode can't do.
-# Without a 4th field the line uses DEFAULT_DATASET_PATH (hf-audio/seed_tts_eval).
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH}"
- "zero_shot zh zh ${CV3_EVAL_PATH}"
- "zero_shot fr fr ${CV3_EVAL_PATH}"
- "zero_shot es es ${CV3_EVAL_PATH}"
- "zero_shot ja ja ${CV3_EVAL_PATH}"
- "zero_shot ko ko ${CV3_EVAL_PATH}"
- "zero_shot de de ${CV3_EVAL_PATH}"
- "tts en en ${MINIMAX_EVAL_PATH}"
- "tts zh zh ${MINIMAX_EVAL_PATH}"
- "tts ja ja ${MINIMAX_EVAL_PATH}"
- "tts ko ko ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
MODEL_CONFIGS=(
"inclusionAI/Ming-3.0-tts-0.5B"
diff --git a/model_revisions.json b/model_revisions.json
new file mode 100644
index 0000000..1d15f8e
--- /dev/null
+++ b/model_revisions.json
@@ -0,0 +1,72 @@
+{
+ "_comment": "Hub commit each model repo is pinned to in the eval jobs (scripts/hf_pin/sitecustomize.py). Maintained with scripts/pin_revisions.py; review a repo's new commits before --bump.",
+ "ampixa/sanoTTS": "25410576d005d7f08d186990fd91f6a2651243de",
+ "bezzam/wavlm_large_finetune_seed_tts_eval": "f127f699a44abb1c6e05f03522bd1b8c48be3184",
+ "bosonai/higgs-tts-3-4b": "239f63fb7b02b1aa085f98d9efae5e35cc5523e8",
+ "BreezeBlue/Breeze-TTS-2": "3e28c5151381a722f1d8661b4118c298caa77aa4",
+ "charactr/vocos-mel-24khz": "0feb3fdd929bcd6649e0e7c5a688cf7dd012ef21",
+ "contextboxai/Kokoro-Vietnamese": "9f210d622209fcc216fe2ac6159fed2ff381cb8a",
+ "ConwayResearch/Underdog-Woof": "be702960539777fc3f698e54335276a8391b00f9",
+ "Edge0/Audio8-TTS-Realistic-0.6b": "6bf7a980759d8022a66922ee975dab99229a2dd9",
+ "empero-ai/PiVo-1.4M": "515d84fc3420da6ae138f1b81017fcbc24d622a8",
+ "facebook/seamless-m4t-v2-large": "5f8cc790b19fc3f67a61c105133b20b34e3dcb76",
+ "fishaudio/drama-3": "78e5ab79e49aa9a25abe8799eff2c4d73a1c3216",
+ "fishaudio/s2-pro": "1de9996b6be38b745688de084d87a5633f714e4e",
+ "FunAudioLLM/Fun-CosyVoice3-0.5B-2512": "29e01c4e8d000f4bcd70751be16fa94bf3d85a18",
+ "gradium/phonon-31m-en": "8f7a37c94a4c58b04c8287300c53f11d2e208eae",
+ "gradium/phonon-40m-de": "79cfc7b47fcfc0b666657b981eb366415023a862",
+ "gradium/phonon-40m-en": "bc7e8ae7e543a7a3e4604753e42fbda76ddf0781",
+ "gradium/phonon-40m-es": "e5e052b26e31abd5918ade71d3135e69d51a66f8",
+ "gradium/phonon-40m-fr": "d91086970206b88efd2c88ca971d0628b5968f0f",
+ "gradium/phonon-40m-pt": "4cbfd742a1555d60eb5399c6d296e9f2e07389e9",
+ "hexgrad/Kokoro-82M": "f3ff3571791e39611d31c381e3a41a3af07b4987",
+ "inclusionAI/Ming-3.0-tts-0.5B": "7247f4c94a5b2e987404ed28a5cfec41b1a4ca61",
+ "IndexTeam/IndexTTS-2.5": "c39ce5ba981572cb187443877ff559dfb246ce63",
+ "jordand/echo-tts-base": "06731f67000241d55cff6b0a961f22f5f151f24f",
+ "k2-fsa/OmniVoice": "c5fdb5ccb189668d56333f77ba2629f4cd7535f4",
+ "kjanh/KhanhTTS-OmniVoice": "20d056b8ea5d8d578b4cbaf1f703012fa3798a84",
+ "kyutai/pocket-tts": "db04f0e653473e5c7333c69686ac92b7460b0c1d",
+ "LiquidAI/LFM2.5-Audio-1.5B": "95d7e5a0ca706151aa7b7989275a902007a04cbe",
+ "LiquidAI/LFM3-Audio-2B": "2d6c1f99c129b3ef07a8d168bc0ff08e2bdb93f1",
+ "maya-research/maya2-native": "87a83efdd6551e038246b6b37836a6264713eec3",
+ "microsoft/speecht5_hifigan": "bb6f429406e86a9992357a972c0698b22043307d",
+ "microsoft/speecht5_tts": "30fcde30f19b87502b8435427b5f5068e401d5f6",
+ "microsoft/VibeVoice-Realtime-0.5B": "6bce5f06044837fe6d2c5d7a71a84f0416bd57e4",
+ "microsoft/wavlm-base-plus-sv": "feb593a6c23c1cc3d9510425c29b0a14d2b07b1e",
+ "microsoft/wavlm-large": "c1423ed94bb01d80a3f5ce5bc39f6026a0f4828c",
+ "mistralai/Voxtral-4B-TTS-2603": "b81be46c3777f88621676791b512bb01dc1cb970",
+ "n4ze3m/tiny-voca": "1e73262226dbf4ef02e9df277e81aaa1db5ce16c",
+ "neuphonic/distill-neucodec": "6f2b93b3fa2bc74740ba1bd10622e1ee37dbbe46",
+ "neuphonic/neutts-nano": "ca2ba957804f0d80dd38ee819bdbd07311f95d15",
+ "neuphonic/neutts-nano-q8-gguf": "16705743fc6e00751987b2e3628aa0ea56fc3880",
+ "nvidia/magpie_tts_multilingual_357m": "446bff55e1fe3d3aa29c771574e7d2b0fa322990",
+ "openai/whisper-large-v3": "06f233fe06e710322aca913c1bc4249a0d71fce1",
+ "openbmb/VoxCPM2": "7936080b41163874f38610f46f438e2c0757f9fd",
+ "OpenMOSS-Team/MOSS-TTS": "b6b0229853ff63c68fa6aeceb380d8c016f55daf",
+ "owensong/Inflect-Atom-v3": "1f06119fd84c0156132382ff7519cdcea6d48e46",
+ "owensong/Inflect-Micro-v2": "9d862840734dcc53afb5d27ef468459daad020fa",
+ "owensong/Inflect-Micro-v3": "077eac5c4f0c719bbb428cd29f06a3cf6c6e8a27",
+ "owensong/Inflect-Mini-v3": "0490aee6a9c66f9375b48287a2c5e5788afd00cc",
+ "owensong/Inflect-Nano-v1": "ab0302781cb0cb9969a9a28ce8e1b259539275dd",
+ "pnnbao-ump/VieNeu-TTS-v3-Nano": "aba295eb96a6fa6003ebe417cc1f2802a7adc1dc",
+ "pnnbao-ump/VieNeu-TTS-v3-Turbo": "61b85e3d937fbbacb387714180e8182823512523",
+ "Qwen/Qwen3-ASR-1.7B-hf": "bcd2b5b7f32b480ab5790554cfa8347f246a14f3",
+ "Qwen/Qwen3-Omni-30B-A3B-Instruct": "26291f793822fb6be9555850f06dfe95f2d7e695",
+ "Qwen/Qwen3-TTS-12Hz-1.7B-Base": "fd4b254389122332181a7c3db7f27e918eec64e3",
+ "Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice": "0c0e3051f131929182e2c023b9537f8b1c68adfe",
+ "ResembleAI/chatterbox": "5bb1f6ee58e50c3b8d408bc82a6d3740c2db6e18",
+ "sahilmahendrakar/Paradee-8M-v1.0": "c7f83f86c04e84d0ae94cbe1aad7618e0544f80a",
+ "sahilmahendrakar/Paradee-8M-v1.3": "b569f5efb789af5ba643a44af348427242ceb784",
+ "Serveurperso/Qwen3-TTS-GGUF": "b7ee2e8c7459c3bea99da23e3d178125a7d1713c",
+ "splendor1811/omnivoice-vietnamese": "f70093f90d78a5b790ff0f066b3629ebcc33cb5d",
+ "spybyscript/scyllasband": "b0fe862261f24923fe94eb5527e5e4f64285c93a",
+ "sulabhkatiyar/indic-tiny-tts-hindi": "1fb1b108ee6ffb73ee74bd68b283ec13eb39e957",
+ "Supertone/supertonic-3": "3cadd1ee6394adea1bd021217a0e650ede09a323",
+ "tencent/AuK": "790742b71a4430120daf2b2099192abae449eb9f",
+ "tencent/AuK-Flash": "575b92f0895f75180bf2cbd35f2e176c5732b8ed",
+ "vibevoice/VibeVoice-1.5B-hf": "d4cd82eb4371bf3e3d088e1ea7fa4eefb60449bf",
+ "WhissleAI/steer-tts": "65ec6a637f4bd9d868064846c69ed85e37d302a0",
+ "WhissleAI/steer-tts-edge": "acac05e2c2b1cc18b327532e535782b9e823f213",
+ "ydqmkkx/GibbsTTS": "a31945f20bf84498af41508ff3b126ea7f53b5c2",
+ "Zyphra/ZONOS3-Mini": "2921b8821772b0bd10a04456863d21abf9d2f283"
+}
diff --git a/moss-tts/submit_jobs.sh b/moss-tts/submit_jobs.sh
index befe581..79a08f9 100644
--- a/moss-tts/submit_jobs.sh
+++ b/moss-tts/submit_jobs.sh
@@ -33,36 +33,8 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment to pick) ────────
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot zh zh ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ja ja ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ko ko ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot de de ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "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}"
- "tts en en ${MINIMAX_EVAL_PATH}"
- "tts zh zh ${MINIMAX_EVAL_PATH}"
- "tts ja ja ${MINIMAX_EVAL_PATH}"
- "tts ko ko ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "tts ru ru ${MINIMAX_EVAL_PATH}"
- "tts pl pl ${MINIMAX_EVAL_PATH}"
- "tts cs cs ${MINIMAX_EVAL_PATH}"
- "tts el el ${MINIMAX_EVAL_PATH}"
- "tts tr tr ${MINIMAX_EVAL_PATH}"
- "tts ar ar ${MINIMAX_EVAL_PATH}"
- "tts fa fa ${NEYSHEKAR_EVAL_PATH}"
-)
+# ── Languages MOSS-TTS covers (model card: 20) ──
+SUPPORTED_LANGUAGES="zh en de es fr ja it he ko ru fa ar pl pt cs da sv hu el tr"
# ── Models: "model_id batch_size" (CLI args override) ────────────────────────
MODEL_CONFIGS=(
diff --git a/neutts-nano/submit_jobs.sh b/neutts-nano/submit_jobs.sh
index 4214a7c..8c8a1db 100644
--- a/neutts-nano/submit_jobs.sh
+++ b/neutts-nano/submit_jobs.sh
@@ -37,13 +37,8 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment to pick) ──
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${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}"
-)
+# ── neuphonic/neutts-nano checkpoints are English-only (model metadata) ──
+SUPPORTED_LANGUAGES="en"
# ── Models: "model_id batch_size" (batch_size optional; CLI args override) ────
MODEL_CONFIGS=(
diff --git a/normalizer/arabic.py b/normalizer/arabic.py
new file mode 100644
index 0000000..9a76640
--- /dev/null
+++ b/normalizer/arabic.py
@@ -0,0 +1,22 @@
+"""Arabic orthographic folding, applied identically to references and ASR text.
+
+The same pronunciation-neutral folding as ZTTS2-Eval (utils/text_norm.py, ORTHO_NORM_LANGS "ar"): optional
+vowel marks and spelling variants that the audio cannot distinguish are not TTS errors. Without it, a
+reference with harakat (يُطلب) against an ASR output without them (يطلب) counts a word error.
+"""
+
+# Harakat / tanwin (U+064B-064F), shadda / sukun (U+0650-0652), maddah / hamza above / below (U+0653-0655),
+# superscript alef (U+0670), tatweel (U+0640).
+_STRIP = {c: None for c in range(0x064B, 0x0656)}
+_STRIP.update({0x0670: None, 0x0640: None})
+# Hamza-carrier and alef variants, alef maqsura, and taa marbuta, each folded onto one letter; lone hamza dropped.
+_FOLD = {ord(k): v for k, v in {
+ "أ": "ا", "إ": "ا", "آ": "ا", "ٱ": "ا", "ٲ": "ا", "ٳ": "ا",
+ "ى": "ي", "ئ": "ي", "ؤ": "و", "ء": None, "ة": "ه",
+}.items()}
+_TABLE = {**_STRIP, **_FOLD}
+
+
+def fold_arabic(text: str) -> str:
+ """Strip Arabic vowel marks and tatweel and fold letter variants (see the module docstring)."""
+ return " ".join(text.translate(_TABLE).split())
diff --git a/normalizer/data_utils.py b/normalizer/data_utils.py
index e287367..2129b0e 100644
--- a/normalizer/data_utils.py
+++ b/normalizer/data_utils.py
@@ -2,10 +2,15 @@ import re
import num2words
from normalizer import EnglishTextNormalizer, BasicMultilingualTextNormalizer
+from normalizer.arabic import fold_arabic
from normalizer.persian import PersianTextNormalizer
from normalizer.hindi import normalize_hi_numbers_after, normalize_hi_numbers_before
+# num2words's code where it differs from ours (Norwegian Bokmål is `no` there).
+_NUM2WORDS_CODE = {"nb": "no"}
+
+
class MultilingualNormalizer(BasicMultilingualTextNormalizer):
"""BasicMultilingualTextNormalizer with optional number normalization.
@@ -16,6 +21,7 @@ class MultilingualNormalizer(BasicMultilingualTextNormalizer):
# Join space-separated thousand groups (e.g. "10 000" -> "10000")
text = re.sub(r"(\d)\s+(\d{3})\b", r"\1\2", text)
# Convert remaining digit sequences to words
+ lang = _NUM2WORDS_CODE.get(lang, lang)
def _replace(m):
try:
return num2words.num2words(int(m.group()), lang=lang)
@@ -44,6 +50,8 @@ class MultilingualNormalizer(BasicMultilingualTextNormalizer):
elif lang == "hi":
s = normalize_hi_numbers_before(s)
s = super().__call__(s)
+ if lang == "ar":
+ s = fold_arabic(s)
if lang == "hi":
s = normalize_hi_numbers_after(s)
elif lang is not None:
diff --git a/normalizer/eval_utils.py b/normalizer/eval_utils.py
index a0ea361..335c4f9 100644
--- a/normalizer/eval_utils.py
+++ b/normalizer/eval_utils.py
@@ -11,6 +11,40 @@ from collections import defaultdict
from kaldialign import batch_error_rate
+# A row is untranscribed when stage 2 never filled it: stage 1 writes `"pred_text": ""` and
+# transformers/transcribe.py stamps every row it transcribes with `asr_model` (older manifests
+# predate the stamp, so a non-empty pred_text also counts). Up to this share of empty, unstamped
+# rows is tolerated (the ASR can legitimately return nothing for a clip of an older manifest); more
+# means the manifest was never transcribed, or was regenerated after it was, and must not be scored.
+MAX_UNTRANSCRIBED_FRACTION = 0.2
+
+
+def untranscribed_fraction(rows):
+ """Share of `rows` that the ASR stage has not filled (see MAX_UNTRANSCRIBED_FRACTION)."""
+ if not rows:
+ return 0.0
+ missing = sum(1 for r in rows if not (r.get("pred_text") or "").strip() and "asr_model" not in r)
+ return missing / len(rows)
+
+
+def capped_error_rate(references, predictions, merge_compounds=False):
+ """Pooled error rate with each utterance's errors capped at its reference length.
+
+ Like kaldialign's `batch_error_rate` (total errors / total reference tokens), except that one
+ utterance can contribute at most as many errors as it has reference tokens, i.e. a per-file
+ error rate of at most 100%. A runaway or hallucinated generation full of
+ insertions would otherwise outweigh the rest of the split. `ins`/`del`/`sub` are the uncapped
+ totals, for diagnostics.
+ """
+ ins = dele = sub = errors = total = 0
+ for ref, hyp in zip(references, predictions):
+ one = batch_error_rate([ref], [hyp], merge_compounds=merge_compounds)
+ ins, dele, sub = ins + one["ins"], dele + one["del"], sub + one["sub"]
+ errors += min(one["ins"] + one["del"] + one["sub"], len(ref))
+ total += len(ref)
+ return {"ins": ins, "del": dele, "sub": sub, "err_rate": errors / total if total else 0.0}
+
+
# ── Chinese / CJK scoring (CER instead of WER) ────────────────────────────────
# CJK text has no word delimiters, so WER is meaningless; score per character (CER), as
# seed-tts-eval's run_wer.py does for zh (it still labels it "WER").
@@ -111,14 +145,20 @@ _CJK_NUMERAL_MAP = str.maketrans({
})
-def cjk_normalizer(text: str, fold_homophones: bool = False, fold_numerals: bool = False, language: str = None) -> str:
+# An apostrophe not between two Latin letters.
+_QUOTE_APOSTROPHE = re.compile(r"(?<![a-z])'|'(?![a-z])")
+
+
+def cjk_normalizer(text: str, fold_homophones: bool = False, fold_numerals: bool = False, language: str = None,
+ keep_spaces: bool = False) -> str:
"""Normalize a CJK string for character-level (CER) scoring.
Mirrors seed-tts-eval's `process_one`: strip punctuation, fold traditional→simplified (Chinese
only), lowercase embedded Latin, and drop whitespace. With both flags off this is the strict,
seed-tts-eval-comparable form. `fold_homophones` applies CJK_HOMOPHONE_GROUPS (Chinese) or
katakana→hiragana (Japanese); `fold_numerals` maps Arabic digits to CJK numerals. Every fold is
- length-preserving and applied to both sides, so it can only lower the error rate.
+ length-preserving and applied to both sides, so it can only lower the error rate. `keep_spaces` keeps
+ single spaces between words (for cjk_tokens) instead of dropping all whitespace.
"""
text = unicodedata.normalize("NFKC", text)
# Chinese only: on Japanese, zhconv rewrites kanji (俳優 → 俳优); on Korean it folds hanja.
@@ -126,14 +166,31 @@ def cjk_normalizer(text: str, fold_homophones: bool = False, fold_numerals: bool
if is_chinese:
text = _to_simplified(text)
text = text.lower()
- # Drop every mark/symbol/punctuation (CJK and ASCII); keep the apostrophe, as seed-tts-eval does.
+ # Drop every mark/symbol/punctuation (CJK and ASCII); keep the apostrophe of a Latin word ("what's"),
+ # as seed-tts-eval does. Any other apostrophe is a quote mark (Korean '…' quotes), so it goes too.
+ text = _QUOTE_APOSTROPHE.sub("", text)
text = "".join(c for c in text if c == "'" or unicodedata.category(c)[0] not in "MSP")
# The Chinese groups must not run on Japanese (的/地/得 are distinct morphemes there).
if fold_homophones:
text = text.translate(_CJK_HOMOPHONE_MAP if is_chinese else _KATAKANA_TO_HIRAGANA)
if fold_numerals:
text = text.translate(_CJK_NUMERAL_MAP)
- return "".join(text.split())
+ return (" " if keep_spaces else "").join(text.split())
+
+
+# Korean CER tokens: a Latin word is one token, any other character one token each (ZTTS2-Eval's CJK tokenizer).
+_LATIN_WORD_OR_CHAR = re.compile(r"[a-z]+(?:'[a-z]+)*|\S")
+_KOREAN_LANGUAGES = {"ko", "kor"}
+
+
+def cjk_tokens(text: str, fold_homophones: bool = False, fold_numerals: bool = False, language: str = None) -> tuple:
+ """The CER tokens of a CJK string: its cjk_normalizer characters, except that for Korean each Latin word
+ is a single token. Korean text often embeds Latin names that the ASR writes in Hangul (TogiNet / 토기넷);
+ per character, that is one error per Latin letter, a word counts it once."""
+ if language and re.split(r"[_-]", language)[0] in _KOREAN_LANGUAGES:
+ return tuple(_LATIN_WORD_OR_CHAR.findall(
+ cjk_normalizer(text, fold_homophones, fold_numerals, language, keep_spaces=True)))
+ return tuple(cjk_normalizer(text, fold_homophones, fold_numerals, language))
def _is_mostly_cjk(texts, threshold: float = 0.5) -> bool:
@@ -363,8 +420,13 @@ def score_results(directory: str, model_id: str = None, multilingual: bool = Non
for result_file in result_files:
manifest = read_manifest(result_file)
+ missing = untranscribed_fraction(manifest)
+ if missing > MAX_UNTRANSCRIBED_FRACTION:
+ # Scoring it would publish ~100% WER (e.g. a manifest regenerated after transcription).
+ print(f"WARNING: skipping {os.path.basename(result_file)}: {100 * missing:.0f}% of its rows have no "
+ f"transcript; run the transcribe stage on it first.")
+ continue
model_id_of_file, dataset_id = parse_filepath(result_file)
-
raw_references = [datum["text"] for datum in manifest]
raw_predictions = [datum["pred_text"] for datum in manifest]
@@ -399,21 +461,22 @@ def score_results(directory: str, model_id: str = None, multilingual: bool = Non
komos = read_komos(result_file, manifest) if language in KOMOS_LANGUAGES else KomosResult()
if use_cer:
- # Per-character alignment (merge_compounds is moot). The headline CJK number is the
- # lenient CER (homophone + numeral folds), always <= the unnormalized CER.
- _lenient = lambda t: cjk_normalizer(t, fold_homophones=True, fold_numerals=True, language=language)
- folded = batch_error_rate(
- [tuple(_lenient(t)) for t in raw_references],
- [tuple(_lenient(t)) for t in raw_predictions],
+ # Per-character alignment (a Latin word is one token in Korean, see cjk_tokens; merge_compounds is
+ # moot). The headline CJK number is the lenient CER (homophone + numeral folds), always <= the
+ # unnormalized CER.
+ _lenient = lambda t: cjk_tokens(t, fold_homophones=True, fold_numerals=True, language=language)
+ folded = capped_error_rate(
+ [_lenient(t) for t in raw_references],
+ [_lenient(t) for t in raw_predictions],
merge_compounds=False,
)
total_ins, total_del, total_sub = folded["ins"], folded["del"], folded["sub"]
wer = folded["err_rate"]
# Unnormalized CER, directly comparable with seed-tts-eval's run_wer.py.
- r = batch_error_rate(
- [tuple(ref) for ref in references],
- [tuple(pred) for pred in predictions],
+ r = capped_error_rate(
+ [cjk_tokens(t, language=language) for t in raw_references],
+ [cjk_tokens(t, language=language) for t in raw_predictions],
merge_compounds=False,
)
cer_unnormalized = round(100 * r["err_rate"], 2)
@@ -427,20 +490,21 @@ def score_results(directory: str, model_id: str = None, multilingual: bool = Non
# Pre-fold compound boundaries (e.g. German compounds); complements merge_compounds
# below, which also catches split compounds adjacent to other errors.
references, predictions = normalize_compound_pairs(references, predictions)
- # Use kaldialign batch_error_rate with merge_compounds=True so that
- # split compounds (e.g. "white paper" vs "whitepaper") count as
- # 0 errors in either direction.
+ # merge_compounds=True so that split compounds (e.g. "white paper" vs "whitepaper")
+ # count as 0 errors in either direction. Per-utterance errors are capped at the
+ # reference length (see capped_error_rate).
if per_char:
refs_split = [tuple(r.replace(" ", "")) for r in references]
preds_split = [tuple(p.replace(" ", "")) for p in predictions]
else:
refs_split = [tuple(r.split()) for r in references]
preds_split = [tuple(p.split()) for p in predictions]
- r = batch_error_rate(refs_split, preds_split, merge_compounds=not per_char)
+ r = capped_error_rate(refs_split, preds_split, merge_compounds=not per_char)
total_ins, total_del, total_sub = r["ins"], r["del"], r["sub"]
wer = r["err_rate"]
wer = round(100 * wer, 2)
+ metric = "CER" if use_cer or per_char else "WER"
if compute_rtfx:
audio_length = sum(duration)
@@ -453,7 +517,7 @@ def score_results(directory: str, model_id: str = None, multilingual: bool = Non
extra = {"ins": total_ins, "del": total_del, "sub": total_sub}
# `wer` holds the headline error rate; `metric` says whether it is a WER or a CER. For CJK
# it is the lenient CER, with `cer_unnormalized` the seed-tts-eval-comparable number.
- results[result_key] = {"wer": wer, "metric": "CER" if use_cer or per_char else "WER", "cer_unnormalized": cer_unnormalized, "audio_length": audio_length, "inference_time": inference_time, "rtfx": rtfx, "sim": sim, "utmos": utmos, "komos": komos.score, "komos_count": komos.count, "komos_model": komos.model, **extra}
+ results[result_key] = {"wer": wer, "metric": metric, "cer_unnormalized": cer_unnormalized, "audio_length": audio_length, "inference_time": inference_time, "rtfx": rtfx, "sim": sim, "utmos": utmos, "komos": komos.score, "komos_count": komos.count, "komos_model": komos.model, **extra}
# Name the manifests whose SIM was dropped, even under csv_only, so a blank SIM is explained.
if stale_sim_files:
diff --git a/omnivoice/run_eval.py b/omnivoice/run_eval.py
index d9c300a..1c8fa23 100644
--- a/omnivoice/run_eval.py
+++ b/omnivoice/run_eval.py
@@ -29,6 +29,9 @@ from run_eval_utils import (
)
torch.set_float32_matmul_precision("high")
+# Dataset codes OmniVoice knows under another id: its language list has no bare 'ar', only Arabic
+# varieties, and Modern Standard Arabic is 'arb' (k2-fsa/OmniVoice docs/languages.md).
+LANGUAGE_ID_OVERRIDES = {"ar": "arb"}
def main(args):
@@ -87,7 +90,7 @@ def main(args):
# OmniVoice pick its own speaker. Returns list[np.ndarray] @ 24kHz.
gen_kwargs = dict(
text=list(texts),
- language=[args.language] * minibatch_size,
+ language=[LANGUAGE_ID_OVERRIDES.get(args.language, args.language)] * minibatch_size,
num_step=args.num_step,
)
if args.voice_clone:
diff --git a/omnivoice/submit_jobs.sh b/omnivoice/submit_jobs.sh
index 82f1e0b..d4ededc 100644
--- a/omnivoice/submit_jobs.sh
+++ b/omnivoice/submit_jobs.sh
@@ -40,47 +40,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-# Without a 4th field the line uses DEFAULT_DATASET_PATH (hf-audio/seed_tts_eval).
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot fr fr ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot zh zh ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ja ja ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ko ko ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot de de ${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 yue yue ${MINIMAX_EVAL_PATH}"
- "tts ja ja ${MINIMAX_EVAL_PATH}"
- "tts ko ko ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "tts ru ru ${MINIMAX_EVAL_PATH}"
- "tts nl nl ${MINIMAX_EVAL_PATH}"
- "tts pl pl ${MINIMAX_EVAL_PATH}"
- "tts cs cs ${MINIMAX_EVAL_PATH}"
- "tts ro ro ${MINIMAX_EVAL_PATH}"
- "tts el el ${MINIMAX_EVAL_PATH}"
- "tts fi fi ${MINIMAX_EVAL_PATH}"
- "tts tr tr ${MINIMAX_EVAL_PATH}"
- "tts ar ar ${MINIMAX_EVAL_PATH}"
- "tts hi hi ${MINIMAX_EVAL_PATH}"
- "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) ────────────────────────
MODEL_CONFIGS=(
"k2-fsa/OmniVoice 32"
diff --git a/paradee-v1.3/submit_jobs.sh b/paradee-v1.3/submit_jobs.sh
index 78fe090..a21930b 100755
--- a/paradee-v1.3/submit_jobs.sh
+++ b/paradee-v1.3/submit_jobs.sh
@@ -40,7 +40,7 @@ paradee_voice() {
es) echo em_alex ;;
esac
}
-supports_language() { [[ -n "$(paradee_voice "$1")" ]]; }
+SUPPORTED_LANGUAGES="en hi fr es" # the languages paradee_voice has a voice for
# Setting PARADEE_VOICE forces one voice for every combo; only for a single-language run (e.g.
# ONLY_LANGS=en PARADEE_VOICE=bf_isabella). run_eval.py refuses a voice of another language.
# The results land in the same model folder, so use a separate RESULTS_BUCKET for such runs.
@@ -70,19 +70,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot fr fr ${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 fr fr ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts hi hi ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
MODEL_CONFIGS=("sahilmahendrakar/Paradee-8M-v1.3")
[[ $# -gt 0 ]] && MODEL_CONFIGS=("$@")
diff --git a/paradee/submit_jobs.sh b/paradee/submit_jobs.sh
index 18440e4..09a4499 100755
--- a/paradee/submit_jobs.sh
+++ b/paradee/submit_jobs.sh
@@ -17,7 +17,7 @@ PARADEE_DEVICE="${PARADEE_DEVICE:-cuda:0}"
PARADEE_THREADS="${PARADEE_THREADS:-1}"
# English only (one voice, misaki American English G2P).
-supports_language() { [[ "$1" == "en" ]]; }
+SUPPORTED_LANGUAGES="en"
# ── Stage 1: TTS generation (no batched API — one sample at a time) ──
generate_stage() {
@@ -39,14 +39,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${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}"
-)
-
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
MODEL_CONFIGS=("sahilmahendrakar/Paradee-8M-v1.0")
[[ $# -gt 0 ]] && MODEL_CONFIGS=("$@")
diff --git a/phonon/run_eval.py b/phonon/run_eval.py
index b969bc8..fd432a0 100644
--- a/phonon/run_eval.py
+++ b/phonon/run_eval.py
@@ -431,7 +431,7 @@ def main(args):
raise ValueError("Use namespace/name model labels and Hub datasets.")
if Path(args.dataset_path).exists():
raise ValueError("Local datasets cannot satisfy an immutable Hub revision pin.")
- if args.dataset not in ("tts", "zero_shot") or not re.fullmatch(r"[\w-]+", args.voice):
+ if args.dataset not in ("tts", "zero_shot", "clean", "in_the_wild") or not re.fullmatch(r"[\w-]+", args.voice):
raise ValueError("Select a standard dataset configuration and an explicit preset name.")
if not args.dataset_revision:
diff --git a/phonon/submit_jobs.sh b/phonon/submit_jobs.sh
index 9ab0529..89e1310 100644
--- a/phonon/submit_jobs.sh
+++ b/phonon/submit_jobs.sh
@@ -40,19 +40,6 @@ generate_stage() {
"${job[@]}" --volume "hf://buckets/${RESULTS_BUCKET}:/results" "$TTS_IMAGE" bash -c "$command"
}
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${CV3_EVAL_PATH}"
- # MiniMax multilingual (100 sentences/language): the languages the model supports. No `uk`: Qwen3-ASR has no Ukrainian.
- "tts en en ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "zero_shot fr fr ${CV3_EVAL_PATH}"
- "zero_shot de de ${CV3_EVAL_PATH}"
- "zero_shot es es ${CV3_EVAL_PATH}"
-)
MODEL_CONFIGS=(
"gradium/phonon-31m-en"
"gradium/phonon-40m-en"
diff --git a/pivo/submit_jobs.sh b/pivo/submit_jobs.sh
index 4174c43..473e77e 100755
--- a/pivo/submit_jobs.sh
+++ b/pivo/submit_jobs.sh
@@ -29,7 +29,7 @@ resolve_mode() {
}
# English only (two English voices, CMU-dictionary frontend).
-supports_language() { [[ "$1" == "en" ]]; }
+SUPPORTED_LANGUAGES="en"
# ── Stage 1: TTS generation. MODEL_CFG = "model_id voice" (no batched API — one sample at a time) ──
# The image bakes the model at the revision pinned in run_eval.py (PIVO_MODEL_DIR=/opt/pivo).
@@ -55,13 +55,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "tts en en ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id voice" (CLI args override) ─────────────────────────────
# Pi is the package default and the leaderboard row; Vo is the second built-in voice.
MODEL_CONFIGS=("empero-ai/PiVo-1.4M Pi")
diff --git a/pocket-tts/submit_jobs.sh b/pocket-tts/submit_jobs.sh
index 9c60b95..bc04359 100755
--- a/pocket-tts/submit_jobs.sh
+++ b/pocket-tts/submit_jobs.sh
@@ -35,8 +35,7 @@ resolve_mode() {
# ── Languages Pocket TTS has a checkpoint for ────────────────────────────────
# One checkpoint per language and no multilingual fallback (run_eval.py hard-errors on anything
# else), so unsupported combos are skipped here. Every language listed also has a 24l variant.
-POCKET_LANGUAGES="en de es it pt fr"
-supports_language() { [[ " ${POCKET_LANGUAGES} " == *" $1 "* ]]; }
+SUPPORTED_LANGUAGES="en de es it pt fr"
# ── Stage 1: TTS generation. MODEL_CFG = "model_id batch_size". ──
# NOTE: batch_size only sets the manifest-flush granularity — Pocket TTS has no batched API.
@@ -66,24 +65,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment to pick) ──
-# Seed-TTS zh and CV3-Eval ja/ko/ru/zh are omitted: Pocket TTS has no checkpoint for them.
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot de de ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot fr fr ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot it it ${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 fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id batch_size" (CLI args override) ────────────────────────
# One Hub repo holds every language checkpoint; the language comes from the dataset combo and the
# checkpoint choice from VARIANT.
diff --git a/qwen3tts/submit_jobs.sh b/qwen3tts/submit_jobs.sh
index e63d135..8f611d2 100644
--- a/qwen3tts/submit_jobs.sh
+++ b/qwen3tts/submit_jobs.sh
@@ -60,35 +60,7 @@ generate_stage() {
# ── Languages this backend can select ────────────────────────────────────────
# Must match run_eval.py's LANGUAGE_CODE_TO_NAME: unmapped codes would reach the model verbatim.
-QWEN_TTS_LANGUAGES="zh en ja ko de fr ru pt es it"
-supports_language() { [[ " ${QWEN_TTS_LANGUAGES} " == *" $1 "* ]]; }
-
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment to pick) ────────
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot zh zh ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ja ja ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ko ko ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot de de ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "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}"
- "tts ko ko ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "tts ru ru ${MINIMAX_EVAL_PATH}"
-)
-
+SUPPORTED_LANGUAGES="zh en ja ko de fr ru pt es it"
# ── Models: "model_id batch_size speaker" (CLI args override) ─────────────────
# speaker is the built-in voice for CustomVoice models; "-" for Base models (which clone).
diff --git a/sanotts/submit_jobs.sh b/sanotts/submit_jobs.sh
index 24cd14d..8c781f3 100755
--- a/sanotts/submit_jobs.sh
+++ b/sanotts/submit_jobs.sh
@@ -35,7 +35,7 @@ resolve_mode() {
}
# English only: the three evaluated voices are English, with the package's English front end.
-supports_language() { [[ "$1" == "en" ]]; }
+SUPPORTED_LANGUAGES="en"
# ── Stage 1: TTS generation. MODEL_CFG = "model_id voice" (no batched API — one sample at a time) ──
# NumPy on the host CPU of the h200 flavor; --device=cpu (run_eval.py refuses a GPU device).
@@ -62,13 +62,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "tts en en ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id voice" (CLI args override) ─────────────────────────────
# heart is the default row; amy and heart-nano are the two other English voices (variants).
MODEL_CONFIGS=("ampixa/sanoTTS heart" "ampixa/sanoTTS amy" "ampixa/sanoTTS heart-nano")
diff --git a/scripts/hf_pin/sitecustomize.py b/scripts/hf_pin/sitecustomize.py
new file mode 100644
index 0000000..7c615e1
--- /dev/null
+++ b/scripts/hf_pin/sitecustomize.py
@@ -0,0 +1,176 @@
+"""Pin Hugging Face Hub model downloads to reviewed commits (injected into every HF Job).
+
+Python imports `sitecustomize` at startup from the first sys.path entry that has one, and the jobs
+put this directory first on PYTHONPATH. Every Hub download (transformers/diffusers `from_pretrained`,
+library loaders, llama-cpp, ...) goes through `hf_hub_download` or `snapshot_download`, so wrapping
+those two (and the cache lookup `try_to_load_from_cache`) pins every repo listed in model_revisions.json (next to this file, or $HF_PIN_FILE):
+
+ - a download of a listed model repo at `main` (or with no revision) gets the pinned commit;
+ - an explicit other revision (a tag or commit) is left as is;
+ - a model repo that is not listed is downloaded from `main` and logged as `[hf-pin] UNPINNED`,
+ or refused when HF_PIN_STRICT=1.
+
+This protects runs against a silently updated model repo: a new commit on `main` is
+not used until it is reviewed and pinned (scripts/pin_revisions.py). Downloads outside the two
+functions (raw `resolve/main` URLs, `git clone`, weights baked into a Space image at build time)
+are not covered.
+
+The wrap is applied when `huggingface_hub.file_download` / `huggingface_hub._snapshot_download`
+are first imported (not here), so this file does not import huggingface_hub at startup and does
+not freeze its env-var configuration before the job's own code runs.
+"""
+
+import functools
+import importlib.util
+import inspect
+import json
+import os
+import sys
+
+_HERE = os.path.dirname(os.path.abspath(__file__))
+_TAG = "[hf-pin]"
+
+
+def _load_pins():
+ path = os.environ.get("HF_PIN_FILE") or os.path.join(_HERE, "model_revisions.json")
+ try:
+ with open(path, encoding="utf-8") as f:
+ return {k: v for k, v in json.load(f).items() if not k.startswith("_")}
+ except FileNotFoundError:
+ return None
+ except Exception as e: # a broken pins file must not take down every Python process
+ print(f"{_TAG} could not read {path}: {e!r}; downloads are NOT pinned", file=sys.stderr)
+ return None
+
+
+_PINS = _load_pins()
+_STRICT = os.environ.get("HF_PIN_STRICT", "") not in ("", "0", "false")
+_LOGGED = set()
+
+
+def _log_once(key, msg):
+ if key not in _LOGGED:
+ _LOGGED.add(key)
+ print(f"{_TAG} {msg}", file=sys.stderr, flush=True)
+
+
+def _pin_revision(repo_id, repo_type, revision, strict=True):
+ if repo_type not in (None, "model") or revision not in (None, "main") or not isinstance(repo_id, str):
+ return revision
+ if os.path.exists(repo_id): # a local directory, not a Hub repo
+ return revision
+ sha = _PINS.get(repo_id)
+ if sha:
+ _log_once(repo_id, f"{repo_id} pinned to {sha}")
+ return sha
+ if _STRICT and strict:
+ raise RuntimeError(f"{_TAG} {repo_id} is not pinned in model_revisions.json (HF_PIN_STRICT=1); "
+ "add it with scripts/pin_revisions.py")
+ _log_once(repo_id, f"UNPINNED {repo_id} (downloading from main)")
+ return revision
+
+
+def _wrap(fn, strict):
+ if getattr(fn, "_hf_pinned", False):
+ return fn
+ sig = inspect.signature(fn)
+
+ @functools.wraps(fn)
+ def wrapper(*args, **kwargs):
+ try:
+ bound = sig.bind_partial(*args, **kwargs)
+ except TypeError:
+ return fn(*args, **kwargs) # let the real function raise its own error
+ a = bound.arguments
+ if "repo_id" in a and "revision" in sig.parameters:
+ a["revision"] = _pin_revision(a["repo_id"], a.get("repo_type"), a.get("revision"), strict)
+ return fn(*bound.args, **bound.kwargs)
+
+ wrapper._hf_pinned = True
+ return wrapper
+
+
+# module -> [(function, refuse unpinned repos under HF_PIN_STRICT)]. try_to_load_from_cache is the
+# cache lookup transformers does after a download: with the same mapping it finds the file stored
+# under the pinned commit (a download by commit does not write the cache's refs/main).
+_TARGETS = {
+ "huggingface_hub.file_download": [("hf_hub_download", True), ("try_to_load_from_cache", False)],
+ "huggingface_hub._snapshot_download": [("snapshot_download", True)],
+}
+
+
+def _patch(module_name, module):
+ for attr, strict in _TARGETS[module_name]:
+ _patch_one(module, attr, strict)
+
+
+def _patch_one(module, attr, strict):
+ original = getattr(module, attr, None)
+ if original is None or getattr(original, "_hf_pinned", False):
+ return
+ wrapped = _wrap(original, strict)
+ # Rebind every reference already taken (e.g. the package's own lazy attribute); modules that
+ # import the name later get the wrapped one from here.
+ for mod in list(sys.modules.values()):
+ d = getattr(mod, "__dict__", None)
+ if not d:
+ continue
+ for key, value in list(d.items()):
+ if value is original:
+ try:
+ setattr(mod, key, wrapped)
+ except Exception:
+ pass
+
+
+class _PinFinder:
+ """Meta-path finder that wraps the target modules right after they execute."""
+
+ def find_spec(self, fullname, path=None, target=None):
+ if fullname not in _TARGETS:
+ return None
+ for finder in sys.meta_path:
+ if finder is self or not hasattr(finder, "find_spec"):
+ continue
+ spec = finder.find_spec(fullname, path, target)
+ if spec is not None:
+ break
+ else:
+ return None
+ loader = spec.loader
+ if loader is None or not hasattr(loader, "exec_module"):
+ return spec
+ exec_module = loader.exec_module
+
+ def exec_and_patch(module):
+ exec_module(module)
+ try:
+ _patch(fullname, module)
+ except Exception as e:
+ print(f"{_TAG} could not wrap {fullname}: {e!r}; downloads are NOT pinned", file=sys.stderr)
+
+ loader.exec_module = exec_and_patch
+ return spec
+
+
+if _PINS is not None:
+ sys.meta_path.insert(0, _PinFinder())
+
+
+# This file shadows any sitecustomize the image already has (e.g. Debian's): run that one too.
+def _chain_next_sitecustomize():
+ for entry in sys.path:
+ if not entry or os.path.abspath(entry) == _HERE:
+ continue
+ candidate = os.path.join(entry, "sitecustomize.py")
+ if os.path.isfile(candidate):
+ spec = importlib.util.spec_from_file_location("_image_sitecustomize", candidate)
+ module = importlib.util.module_from_spec(spec)
+ try:
+ spec.loader.exec_module(module)
+ except Exception as e:
+ print(f"{_TAG} image sitecustomize {candidate} failed: {e!r}", file=sys.stderr)
+ return
+
+
+_chain_next_sitecustomize()
diff --git a/scripts/open_results_pr.py b/scripts/open_results_pr.py
index 3ff8b4e..b52b4f3 100644
--- a/scripts/open_results_pr.py
+++ b/scripts/open_results_pr.py
@@ -16,12 +16,16 @@ Files written (all in that dataset repo):
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)
+ ztts2_mini_clean.csv ZTTS2-Eval Mini Clean, own/default voice (WER, RTFx + averages)
+ ztts2_mini_clean_voice_clone.csv ... cloning each prompt (WER, RTFx, SIM + averages)
+ ztts2_mini_itw.csv ZTTS2-Eval Mini In-The-Wild, own/default voice (WER, RTFx + averages)
+ ztts2_mini_itw_voice_clone.csv ... cloning each prompt (WER, RTFx, SIM + averages)
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
-caveats); a results file gets the column the first time a note is published to it.
-
-Nothing is pushed unless --open_pr is passed: the default is a dry run that prints the rows.
+caveats); a results file gets the column the first time a note is published to it. The Neyshekar and
+ZTTS2-Eval Mini files are created on their first publish; they are scored like every other dataset
+(the panel weights are not used).
Usage:
# dry run (default): show the rows that would be written
@@ -68,6 +72,7 @@ from huggingface_hub import CommitOperationAdd, HfApi, hf_hub_download # noqa:
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
+from prepare_ztts2_eval_mini import PANEL_LANGS # noqa: E402
# Where the results live, and where they are published.
RESULTS_BUCKET = "hf-audio/tts_leaderboard_h200"
@@ -104,8 +109,11 @@ 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.
+ languages: for a benchmark with a fixed language set, its language columns, in order. Only those
+ languages are published, which also keeps a development config whose name shares the marker
+ prefix out; the file is created on its first publish (see `new_results_file`); and the
+ benchmark is optional -- scripts/rescore_all.py neither requires a model to be on it nor the
+ file to exist.
"""
def __init__(self, filename, marker, voice_clone, xvector_sim=False, languages=None):
@@ -126,9 +134,20 @@ 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"}),
+ "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",)),
+ "ztts2_mini_clean": Target("ztts2_mini_clean.csv", "ztts2_eval_mini_clean_", voice_clone=False,
+ languages=PANEL_LANGS["clean"]),
+ "ztts2_mini_clean_voice_clone": Target("ztts2_mini_clean_voice_clone.csv", "ztts2_eval_mini_clean_",
+ voice_clone=True, languages=PANEL_LANGS["clean"]),
+ "ztts2_mini_itw": Target("ztts2_mini_itw.csv", "ztts2_eval_mini_in_the_wild_", voice_clone=False,
+ languages=PANEL_LANGS["in_the_wild"]),
+ "ztts2_mini_itw_voice_clone": Target("ztts2_mini_itw_voice_clone.csv", "ztts2_eval_mini_in_the_wild_",
+ voice_clone=True, languages=PANEL_LANGS["in_the_wild"]),
}
+# Wired in but not on the leaderboard yet (like ztts2_mini_itw in scripts/tts_jobs_common.sh): only
+# written when named in --targets.
+OPT_IN_TARGETS = ("ztts2_mini_itw", "ztts2_mini_itw_voice_clone")
# streaming.csv is filled from the TTFA sidecars rather than by scoring, so it is not a Target.
STREAMING_KEY = "streaming"
@@ -421,21 +440,21 @@ 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)."""
- 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")
+ path = hf_hub_download(RESULTS_REPO, filename, repo_type="dataset", token=hf_token, revision=revision)
with open(path, newline="", encoding="utf-8") as handle:
return Published(handle.read())
+def new_results_file(target):
+ """The header-only file of a fixed-language benchmark that is not published yet: per-language columns
+ in `target.languages` order, then averages when there is more than one language."""
+ metrics = ("WER", "RTFx", "SIM") if target.voice_clone else ("WER", "RTFx")
+ header = ["model"] + [f"{lang} {metric}" for lang in target.languages for metric in metrics]
+ if len(target.languages) > 1:
+ header += [f"avg {metric}" for metric in metrics]
+ return Published(serialize_row(header) + "\n")
+
+
def serialize_row(row):
"""One CSV record, with no line ending of its own."""
buffer = io.StringIO(newline="")
@@ -633,7 +652,8 @@ def main():
nargs="+",
default=None,
choices=[*TARGETS, STREAMING_KEY],
- help="Benchmark files to update (default: every one the model has results for).",
+ help="Benchmark files to update (default: every one the model has results for, except the opt-in "
+ f"{', '.join(OPT_IN_TARGETS)}, which must be named).",
)
parser.add_argument(
"--skip_model_info",
@@ -743,7 +763,7 @@ def main():
sys.exit(1)
# ── Which manifests feed which file ──────────────────────────────────────
- target_keys = args.targets or [*TARGETS, STREAMING_KEY]
+ target_keys = args.targets or [*[k for k in TARGETS if k not in OPT_IN_TARGETS], STREAMING_KEY]
sidecars = {}
if STREAMING_KEY in target_keys:
sidecars = select_ttfa_sidecars(model_dir, model_safe, variant, args.engine)
@@ -805,7 +825,14 @@ def main():
updated = {} # filename -> new content
for key in [k for k in TARGETS if k in selection]:
target = TARGETS[key]
- published = fetch_csv(target.filename, args.hf_token, base_revision)
+ try:
+ published = fetch_csv(target.filename, args.hf_token, base_revision)
+ except EntryNotFoundError:
+ # Only a fixed-language benchmark's file is created here; any other missing file is an error.
+ if target.languages is None:
+ raise
+ print(f"\n{target.filename} is not in {RESULTS_REPO} yet; creating it.")
+ published = new_results_file(target)
header = published.header
languages = header_languages(header)
values, unknown = collect_values(
diff --git a/scripts/pin_revisions.py b/scripts/pin_revisions.py
new file mode 100644
index 0000000..b2e269f
--- /dev/null
+++ b/scripts/pin_revisions.py
@@ -0,0 +1,134 @@
+#!/usr/bin/env python3
+"""Maintain model_revisions.json: the Hub commit each model repo is pinned to in the eval jobs.
+
+Every HF Job runs with scripts/hf_pin/sitecustomize.py, which makes a download of a listed model
+repo at `main` (or with no revision) use the pinned commit instead (see that file). This script
+keeps the list:
+
+ python scripts/pin_revisions.py # pin repos not pinned yet, at their current main:
+ # every backend's MODEL_CONFIGS, the models in
+ # submit_ztts2_jobs.sh, the scorers, EXTRA_REPOS
+ python scripts/pin_revisions.py --add org/name # also pin these (e.g. a repo logged UNPINNED)
+ python scripts/pin_revisions.py --check # list pinned repos whose main has moved, with
+ # the new commits (review before bumping!)
+ python scripts/pin_revisions.py --bump org/name # re-pin to the current main after review
+
+A job log line `[hf-pin] UNPINNED <repo>` names a repo a backend downloads that is not listed yet
+(e.g. a codec or tokenizer loaded inside a library): add it with --add.
+"""
+
+import argparse
+import json
+import os
+import re
+import subprocess
+import sys
+from concurrent.futures import ThreadPoolExecutor
+
+from huggingface_hub import HfApi
+from huggingface_hub.utils import HfHubHTTPError, RepositoryNotFoundError
+
+REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+PINS_PATH = os.path.join(REPO_ROOT, "model_revisions.json")
+COMMENT = ("Hub commit each model repo is pinned to in the eval jobs (scripts/hf_pin/sitecustomize.py). "
+ "Maintained with scripts/pin_revisions.py; review a repo's new commits before --bump.")
+
+# Repos loaded by the shared scorer stages or inside backends (not a MODEL_CONFIGS model id).
+EXTRA_REPOS = [
+ # scorers (transformers/transcribe.py, score_similarity.py)
+ "Qwen/Qwen3-ASR-1.7B-hf", "openai/whisper-large-v3",
+ "microsoft/wavlm-base-plus-sv", "microsoft/wavlm-large", "bezzam/wavlm_large_finetune_seed_tts_eval",
+ # loaded by backends besides their model id
+ "microsoft/speecht5_hifigan", "neuphonic/distill-neucodec", "charactr/vocos-mel-24khz",
+]
+
+
+def backend_model_ids():
+ """Model ids of every backend's default MODEL_CONFIGS (from a DRY_RUN that submits nothing)."""
+ scripts = sorted(f"{d}/submit_jobs.sh" for d in os.listdir(REPO_ROOT)
+ if os.path.isfile(os.path.join(REPO_ROOT, d, "submit_jobs.sh")))
+ env = dict(os.environ, DRY_RUN="true", ONLY_DATASETS="__none__")
+
+ def ids(script):
+ out = subprocess.run(["bash", script], cwd=REPO_ROOT, env=env, capture_output=True, text=True).stdout
+ return re.findall(r"^\s*Evaluating: (\S+)", out, flags=re.M)
+
+ with ThreadPoolExecutor(8) as pool:
+ found = [i for lst in pool.map(ids, scripts) for i in lst]
+ runs = subprocess.run(["bash", "submit_ztts2_jobs.sh"], cwd=REPO_ROOT, env=dict(os.environ, DRY_RUN="true"),
+ capture_output=True, text=True).stdout
+ found += [line.split("|")[1].split()[0] for line in runs.splitlines() if line.count("|") == 3]
+ return found
+
+
+def load_pins():
+ if not os.path.exists(PINS_PATH):
+ return {}
+ with open(PINS_PATH, encoding="utf-8") as f:
+ return {k: v for k, v in json.load(f).items() if not k.startswith("_")}
+
+
+def save_pins(pins):
+ with open(PINS_PATH, "w", encoding="utf-8") as f:
+ json.dump({"_comment": COMMENT, **dict(sorted(pins.items(), key=lambda kv: kv[0].lower()))}, f, indent=2)
+ f.write("\n")
+
+
+def main_sha(api, repo):
+ try:
+ return api.model_info(repo).sha
+ except RepositoryNotFoundError:
+ return None
+
+
+def main():
+ parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
+ parser.add_argument("--add", nargs="*", default=[], help="Extra model repos to pin.")
+ parser.add_argument("--check", action="store_true", help="Report pinned repos whose main has moved.")
+ parser.add_argument("--bump", nargs="*", default=[], help="Re-pin these repos to their current main.")
+ args = parser.parse_args()
+ api = HfApi()
+ pins = load_pins()
+
+ if args.check:
+ repos = sorted(pins)
+ with ThreadPoolExecutor(16) as pool:
+ heads = dict(zip(repos, pool.map(lambda r: main_sha(api, r), repos)))
+ moved = [r for r in repos if heads[r] and heads[r] != pins[r]]
+ for repo in repos:
+ if heads[repo] is None:
+ print(f"GONE {repo} (pinned {pins[repo][:12]}): repo not found or no access")
+ for repo in moved:
+ print(f"MOVED {repo}: pinned {pins[repo][:12]}, main {heads[repo][:12]}")
+ try:
+ for c in api.list_repo_commits(repo):
+ if c.commit_id == pins[repo]:
+ break
+ print(f" {c.commit_id[:12]} {c.created_at:%Y-%m-%d} {', '.join(c.authors)}: {c.title}")
+ except HfHubHTTPError as e: # e.g. a gated repo: its info is readable, its history is not
+ print(f" (commit history not readable: {type(e).__name__})")
+ print(f"{len(repos)} pinned, {len(moved)} moved since pinning")
+ return
+
+ for repo in args.bump:
+ sha = main_sha(api, repo)
+ if sha is None:
+ sys.exit(f"{repo}: not found")
+ print(f"bump {repo}: {pins.get(repo, '-')[:12]} -> {sha[:12]}")
+ pins[repo] = sha
+
+ wanted = sorted(set(backend_model_ids() + EXTRA_REPOS + args.add) - set(pins), key=str.lower)
+ with ThreadPoolExecutor(16) as pool:
+ shas = dict(zip(wanted, pool.map(lambda r: main_sha(api, r), wanted)))
+ for repo in wanted:
+ if shas[repo] is None:
+ print(f"skip {repo}: not a model repo on the Hub (or no access)")
+ else:
+ pins[repo] = shas[repo]
+ print(f"pin {repo} @ {shas[repo][:12]}")
+ save_pins(pins)
+ print(f"{len(pins)} repos pinned in {os.path.relpath(PINS_PATH, REPO_ROOT)}")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/scripts/prepare_ztts2_eval_mini.py b/scripts/prepare_ztts2_eval_mini.py
new file mode 100644
index 0000000..510df2d
--- /dev/null
+++ b/scripts/prepare_ztts2_eval_mini.py
@@ -0,0 +1,205 @@
+"""
+Script to prepare ZTTS2-Eval Mini, the coreset panels of ZTTS2-Eval, for the HF hub.
+
+Source: a ZTTS2-Eval checkout, https://github.com/Zyphra/ZTTS2-Eval. Its prompt wavs come from the
+private `Zyphra/ZTTS2-Eval` audio repo, fetched into the checkout by ZTTS2-Eval's
+`python scripts/prep/download_data.py`.
+
+Layout (Kaldi-style, as CV3-Eval; scp paths are relative to the checkout root):
+ - data/clean_mini/<lang>/{text, prompt_text, prompt_wav.scp, waveform/} FLEURS-R, 35 languages
+ - data/in-the-wild_mini/<lang>/{text, prompt_text, prompt_wav.scp, waveform/} VoxBlink2, 20 languages
+ - data/{clean_mini,in-the-wild_mini}/panel.json {"langs": {<lang>: {<uttid>: weight}}, ...}
+
+Each panel becomes a config (`clean`, `in_the_wild`), each language a split named by its ZTTS2-Eval code. Every
+row carries its panel weight (`weight` column), so ZTTS2-Eval's weighted panel estimate can be reproduced from the
+dataset; the leaderboard's scoring does not use it.
+The In-The-Wild held-out target recordings are not included.
+
+Pushed **public** by default: FLEURS-R is CC-BY-4.0 and VoxBlink2 CC-BY-NC-SA-4.0, both of which allow
+redistribution with attribution (see CARD_TEXT).
+
+Prerequisite — get the checkout and its prompt wavs:
+```
+# 1. Clone the benchmark repo somewhere OUTSIDE this one (path becomes --ztts2-root).
+git clone https://github.com/Zyphra/ZTTS2-Eval.git
+
+# 2. Fetch the prompt wavs (gated `Zyphra/ZTTS2-Eval` audio repo — accept its terms on the Hub
+# and `huggingface-cli login` first). This populates data/clean_mini/ and data/in-the-wild_mini/.
+cd ZTTS2-Eval && python scripts/prep/download_data.py && cd -
+```
+
+Usage:
+```
+python scripts/prepare_ztts2_eval_mini.py [repo_id] --ztts2-root <PATH>/ZTTS2-Eval [--configs clean in_the_wild] [--dry-run] [--private]
+```
+"""
+
+import argparse
+import json
+from pathlib import Path
+
+from datasets import Audio, Dataset, Features, Value
+from huggingface_hub import DatasetCard
+
+from prepare_cv3_eval import parse_leaf
+
+
+# Split names of the two panels, in ZTTS2-Eval's order (utils/benchmark.py CLEAN_LANGS / ITW_LANGS).
+PANEL_LANGS = {
+ "clean": ("en", "zh", "de", "es", "fr", "it", "ja", "ko", "ru", "pt", "ar", "hi", "tr", "pl", "id", "th",
+ "fil", "nl", "vi", "cs", "sv", "da", "fi", "el", "hu", "ro", "uk", "nb", "he", "bg", "hr", "sk",
+ "ca", "ms", "fa"),
+ "in_the_wild": ("en", "zh", "de", "es", "fr", "it", "ja", "ko", "ru", "pt", "ar", "hi", "id", "tr", "tl",
+ "pl", "th", "nl", "uk", "vi"),
+}
+
+DEFAULT_REPO_ID = "hf-audio/ztts2_eval_mini"
+# Config -> panel dir under the checkout's data/.
+PANEL_DIRS = {"clean": "clean_mini", "in_the_wild": "in-the-wild_mini"}
+FEATURES = Features({
+ "id": Value("string"),
+ "prompt_text": Value("string"),
+ "prompt_audio": Audio(),
+ "text": Value("string"),
+ "weight": Value("float64"),
+})
+LICENSE_LINK = "https://github.com/Zyphra/ZTTS2-Eval/blob/main/DATA_LICENSE.md"
+CARD_TEXT = f"""\
+# ZTTS2-Eval Mini (Open TTS Leaderboard copy)
+
+The coreset panels of [ZTTS2-Eval](https://github.com/Zyphra/ZTTS2-Eval), a multilingual zero-shot TTS benchmark:
+each row is a sentence to synthesize, in the voice of a prompt clip whose transcript is given.
+
+| Config | Source | License | Languages | Items |
+|---|---|---|---|---|
+| `clean` | [FLEURS-R](https://huggingface.co/datasets/google/fleurs-r) | [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/) | 35 | 3,500 |
+| `in_the_wild` | [VoxBlink2](https://voxblink2.github.io/) (YouTube) | [CC-BY-NC-SA-4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/), **non-commercial** | 20 | 1,919 |
+
+Each language is a split, named by its ZTTS2-Eval code (Tagalog is `fil` in `clean` and `tl` in `in_the_wild`).
+See [DATA_LICENSE.md]({LICENSE_LINK}) for the terms of each source.
+
+**Panel weights.** `weight` is the item's panel weight; the weights sum to 1 per split. A language's estimate of the
+full ZTTS2-Eval score is the weighted mean, over its items, of the per-utterance WER clipped at 100% (CER for `zh`,
+`ja`, `ko`, `th`), as ZTTS2-Eval's `scripts/coreset/score_panel.py` computes it. The Open TTS Leaderboard does
+not use the weights: it scores each split like its other datasets, with every item counted equally.
+
+**Changes:** reorganized from the ZTTS2-Eval checkout's `data/clean_mini/` and `data/in-the-wild_mini/` by
+[`scripts/prepare_ztts2_eval_mini.py`](https://github.com/huggingface/open-tts-leaderboard/blob/main/scripts/prepare_ztts2_eval_mini.py).
+Text and audio are unchanged. The In-The-Wild held-out target recordings are not included.
+
+Used by the [Open TTS Leaderboard](https://github.com/huggingface/open-tts-leaderboard).
+
+## Citation
+
+```bibtex
+@misc{{ztts2eval,
+ title={{{{ZTTS2-Eval}}: A Multilingual, In-the-Wild Zero-Shot TTS Benchmark}},
+ author={{Zyphra}},
+ year={{2026}},
+ howpublished={{\\url{{https://github.com/Zyphra/ZTTS2-Eval}}}},
+}}
+
+@article{{ma2024fleursr,
+ title={{{{FLEURS-R}}: A Restored Multilingual Speech Corpus for Generation Tasks}},
+ author={{Ma, Min and Koizumi, Yuma and Karita, Shigeki and Zen, Heiga and Riesa, Jason and Bapna, Ankur and Rosenberg, Andrew}},
+ journal={{arXiv preprint arXiv:2408.06227}},
+ year={{2024}}
+}}
+
+@inproceedings{{lin2024voxblink2,
+ title={{{{VoxBlink2}}: A 100K+ Speaker Recognition Corpus and the Open-Set Speaker-Identification Benchmark}},
+ author={{Lin, Yuke and others}},
+ booktitle={{Interspeech}},
+ year={{2024}}
+}}
+```
+"""
+
+
+def read_weights(root: Path) -> dict:
+ """Read both panels' weights and check their languages. Returns {config: {split: {item id: weight}}}."""
+ weights = {}
+ for config, panel_dir in PANEL_DIRS.items():
+ with open(root / "data" / panel_dir / "panel.json", encoding="utf-8") as f:
+ panel = json.load(f)
+ diff = set(panel["langs"]) ^ set(PANEL_LANGS[config])
+ if diff:
+ raise SystemExit(f"{panel_dir}/panel.json languages differ from PANEL_LANGS['{config}']: {sorted(diff)}")
+ weights[config] = panel["langs"]
+ return weights
+
+
+def push_card(repo_id: str):
+ """Set the license and put CARD_TEXT at the top of the card. Runs after every split is pushed, since each
+ push_to_hub rewrites the card's metadata; the `configs` / `dataset_info` it wrote are kept."""
+ card = DatasetCard.load(repo_id, repo_type="dataset")
+ card.data.license = "other"
+ card.data.license_name = "ztts2-eval-mixed"
+ card.data.license_link = LICENSE_LINK
+ card.data.task_categories = ["text-to-speech"]
+ card.text = CARD_TEXT
+ card.push_to_hub(repo_id, repo_type="dataset", commit_message="Add dataset card (licenses and attribution)")
+
+
+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(
+ "--ztts2-root",
+ default="ZTTS2-Eval",
+ help="Path to the ZTTS2-Eval checkout (the dir containing `data/`; scp paths are relative to it).",
+ )
+ parser.add_argument(
+ "--configs",
+ nargs="+",
+ default=list(PANEL_DIRS),
+ choices=list(PANEL_DIRS),
+ help="Configs to upload (default: both).",
+ )
+ parser.add_argument("--dry-run", action="store_true", help="Parse and validate only; do not upload.")
+ parser.add_argument("--private", action="store_true", help="Push a private copy (default: public).")
+ args = parser.parse_args()
+
+ root = Path(args.ztts2_root)
+ if not (root / "data").is_dir():
+ raise SystemExit(f"{root / 'data'} not found — pass --ztts2-root pointing at the ZTTS2-Eval checkout.")
+
+ # Always written (it is a local file): scoring needs it whether or not anything is pushed.
+ weights = read_weights(root)
+
+ totals = {}
+ for config in args.configs:
+ for split in PANEL_LANGS[config]:
+ split_weights = weights[config][split]
+ records = parse_leaf(root / "data" / PANEL_DIRS[config] / split, root,
+ with_prompt_audio=True, with_ground_truth=False)
+ ids = {r["id"] for r in records}
+ if ids != set(split_weights):
+ raise SystemExit(f"{config}/{split}: {len(ids - set(split_weights))} row(s) without a weight, "
+ f"{len(set(split_weights) - ids)} weight(s) without a row")
+ for r in records:
+ r["weight"] = split_weights[r["id"]]
+ dataset = Dataset.from_dict({key: [r[key] for r in records] for key in FEATURES}, features=FEATURES)
+ print(f" {config}/{split}: {len(dataset)} examples")
+ totals[config] = totals.get(config, 0) + len(dataset)
+ if not args.dry_run:
+ # `private` only applies when the repo is created; an existing repo keeps its visibility.
+ dataset.push_to_hub(args.repo_id, config_name=config, split=split, private=args.private)
+
+ for config, total in totals.items():
+ print(f"{config}: {total} examples in {len(PANEL_LANGS[config])} splits")
+ if args.dry_run:
+ print("Dry run — nothing uploaded.")
+ return
+ print("Writing the dataset card ...")
+ push_card(args.repo_id)
+ print(f"Uploaded to https://huggingface.co/datasets/{args.repo_id}")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/scripts/rescore_all.py b/scripts/rescore_all.py
index 462dfbe..cc62596 100644
--- a/scripts/rescore_all.py
+++ b/scripts/rescore_all.py
@@ -25,6 +25,9 @@ Usage:
# re-use results already synced locally, and open the PR
python scripts/rescore_all.py --skip_sync --open_pr
+ # add the rescore to an open PR (reads its CSVs, pushes to it) instead of opening a new one
+ python scripts/rescore_all.py --skip_sync --pr 135 --open_pr
+
# one language only (e.g. after a Vietnamese-only normalizer change): only rows with a
# published `vi WER` are synced and scored, and only `vi WER` and `avg WER` can change
python scripts/rescore_all.py --targets minimax minimax_voice_clone --languages vi
@@ -39,6 +42,7 @@ REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, os.path.join(REPO_ROOT, "scripts"))
from huggingface_hub import CommitOperationAdd, HfApi # noqa: E402
+from huggingface_hub.errors import EntryNotFoundError # noqa: E402
from open_results_pr import ( # noqa: E402
RESULTS_BUCKET,
@@ -61,6 +65,12 @@ ROW_OVERRIDES = {
"FunAudioLLM/Fun-CosyVoice3-0.5B-2512 (RL)": ("FunAudioLLM/Fun-CosyVoice3-0.5B-2512", "_rl"),
"ResembleAI/chatterbox (ChatterboxTTS)": ("ResembleAI/chatterbox", ""),
"ResembleAI/chatterbox (ChatterboxMultilingualTTS)": ("ResembleAI/chatterbox", "_multilingual"),
+ "ampixa/sanoTTS (heart)": ("ampixa/sanoTTS", ""),
+ "ampixa/sanoTTS (amy)": ("ampixa/sanoTTS", "_amy"),
+ "ampixa/sanoTTS (heart-nano)": ("ampixa/sanoTTS", "_heartnano"),
+ "ConwayResearch/Underdog-Woof (Mira)": ("ConwayResearch/Underdog-Woof", "_mira"),
+ "n4ze3m/tiny-voca (F2)": ("n4ze3m/tiny-voca", ""),
+ "n4ze3m/tiny-voca (M2)": ("n4ze3m/tiny-voca", "_m2"),
}
SIM_BACKEND = "wavlm_seed_tts" # same default as open_results_pr.py; WER does not depend on it
@@ -165,20 +175,45 @@ def main():
"manifests and skipped (default: 0.01, the published rounding).",
)
parser.add_argument("--force", action="store_true", help="Update WER even when RTFx does not match.")
+ parser.add_argument(
+ "--all_rows",
+ action="store_true",
+ help="Also rescore rows that are not on every core benchmark (e.g. Seed-TTS-only or "
+ "single-language models), e.g. after a change to how WER is computed.",
+ )
parser.add_argument("--hf_token", default=os.environ.get("HF_TOKEN"), help="Defaults to $HF_TOKEN.")
parser.add_argument("--out_dir", default=None, help="Also write the updated CSVs to this directory.")
parser.add_argument("--open_pr", action="store_true", help="Actually open the PR (default: dry run).")
parser.add_argument("--commit_message", default="Rescore WER after normalizer change", help="PR title.")
+ parser.add_argument(
+ "--pr",
+ type=int,
+ default=None,
+ help="Add to this open PR (its number) instead of opening a new one: the CSVs are read from "
+ "refs/pr/<N>, so the PR's other changes are kept, and the commit is pushed to it.",
+ )
args = parser.parse_args()
+ base_revision = f"refs/pr/{args.pr}" if args.pr is not None else None
local_dir = args.local_dir or os.path.join(REPO_ROOT, "results")
- every_file = {key: fetch_csv(target.filename, args.hf_token) for key, target in TARGETS.items()}
- published = {key: every_file[key] for key in args.targets}
-
- # Only rows published on every benchmark (Seed-TTS and CV3, plain or voice-clone file), so
- # partial entries such as Seed-TTS-only models are left alone.
+ every_file = {}
+ for key, target in TARGETS.items():
+ try:
+ every_file[key] = fetch_csv(target.filename, args.hf_token, base_revision)
+ except EntryNotFoundError:
+ # A fixed-language benchmark's file only exists once something was published to it.
+ if target.languages is None:
+ raise
+ print(f"{target.filename}: not published yet; skipping.")
+ published = {key: every_file[key] for key in args.targets if key in every_file}
+
+ # Only rows published on every core benchmark (Seed-TTS, CV3 and MiniMax, plain or voice-clone
+ # file), so partial entries such as Seed-TTS-only models are left alone. Fixed-language benchmarks
+ # (Target.languages) are optional: their rows are rescored whatever else the model is on.
names_per_benchmark = {}
for key, csv_file in every_file.items():
+ if TARGETS[key].languages is not None:
+ continue
benchmark = TARGETS[key].marker
names_per_benchmark.setdefault(benchmark, set()).update(row[0].strip() for row in csv_file.rows)
on_all_benchmarks = set.intersection(*names_per_benchmark.values())
@@ -191,7 +226,7 @@ def main():
name = row[0].strip()
if args.models and name not in args.models:
continue
- if name not in on_all_benchmarks:
+ if TARGETS[key].languages is None and name not in on_all_benchmarks and not args.all_rows:
continue
if args.languages and not has_published_wer(csv_file.header, row, args.languages):
continue
@@ -304,9 +339,10 @@ def main():
f"WER rescored from `{args.bucket}` with `scripts/rescore_all.py`.\n\n"
f"Files: {', '.join(sorted(updated))}"
),
- create_pr=True,
+ create_pr=base_revision is None,
+ revision=base_revision,
)
- print(f"\nPR opened: {commit.pr_url}")
+ print(f"\nPushed to PR #{args.pr}: {commit.commit_url}" if base_revision else f"\nPR opened: {commit.pr_url}")
if __name__ == "__main__":
diff --git a/scripts/tts_jobs_common.sh b/scripts/tts_jobs_common.sh
index 5be8934..fd4b3fb 100644
--- a/scripts/tts_jobs_common.sh
+++ b/scripts/tts_jobs_common.sh
@@ -5,7 +5,7 @@
# 1. sets TTS_SPACE (+ any backend-specific env) and RUN_EVAL_INJECT
# 2. defines generate_stage() — the stage-1 (TTS generation) job for one (model, dataset)
# 3. optionally defines resolve_mode() — sets CLONE / MODE_SUFFIX per model (default: no clone)
-# 4. sets MODEL_CONFIGS (applying the CLI override) + optionally DATASET_CONFIGS
+# 4. sets SUPPORTED_LANGUAGES (see "Datasets") and MODEL_CONFIGS (applying the CLI override)
# 5. calls run_pipeline
#
# The pipeline for each (model, dataset) is: stage 1 (generate, backend-specific) → stage 2
@@ -19,8 +19,8 @@
# DATASET SPLIT ASR_LANG DATASET_PATH DATASET_SAFE MODE_SUFFIX CLONE BUCKET_MANIFEST
# TTS_IMAGE NAMESPACE_ARG
# plus every shared config var below. Backends reference these in their generate_stage().
-# NOTE: DATASET_PATH is per-combo (a DATASET_CONFIGS line may name its own dataset repo), so read
-# it inside generate_stage() — never cache it at source time.
+# NOTE: DATASET_PATH is per-combo (each dataset has its own repo), so read it inside generate_stage()
+# — never cache it at source time.
# ── Locations ────────────────────────────────────────────────────────────────
COMMON_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@@ -32,16 +32,18 @@ SPACE="${SPACE:-bezzam/evals}" # shared scorer
RESULTS_BUCKET="${RESULTS_BUCKET:-hf-audio/tts_leaderboard_h200}" # shared HF bucket (per-model folders)
# HF namespace holding your PRIVATE copies of the Seed-TTS / CV3 eval datasets (their licenses forbid
# redistribution; push them with scripts/prepare_{seed_tts,cv3}_eval.py). Only supplies the defaults
-# below — DATASET_PATH / CV3_EVAL_PATH (or a DATASET_CONFIGS line's 4th field) can name any repo.
+# below — DATASET_PATH / CV3_EVAL_PATH can name any repo.
DATASET_NAMESPACE="${DATASET_NAMESPACE:-hf-audio}"
-# Default dataset repo, used for every DATASET_CONFIGS line that does not name its own (4th field).
+# Seed-TTS repo; also the repo of a raw DATASET_CONFIGS line without a 4th field.
DEFAULT_DATASET_PATH="${DATASET_PATH:-${DATASET_NAMESPACE}/seed_tts_eval}"
-# The other eval sets — named explicitly by the CV3 / MiniMax lines of a backend's DATASET_CONFIGS.
+# The other eval sets (registry under "Datasets" below).
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}"
+# ZTTS2-Eval Mini (coreset panels of ZTTS2-Eval; Clean CC-BY-4.0, In-The-Wild CC-BY-NC-SA-4.0)
+ZTTS2_EVAL_MINI_PATH="${ZTTS2_EVAL_MINI_PATH:-hf-audio/ztts2_eval_mini}"
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
@@ -53,12 +55,15 @@ SIM_FLAVOR="${SIM_FLAVOR:-l4x1}" # stage 3 flavor
KOMOS_FLAVOR="${KOMOS_FLAVOR:-l4x1}" # optional Korean MOS stage
UTMOS_FLAVOR="${UTMOS_FLAVOR:-l4x1}" # stage 4 flavor
MAX_EVAL_SAMPLES="${MAX_EVAL_SAMPLES:--1}" # -1 = all; set e.g. 8 to smoke-test
-# Restrict a run to some of the backend's DATASET_CONFIGS: space-separated asr_language codes
-# (field 3 of a config line), e.g. ONLY_LANGS="de". Empty (default) runs every configured combo.
+# Restrict a run to some of the backend's datasets / languages (see "Datasets" below), e.g.
+# ONLY_DATASETS="minimax" ONLY_LANGS="de fr". Datasets by registry name (seed_tts cv3 minimax neyshekar
+# ztts2_mini_clean ztts2_mini_itw) or repo name (minimax_eval; ztts2_eval_mini covers both ZTTS2 panels).
+# Empty (default) runs every dataset and supported language, except the opt-in ztts2_mini_itw (run it by
+# naming it here).
ONLY_LANGS="${ONLY_LANGS:-}"
-# Same, by dataset repo name (the part after the namespace), e.g. ONLY_DATASETS="minimax_eval" or
-# "seed_tts_eval cv3_eval". Combines with ONLY_LANGS.
ONLY_DATASETS="${ONLY_DATASETS:-}"
+# DRY_RUN=true: print the (model, dataset, split) combos a run would submit, and submit nothing.
+DRY_RUN="${DRY_RUN:-false}"
ASR_BATCH_SIZE="${ASR_BATCH_SIZE:-32}" # ASR minibatch (lower if it OOMs)
SIM_BATCH_SIZE="${SIM_BATCH_SIZE:-32}" # SIM minibatch (ignored by the wavlm_seed_tts backend)
# Speaker-similarity embedder. 'xvector': WavLMForXVector (wavlm-base-plus-sv) — cheap but poorly
@@ -94,15 +99,82 @@ VOICE_CLONE="${VOICE_CLONE:-false}"
# code is injected at runtime, so there are no secrets to keep private.
SCORER_IMAGE="hf.co/spaces/${SPACE}"
-# Datasets: "config split asr_language [dataset_path]". Backends may override before run_pipeline.
-# asr_language is the language hint for Qwen3-ASR (stage 2) and, for backends that take one,
-# for the TTS model too — so it must be a real language code, not a split name.
-# The optional 4th field points a single line at a different dataset repo (default:
-# DEFAULT_DATASET_PATH), so one list can mix e.g. Seed-TTS and CV3-Eval combos. It only has to
-# expose the same columns the backends read: `text` + `prompt_text`/`prompt_audio` when cloning.
-DATASET_CONFIGS=("tts en en")
+# ── Datasets ─────────────────────────────────────────────────────────────────
+# A backend lists the languages its model speaks (SUPPORTED_LANGUAGES); run_pipeline expands every dataset
+# into its splits from the registry below and keeps the splits in a supported language, so adding a
+# dataset or a language never touches a backend.
+# SUPPORTED_LANGUAGES="en zh fr" # default (empty): every language
+# DATASETS="seed_tts cv3 minimax" # optional, to leave a whole dataset out (default: all but OPT_IN_DATASETS)
+# Backends with per-model or per-mode rules override supports_language() (calling
+# language_supported for the SUPPORTED_LANGUAGES check). A run can be narrowed further with ONLY_DATASETS
+# (registry names, or the repo names) and ONLY_LANGS.
+#
+# Registry: dataset_repo <name> is the dataset repo; dataset_splits <name> its "config/split" entries. The
+# split doubles as the language code (Qwen3-ASR hint for stage 2, and the TTS language for backends that
+# take one); "config/split:lang" names the language when they differ. `case`, not associative arrays, so
+# this runs on macOS bash 3.2. Escape hatch for a one-off set: append raw
+# "config split asr_language [dataset_path]" lines to DATASET_CONFIGS before run_pipeline.
+DATASET_NAMES="seed_tts cv3 minimax neyshekar ztts2_mini_clean ztts2_mini_itw" # every dataset, in expansion order
+dataset_repo() {
+ case "$1" in
+ seed_tts) echo "${DEFAULT_DATASET_PATH}" ;;
+ cv3) echo "${CV3_EVAL_PATH}" ;;
+ minimax) echo "${MINIMAX_EVAL_PATH}" ;;
+ neyshekar) echo "${NEYSHEKAR_EVAL_PATH}" ;;
+ ztts2_mini_clean|ztts2_mini_itw) echo "${ZTTS2_EVAL_MINI_PATH}" ;;
+ esac
+}
+dataset_splits() {
+ case "$1" in
+ seed_tts) printf 'tts/%s ' en zh ;;
+ cv3) printf 'zero_shot/%s ' en zh ja ko de fr es it ru ;;
+ # MiniMax multilingual (100 sentences/language): every language but uk (Qwen3-ASR has no Ukrainian).
+ minimax) printf 'tts/%s ' en zh yue ja ko fr de es it pt ru nl pl cs ro el fi tr ar hi id th vi ;;
+ neyshekar) printf 'tts/%s ' fa ;;
+ # ZTTS2-Eval Mini: one repo, two panels run (and reported) as separate datasets. Clean (FLEURS-R,
+ # 35 splits) and In-The-Wild (VoxBlink2, 20 splits). Tagalog is `fil` for both (the ITW split is `tl`).
+ ztts2_mini_clean) printf 'clean/%s ' en zh de es fr it ja ko ru pt ar hi tr pl id th fil nl vi cs sv da \
+ fi el hu ro uk nb he bg hr sk ca ms fa ;;
+ ztts2_mini_itw) printf 'in_the_wild/%s ' en zh de es fr it ja ko ru pt ar hi id tr tl:fil pl th nl uk vi ;;
+ esac
+}
+# Opt-in datasets: wired in, but not run by default (not on the leaderboard yet); a run includes one only
+# when ONLY_DATASETS names it (by registry name, or ztts2_eval_mini for both ZTTS2 panels), e.g.
+# ONLY_DATASETS="ztts2_mini_itw".
+OPT_IN_DATASETS="ztts2_mini_itw"
+DATASETS=""
+for _name in ${DATASET_NAMES}; do
+ [[ " ${OPT_IN_DATASETS} " == *" ${_name} "* ]] || DATASETS+="${DATASETS:+ }${_name}"
+done
+unset _name
+SUPPORTED_LANGUAGES=""
+DATASET_CONFIGS=()
+
+# expand_datasets → appends one "config split asr_language dataset_path name" line to DATASET_CONFIGS per split of
+# every dataset in DATASETS (registry order), plus any opt-in dataset ONLY_DATASETS names. Language gating
+# happens per model, in run_pipeline.
+expand_datasets() {
+ local name entry config split lang
+ for name in ${DATASETS}; do
+ [[ " ${DATASET_NAMES} " == *" ${name} "* ]] ||
+ { echo "ERROR: unknown dataset '${name}' in DATASETS (known: ${DATASET_NAMES})." >&2; exit 1; }
+ done
+ for name in ${DATASET_NAMES}; do
+ if [[ " ${DATASETS} " != *" ${name} "* ]]; then
+ [[ " ${OPT_IN_DATASETS} " == *" ${name} "* ]] || continue
+ [[ " ${ONLY_DATASETS} " == *" ${name} "* || " ${ONLY_DATASETS} " == *" $(basename "$(dataset_repo "${name}")") "* ]] || continue
+ fi
+ for entry in $(dataset_splits "${name}"); do
+ config="${entry%%/*}"; split="${entry#*/}"; lang="${split#*:}"; split="${split%%:*}"
+ DATASET_CONFIGS+=("${config} ${split} ${lang} $(dataset_repo "${name}") ${name}")
+ done
+ done
+}
utmos_language() { [[ " ${UTMOS_LANGS} " == *" $1 "* ]]; }
+# ZTTS2-Eval Mini lines are transcribed with ZTTS2-Eval's ASR choice (transcribe.py --asr_profile ztts2:
+# Whisper-large-v3 / Qwen3-ASR routed per language); every other dataset keeps Qwen3-ASR.
+asr_profile() { if [[ "${DATASET_PATH##*/}" == "ztts2_eval_mini" ]]; then echo ztts2; else echo leaderboard; fi; }
stage_enabled() { [[ " ${STAGES} " == *" $1 "* ]]; }
# ── Injection helpers ────────────────────────────────────────────────────────
@@ -130,21 +202,29 @@ inject_dir() {
# keeping any PYTHONPATH the image already sets.
SCRIPTS_PYTHONPATH='export PYTHONPATH=/app/scripts${PYTHONPATH:+:${PYTHONPATH}} &&'
+# Snippet pinning Hub model downloads in the job (every stage): scripts/hf_pin/sitecustomize.py, first
+# on PYTHONPATH, maps a download of a repo listed in model_revisions.json at `main` to its pinned
+# commit and logs `[hf-pin] UNPINNED <repo>` for unlisted ones (HF_PIN_STRICT=true refuses them).
+# Maintain the list with scripts/pin_revisions.py.
+HF_PIN_STRICT="${HF_PIN_STRICT:-false}"
+HF_PIN_INJECT="$(inject_cmd_gz "${REPO_ROOT}/scripts/hf_pin/sitecustomize.py" /app/hf_pin/sitecustomize.py) $(inject_cmd_gz "${REPO_ROOT}/model_revisions.json" /app/hf_pin/model_revisions.json) export HF_PIN_STRICT=${HF_PIN_STRICT} PYTHONPATH=/app/hf_pin\${PYTHONPATH:+:\${PYTHONPATH}} &&"
+
# inject_run_eval → `... &&` snippet recreating the sourcing backend's run_eval.py at
-# /app/<backend>/ plus the shared scripts/run_eval_utils.py it imports, on PYTHONPATH. Backends set
-# RUN_EVAL_INJECT="$(inject_run_eval)".
+# /app/<backend>/ plus the shared scripts/run_eval_utils.py it imports, on PYTHONPATH, with the Hub
+# downloads pinned (HF_PIN_INJECT). Backends set RUN_EVAL_INJECT="$(inject_run_eval)".
inject_run_eval() {
- echo "$(inject_cmd "${BACKEND_DIR}/run_eval.py" "/app/$(basename "${BACKEND_DIR}")/run_eval.py")" \
+ echo "${HF_PIN_INJECT}" \
+ "$(inject_cmd "${BACKEND_DIR}/run_eval.py" "/app/$(basename "${BACKEND_DIR}")/run_eval.py")" \
"$(inject_cmd "${REPO_ROOT}/scripts/run_eval_utils.py" /app/scripts/run_eval_utils.py)" \
"${SCRIPTS_PYTHONPATH}"
}
# Shared scorer-stage injects (transcribe.py / score_similarity.py live in transformers/).
-TRANSCRIBE_INJECT="$(inject_cmd "${REPO_ROOT}/transformers/transcribe.py" /app/transformers/transcribe.py)"
-SIM_INJECT="$(inject_cmd "${REPO_ROOT}/transformers/score_similarity.py" /app/transformers/score_similarity.py)"
-UTMOS_INJECT="$(inject_cmd "${REPO_ROOT}/transformers/score_utmos.py" /app/transformers/score_utmos.py)"
+TRANSCRIBE_INJECT="${HF_PIN_INJECT} $(inject_cmd "${REPO_ROOT}/transformers/transcribe.py" /app/transformers/transcribe.py)"
+SIM_INJECT="${HF_PIN_INJECT} $(inject_cmd "${REPO_ROOT}/transformers/score_similarity.py" /app/transformers/score_similarity.py)"
+UTMOS_INJECT="${HF_PIN_INJECT} $(inject_cmd "${REPO_ROOT}/transformers/score_utmos.py" /app/transformers/score_utmos.py)"
-KOMOS_INJECT="$(inject_cmd "${REPO_ROOT}/transformers/score_komos.py" /app/transformers/score_komos.py)"
+KOMOS_INJECT="${HF_PIN_INJECT} $(inject_cmd "${REPO_ROOT}/transformers/score_komos.py" /app/transformers/score_komos.py)"
# ── Default hooks (backends override as needed) ─────────────────────────────
# voice_clone_mode [suffix_prefix] — sets CLONE / MODE_SUFFIX / VOICE_CLONE_FLAG from VOICE_CLONE.
@@ -169,10 +249,11 @@ resolve_mode() {
}
# Whether the CURRENT model (MODEL_CFG/MODEL_ID, already resolved) can synthesize $1, the dataset's
-# language code. Default: assume yes. Backends whose model list mixes languages — e.g. an
-# English-only checkpoint alongside a multilingual one — override this so incompatible
-# (model, dataset) combos are skipped instead of burning a GPU job on garbage audio.
-supports_language() { return 0; }
+# language code. Default: it is in SUPPORTED_LANGUAGES (empty = every language). Backends whose model
+# list mixes languages — e.g. an English-only checkpoint alongside a multilingual one — override this so
+# incompatible (model, dataset) combos are skipped instead of burning a GPU job on garbage audio.
+language_supported() { [[ -z "${SUPPORTED_LANGUAGES// }" || " ${SUPPORTED_LANGUAGES} " == *" $1 "* ]]; }
+supports_language() { language_supported "$1"; }
# ── Transient-infra retry around a stage's `hf jobs run` ────────────────────
# Parallel chains advance in lockstep, so N jobs pull the SAME Space image within seconds and the
@@ -220,10 +301,10 @@ wait_for_bucket() {
local rel="${BUCKET_MANIFEST#/results/}" deadline=$((SECONDS + BUCKET_WAIT_TIMEOUT)) want have
while (( SECONDS < deadline )); do
want=$(hf buckets cp "hf://buckets/${RESULTS_BUCKET}/${rel}" - 2>/dev/null |
- grep -oE '"(audio|prompt_audio)_filepath": "[^"]+"' | cut -d'"' -f4 | sort -u)
+ grep -oE '"(audio|prompt_audio)_filepath": "[^"]+"' | cut -d'"' -f4 | sort -u) || true
if [[ -n "${want}" ]]; then
have=$(hf buckets list "${RESULTS_BUCKET}/${MODEL_FOLDER}" -R 2>/dev/null |
- awk '{print $NF}' | sed "s|^${MODEL_FOLDER}/||" | sort -u)
+ awk '{print $NF}' | sed "s|^${MODEL_FOLDER}/||" | sort -u) || true
[[ -z "$(comm -23 <(echo "${want}") <(echo "${have}"))" ]] && return 0
fi
sleep 30
@@ -232,6 +313,26 @@ wait_for_bucket() {
return 1
}
+# ── Wait for stage-2 transcripts before SIM ─────────────────────────────────
+# SIM forks the manifest (pred_text included), and a transcribe job's in-place writes can reach the
+# bucket after `hf jobs run` returns: a SIM job started then forks the untranscribed copy, which
+# scores as 100% WER. Poll until the bucket manifest is transcribed, by the rule scoring uses
+# (normalizer.eval_utils.untranscribed_fraction): stage 1 writes `"pred_text": ""` on every row and
+# transcribe.py stamps each row it fills with `asr_model`; at most 20% empty, unstamped rows.
+wait_for_transcripts() {
+ local rel="${BUCKET_MANIFEST#/results/}" deadline=$((SECONDS + BUCKET_WAIT_TIMEOUT))
+ while (( SECONDS < deadline )); do
+ hf buckets cp "hf://buckets/${RESULTS_BUCKET}/${rel}" - 2>/dev/null | python3 -c '
+import json, sys
+rows = [json.loads(line) for line in sys.stdin if line.strip()]
+missing = sum(1 for r in rows if not (r.get("pred_text") or "").strip() and "asr_model" not in r)
+sys.exit(0 if rows and missing <= 0.2 * len(rows) else 1)' && return 0
+ sleep 30
+ done
+ echo "── ${rel}: transcripts still not in the bucket after ${BUCKET_WAIT_TIMEOUT}s; giving up before SIM."
+ return 1
+}
+
# ── Shared stages 2-4 (identical for every backend) ─────────────────────────
transcribe_stage() {
local ASR_OVERWRITE_FLAG=""
@@ -241,19 +342,22 @@ transcribe_stage() {
--volume "hf://buckets/${RESULTS_BUCKET}:/results" "${SCORER_IMAGE}" \
bash -c "
${TRANSCRIBE_INJECT}
- python /app/transformers/transcribe.py --manifest_path=${BUCKET_MANIFEST} --asr_language=${ASR_LANG} --asr_batch_size=${ASR_BATCH_SIZE} --max_audio_seconds=${MAX_AUDIO_SECONDS} --device=cuda:0${ASR_OVERWRITE_FLAG}
+ python /app/transformers/transcribe.py --manifest_path=${BUCKET_MANIFEST} --asr_language=${ASR_LANG} --asr_batch_size=${ASR_BATCH_SIZE} --max_audio_seconds=${MAX_AUDIO_SECONDS} --device=cuda:0 --asr_profile=$(asr_profile)${ASR_OVERWRITE_FLAG}
"
}
sim_stage() {
local SIM_OVERWRITE_FLAG=""
{ [[ "${SIM_OVERWRITE}" == "true" ]] || stage_enabled generate; } && SIM_OVERWRITE_FLAG=" --overwrite"
+ # In-job backstop for the bucket gate: the job's mount can still serve the untranscribed copy.
+ local SIM_WAIT_FLAG=""
+ stage_enabled transcribe && SIM_WAIT_FLAG=" --wait_for_transcripts=${BUCKET_WAIT_TIMEOUT}"
hf jobs run \
--flavor "${SIM_FLAVOR}" --timeout 4h --secrets HF_TOKEN \
--env PYTORCH_CUDA_ALLOC_CONF="expandable_segments:True" ${NAMESPACE_ARG} \
--volume "hf://buckets/${RESULTS_BUCKET}:/results" "${SCORER_IMAGE}" \
bash -c "
${SIM_INJECT}
- python /app/transformers/score_similarity.py --manifest_path=${BUCKET_MANIFEST} --sim_backend=${SIM_BACKEND} --batch_size=${SIM_BATCH_SIZE} --max_audio_seconds=${MAX_AUDIO_SECONDS} --device=cuda:0${SIM_OVERWRITE_FLAG}
+ python /app/transformers/score_similarity.py --manifest_path=${BUCKET_MANIFEST} --sim_backend=${SIM_BACKEND} --batch_size=${SIM_BATCH_SIZE} --max_audio_seconds=${MAX_AUDIO_SECONDS} --device=cuda:0${SIM_OVERWRITE_FLAG}${SIM_WAIT_FLAG}
"
}
utmos_stage() {
@@ -381,6 +485,7 @@ run_pipeline() {
TTS_IMAGE="hf.co/spaces/${TTS_SPACE}"
LOG_DIR="${BACKEND_DIR}/job_logs"; mkdir -p "${LOG_DIR}"
NAMESPACE_ARG=""; [ -n "$ORG_NAME" ] && NAMESPACE_ARG="--namespace ${ORG_NAME}"
+ expand_datasets
local model_cfg cfg
for model_cfg in "${MODEL_CONFIGS[@]}"; do
@@ -404,30 +509,32 @@ run_pipeline() {
# LANGS + MANIFEST_NAMES are parallel to PIDS: _wait_and_score groups the finished combos
# by language so each is scored with its own normalizer.
PIDS=(); TAGS=(); CHAIN_LOGS=(); LANGS=(); MANIFEST_NAMES=()
+ local -a UNSUPPORTED=()
for cfg in "${DATASET_CONFIGS[@]}"; do
- local CFG_DATASET_PATH
- read -r DATASET SPLIT ASR_LANG CFG_DATASET_PATH <<< "$cfg"
+ local CFG_DATASET_PATH DATASET_NAME
+ # DATASET_NAME: the registry name (5th field; empty for an ad-hoc DATASET_CONFIGS line).
+ read -r DATASET SPLIT ASR_LANG CFG_DATASET_PATH DATASET_NAME <<< "$cfg"
# Per-combo dataset repo (4th field, else the default). DATASET_SAFE feeds the manifest
# name, so two datasets that share a config/split name still land in distinct manifests.
DATASET_PATH="${CFG_DATASET_PATH:-${DEFAULT_DATASET_PATH}}"
DATASET_SAFE="${DATASET_PATH//\//-}"
- # Caller-requested subset (ONLY_DATASETS / ONLY_LANGS), checked before supports_language so
- # the "not supported" message is never printed for a combo the caller simply skipped.
- if [[ -n "${ONLY_DATASETS}" && " ${ONLY_DATASETS} " != *" ${DATASET_PATH##*/} "* ]]; then
- echo "Skipping ${DATASET_PATH##*/}/${DATASET}/${SPLIT}: not in ONLY_DATASETS='${ONLY_DATASETS}'."
- continue
- fi
- if [[ -n "${ONLY_LANGS}" && " ${ONLY_LANGS} " != *" ${ASR_LANG} "* ]]; then
- echo "Skipping ${DATASET}/${SPLIT}: not in ONLY_LANGS='${ONLY_LANGS}'."
+ # Caller-requested subset (ONLY_DATASETS: registry or repo names; ONLY_LANGS), skipped silently.
+ if [[ -n "${ONLY_DATASETS}" && " ${ONLY_DATASETS} " != *" ${DATASET_PATH##*/} "* &&
+ ( -z "${DATASET_NAME}" || " ${ONLY_DATASETS} " != *" ${DATASET_NAME} "* ) ]]; then
continue
fi
+ [[ -n "${ONLY_LANGS}" && " ${ONLY_LANGS} " != *" ${ASR_LANG} "* ]] && continue
# Skip combos the model can't do at all — synthesizing Chinese with an English-only
# checkpoint produces English-phoneme gibberish and a meaningless (>100%) CER.
if ! supports_language "${ASR_LANG}"; then
- echo "Skipping ${DATASET}/${SPLIT}: ${MODEL_ID} does not support language '${ASR_LANG}'."
+ [[ " ${UNSUPPORTED[*]} " == *" ${ASR_LANG} "* ]] || UNSUPPORTED+=("${ASR_LANG}")
continue
fi
BUCKET_MANIFEST="/results/${MODEL_FOLDER}/MODEL_${MODEL_SAFE}_DATASET_${DATASET_SAFE}_${DATASET}_${SPLIT}${MODE_SUFFIX}.jsonl"
+ if [[ "${DRY_RUN}" == "true" ]]; then
+ echo "Would submit: ${DATASET_PATH##*/}/${DATASET}/${SPLIT} (language ${ASR_LANG}) -> $(basename "${BUCKET_MANIFEST}")"
+ continue
+ fi
# The dataset repo name is in the log name: Seed-TTS and MiniMax share the `tts` config and
# split names, and their combos run in parallel.
local CHAIN_LOG="${LOG_DIR}/${MODEL_SAFE}_${DATASET_PATH##*/}_${DATASET}_${SPLIT}${MODE_SUFFIX}.log"
@@ -439,7 +546,11 @@ run_pipeline() {
set -e
stage_enabled generate && run_stage generate_stage && wait_for_bucket
stage_enabled transcribe && run_stage transcribe_stage
- stage_enabled sim && [[ "${CLONE}" == "true" ]] && run_stage sim_stage
+ # Not an `&&` list: under `set -e` a failing wait_for_transcripts must end the chain.
+ if stage_enabled sim && [[ "${CLONE}" == "true" ]]; then
+ if stage_enabled transcribe; then wait_for_transcripts; fi
+ run_stage sim_stage
+ fi
stage_enabled utmos && utmos_language "${ASR_LANG}" && run_stage utmos_stage
stage_enabled komos && [[ "${ASR_LANG}" == ko ]] && run_stage komos_stage
true # ensure subshell exit status is 0 when the last `&&` chain is a skipped stage
@@ -447,6 +558,11 @@ run_pipeline() {
PIDS+=("$!"); TAGS+=("${DATASET_PATH##*/}/${DATASET}/${SPLIT}"); CHAIN_LOGS+=("${CHAIN_LOG}")
LANGS+=("${ASR_LANG}"); MANIFEST_NAMES+=("$(basename "${BUCKET_MANIFEST}")")
done
+ [[ ${#UNSUPPORTED[@]} -gt 0 ]] && echo "Skipped the splits in languages ${MODEL_ID} does not support: ${UNSUPPORTED[*]}"
+ if [[ "${DRY_RUN}" == "true" ]]; then
+ echo "DRY_RUN=true: nothing submitted."
+ continue
+ fi
if [ -n "$ORG_NAME" ]; then
echo "For live status see: https://huggingface.co/organizations/${ORG_NAME}/settings/jobs"
@@ -454,6 +570,9 @@ run_pipeline() {
echo "For live status see: https://huggingface.co/settings/jobs"
fi
- _wait_and_score || true # keep going to the next model on failure
+ _wait_and_score || PIPELINE_FAILED=1 # keep going to the next model on failure
done
+ # Exit status for callers (e.g. scripts/schedule_runs.py): non-zero if any model's chains or
+ # scoring failed, so a partly failed run is not recorded as done.
+ return "${PIPELINE_FAILED:-0}"
}
diff --git a/scyllasband/submit_jobs.sh b/scyllasband/submit_jobs.sh
index 754e936..0d97cb7 100644
--- a/scyllasband/submit_jobs.sh
+++ b/scyllasband/submit_jobs.sh
@@ -14,8 +14,7 @@ RUN_EVAL_INJECT="$(inject_run_eval)"
# ── Languages ────────────────────────────────────────────────────────────────
# Six languages, every voice speaks all of them; `en` is the voice's own English dialect.
-SCYLLASBAND_LANGUAGES="en es it fr de vi"
-supports_language() { [[ " ${SCYLLASBAND_LANGUAGES} " == *" $1 "* ]]; }
+SUPPORTED_LANGUAGES="en es it fr de vi"
# One fixed built-in voice for every split (tuesday: British English).
SCYLLASBAND_VOICE="${SCYLLASBAND_VOICE:-tuesday}"
@@ -39,23 +38,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" ────────────────────
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot fr fr ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot de de ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot it it ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- # MiniMax multilingual (100 sentences/language): the languages the model supports.
- "tts en en ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts vi vi ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
MODEL_CONFIGS=("spybyscript/scyllasband")
[[ $# -gt 0 ]] && MODEL_CONFIGS=("$@")
diff --git a/steertts-edge/submit_jobs.sh b/steertts-edge/submit_jobs.sh
index d116e7c..982dd7d 100755
--- a/steertts-edge/submit_jobs.sh
+++ b/steertts-edge/submit_jobs.sh
@@ -12,7 +12,7 @@ DEFAULT_STAGES="generate transcribe utmos"
SUPPORTS_VOICE_CLONE=false
STEERTTS_REVISION="${STEERTTS_REVISION:-v2.1.0}" # pinned release of the model repo
RUN_EVAL_INJECT="$(inject_run_eval)"
-supports_language() { [[ "$1" == "en" ]]; }
+SUPPORTED_LANGUAGES="en"
# ── Stage 1: TTS generation (one sample at a time — no batched API) ──────────
generate_stage() {
@@ -35,14 +35,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" ─────────────────────
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${CV3_EVAL_PATH}"
- # MiniMax multilingual (100 sentences/language): English only for SteerTTS.
- "tts en en ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
MODEL_CONFIGS=("WhissleAI/steer-tts-edge")
[[ $# -gt 0 ]] && MODEL_CONFIGS=("$@")
diff --git a/steertts/submit_jobs.sh b/steertts/submit_jobs.sh
index 218e60c..d0325cf 100755
--- a/steertts/submit_jobs.sh
+++ b/steertts/submit_jobs.sh
@@ -12,7 +12,7 @@ DEFAULT_STAGES="generate transcribe sim utmos" # sim runs only with VOICE_
SUPPORTS_VOICE_CLONE=true
STEERTTS_REVISION="${STEERTTS_REVISION:-v1.4.0}" # pinned release of the model repo
RUN_EVAL_INJECT="$(inject_run_eval)"
-supports_language() { [[ "$1" == "en" ]]; }
+SUPPORTED_LANGUAGES="en"
# ── Stage 1: TTS generation (one sample at a time — no batched API) ──────────
generate_stage() {
@@ -35,14 +35,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" ─────────────────────
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${CV3_EVAL_PATH}"
- # MiniMax multilingual (100 sentences/language): English only for SteerTTS.
- "tts en en ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id" (CLI args override) ───────────────────────────────────
MODEL_CONFIGS=("WhissleAI/steer-tts")
[[ $# -gt 0 ]] && MODEL_CONFIGS=("$@")
diff --git a/supertonic/submit_jobs.sh b/supertonic/submit_jobs.sh
index 2702386..4236f72 100755
--- a/supertonic/submit_jobs.sh
+++ b/supertonic/submit_jobs.sh
@@ -37,42 +37,7 @@ generate_stage() {
# ── Languages this backend can select ────────────────────────────────────────
# The language codes from the model card's front-matter. No Chinese, so zh splits are skipped
# (run_eval.py's --lang 'na' = language-agnostic is a fallback, not Chinese support).
-SUPERTONIC_LANGUAGES="en ko ja ar bg cs da de el es et fi fr hi hr hu id it lt lv nl pl pt ro ru sk sl sv tr uk vi"
-supports_language() { [[ " ${SUPERTONIC_LANGUAGES} " == *" $1 "* ]]; }
-
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ja ja ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ko ko ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot de de ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "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 ja ja ${MINIMAX_EVAL_PATH}"
- "tts ko ko ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "tts ru ru ${MINIMAX_EVAL_PATH}"
- "tts nl nl ${MINIMAX_EVAL_PATH}"
- "tts pl pl ${MINIMAX_EVAL_PATH}"
- "tts cs cs ${MINIMAX_EVAL_PATH}"
- "tts ro ro ${MINIMAX_EVAL_PATH}"
- "tts el el ${MINIMAX_EVAL_PATH}"
- "tts fi fi ${MINIMAX_EVAL_PATH}"
- "tts tr tr ${MINIMAX_EVAL_PATH}"
- "tts ar ar ${MINIMAX_EVAL_PATH}"
- "tts hi hi ${MINIMAX_EVAL_PATH}"
- "tts id id ${MINIMAX_EVAL_PATH}"
- "tts vi vi ${MINIMAX_EVAL_PATH}"
-)
+SUPPORTED_LANGUAGES="en ko ja ar bg cs da de el es et fi fr hi hr hu id it lt lv nl pl pt ro ru sk sl sv tr uk vi"
# ── Models: "model_id batch_size voice" (CLI args override) ──────────────────
MODEL_CONFIGS=("Supertone/supertonic-3 32 M1")
diff --git a/tiny-voca/submit_jobs.sh b/tiny-voca/submit_jobs.sh
index 1546c68..905376f 100755
--- a/tiny-voca/submit_jobs.sh
+++ b/tiny-voca/submit_jobs.sh
@@ -33,7 +33,7 @@ resolve_mode() {
}
# English only (American English phonemizer).
-supports_language() { [[ "$1" == "en" ]]; }
+SUPPORTED_LANGUAGES="en"
# ── Stage 1: TTS generation ─────────────────────────────────────────────────
# CPU on the host CPU of the h200 flavor; --device=cpu is enforced inside run_eval.py.
@@ -60,13 +60,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" ────────────────────
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "tts en en ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id voice" (CLI args override) ────────────────────────────
MODEL_CONFIGS=(
"n4ze3m/tiny-voca F2"
diff --git a/transformers/score_similarity.py b/transformers/score_similarity.py
index d767625..87e1780 100644
--- a/transformers/score_similarity.py
+++ b/transformers/score_similarity.py
@@ -24,6 +24,7 @@ Resumable: a row is re-scored unless it already has a numeric `sim` from the req
import argparse
import json
import os
+import time
import torch
import torch.nn as nn
@@ -445,10 +446,26 @@ def main(args):
torch_dtype = getattr(torch, args.dtype)
# ── Read manifest ────────────────────────────────────────────────────────
- with open(args.manifest_path, encoding="utf-8") as f:
- entries = [json.loads(line) for line in f if line.strip()]
- if not entries:
- raise ValueError(f"No entries found in manifest {args.manifest_path}")
+ # The fork copies `pred_text` from the source manifest, so with --wait_for_transcripts the source
+ # must be transcribed first: a bucket-mounted manifest can lag behind the transcribe job's writes,
+ # and a fork built from the stale copy would score as 100% WER. Re-read until the rows are
+ # transcribed (see below), else fail rather than fork it.
+ deadline = time.monotonic() + args.wait_for_transcripts
+ while True:
+ with open(args.manifest_path, encoding="utf-8") as f:
+ entries = [json.loads(line) for line in f if line.strip()]
+ if not entries:
+ raise ValueError(f"No entries found in manifest {args.manifest_path}")
+ # Same rule as normalizer.eval_utils.untranscribed_fraction: stage 1 writes `"pred_text": ""`,
+ # transcribe.py stamps each row it fills with `asr_model`; allow up to 20% empty, unstamped rows.
+ missing = sum(1 for e in entries if not (e.get("pred_text") or "").strip() and "asr_model" not in e)
+ if not args.wait_for_transcripts or missing <= 0.2 * len(entries):
+ break
+ if time.monotonic() > deadline:
+ raise RuntimeError(f"{missing}/{len(entries)} rows of {args.manifest_path} still have no transcript after "
+ f"{args.wait_for_transcripts:.0f}s; run the transcribe stage first")
+ print(f" {missing}/{len(entries)} rows have no pred_text yet (transcripts not visible); re-reading in 30s")
+ time.sleep(30)
print(f"Scoring speaker similarity for {len(entries)} samples from {args.manifest_path}")
out_path = args.output_manifest_path or sim_manifest_path(args.manifest_path, args.sim_backend)
@@ -653,6 +670,13 @@ if __name__ == "__main__":
"Bounds GPU memory: WavLM OOMs on very long/runaway clips, and a speaker embedding "
"needs only a few seconds of audio.",
)
+ parser.add_argument(
+ "--wait_for_transcripts",
+ type=float,
+ default=0,
+ help="Seconds to wait for every source row to have a pred_text before forking the manifest (0 = don't "
+ "check). The pipeline sets it when the transcribe stage ran just before.",
+ )
parser.add_argument("--device", type=str, default="cuda", help="'cuda', 'cpu', or 'cuda:0'.")
parser.add_argument("--dtype", type=str, default="float32", help="Model dtype, e.g. 'float32'.")
args = parser.parse_args()
diff --git a/transformers/submit_jobs.sh b/transformers/submit_jobs.sh
index bbf5325..1698100 100755
--- a/transformers/submit_jobs.sh
+++ b/transformers/submit_jobs.sh
@@ -52,8 +52,8 @@ generate_stage() {
"
}
-# ── Languages each model can speak (by model id). run_pipeline skips every DATASET_CONFIGS combo whose
-# language the model being run does not support, so the one list below serves every model.
+# ── Languages each model can speak (by model id): the per-model SUPPORTED_LANGUAGES. run_pipeline skips every
+# split whose language the model being run does not support, so the one list below serves every model.
TRANSFORMERS_DEFAULT_LANGUAGES="en" # any model not listed
declare -A TRANSFORMERS_LANGUAGES=(
["vibevoice/VibeVoice-1.5B-hf"]="en zh"
@@ -68,45 +68,6 @@ supports_language() {
[[ " ${TRANSFORMERS_LANGUAGES[${MODEL_ID}]:-${TRANSFORMERS_DEFAULT_LANGUAGES}} " == *" $1 "* ]]
}
-# ── Datasets: "config split asr_language [dataset_path]" — every split; supports_language picks per model ──
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH}"
- "zero_shot zh zh ${CV3_EVAL_PATH}"
- "zero_shot ja ja ${CV3_EVAL_PATH}"
- "zero_shot ko ko ${CV3_EVAL_PATH}"
- "zero_shot fr fr ${CV3_EVAL_PATH}"
- "zero_shot de de ${CV3_EVAL_PATH}"
- "zero_shot es es ${CV3_EVAL_PATH}"
- "zero_shot it it ${CV3_EVAL_PATH}"
- "zero_shot ru ru ${CV3_EVAL_PATH}"
- "tts en en ${MINIMAX_EVAL_PATH}"
- "tts zh zh ${MINIMAX_EVAL_PATH}"
- "tts yue yue ${MINIMAX_EVAL_PATH}"
- "tts ja ja ${MINIMAX_EVAL_PATH}"
- "tts ko ko ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "tts ru ru ${MINIMAX_EVAL_PATH}"
- "tts nl nl ${MINIMAX_EVAL_PATH}"
- "tts pl pl ${MINIMAX_EVAL_PATH}"
- "tts cs cs ${MINIMAX_EVAL_PATH}"
- "tts ro ro ${MINIMAX_EVAL_PATH}"
- "tts el el ${MINIMAX_EVAL_PATH}"
- "tts fi fi ${MINIMAX_EVAL_PATH}"
- "tts tr tr ${MINIMAX_EVAL_PATH}"
- "tts ar ar ${MINIMAX_EVAL_PATH}"
- "tts hi hi ${MINIMAX_EVAL_PATH}"
- "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) ──
MODEL_CONFIGS=(
# "microsoft/speecht5_tts 32 "
diff --git a/transformers/transcribe.py b/transformers/transcribe.py
index 142e7b2..d6bfc9a 100644
--- a/transformers/transcribe.py
+++ b/transformers/transcribe.py
@@ -3,22 +3,61 @@ ASR transcription for the Open TTS Leaderboard (stage 2).
Fills `pred_text` in a stage-1 manifest with Qwen3-ASR, in place and resumably. The ASR call
mirrors `transcribe()` in `transformers/run_eval.py`.
+
+ZTTS2-Eval Mini panel manifests use `--asr_profile ztts2` instead: ZTTS2-Eval's ASR, i.e. Whisper-large-v3 or
+Qwen3-ASR routed per language as ZTTS2-Eval routes them, at pinned revisions, with its repetition-loop guard. Each
+row it transcribes is stamped with `asr_profile` / `asr_model`.
"""
import argparse
import json
import os
+import zlib
import torch
from transformers.audio_utils import load_audio
-from transformers import AutoModelForMultimodalLM, AutoProcessor
+from transformers import AutoModelForMultimodalLM, AutoProcessor, WhisperForConditionalGeneration
DEFAULT_ASR_MODEL_ID = "Qwen/Qwen3-ASR-1.7B-hf"
+# ── ZTTS2-Eval profile: ZTTS2-Eval's ASR (utils/benchmark.py, scripts/score/run_wer.py) ───────────
+ZTTS2_LANGS = {"en", "zh", "de", "es", "fr", "it", "ja", "ko", "ru", "pt", "ar", "hi", "tr", "pl", "id", "th",
+ "fil", "tl", "nl", "vi", "cs", "sv", "da", "fi", "el", "hu", "ro", "uk", "nb", "he", "bg", "hr",
+ "sk", "ca", "ms", "fa"}
+# Divergence from ZTTS2-Eval's own routing: we route to Qwen3-ASR every ZTTS2 language that already
+# has Qwen3-ASR coverage on this leaderboard's other datasets (Seed-TTS / CV3 / MiniMax / Neyshekar),
+# so the same ASR scores a given language wherever it appears. The remaining ZTTS2 languages go to
+# Whisper. Keeping Qwen3 on exactly the languages our other panels use avoids silently mixing two
+# ASR systems' per-language accuracy, at the cost of diverging from ZTTS2-Eval's published panels.
+ZTTS2_QWEN_LANGS = {"en", "zh", "de", "es", "fr", "it", "ja", "ko", "ru", "pt", "ar", "hi", "tr", "pl",
+ "id", "th", "nl", "vi", "cs", "fi", "el", "ro", "fa"}
+# Pass the language hint for every ZTTS2 Qwen3-routed language — matches how the leaderboard
+# profile invokes Qwen3-ASR for CV3 / MiniMax / Neyshekar (`language = args.asr_language or None`),
+# so the same (language, ASR, hint) triple scores a given language wherever it appears here.
+ZTTS2_QWEN_HINT_LANGS = ZTTS2_QWEN_LANGS
+ZTTS2_QWEN_MODEL = ("Qwen/Qwen3-ASR-1.7B-hf", "bcd2b5b7f32b480ab5790554cfa8347f246a14f3")
+ZTTS2_WHISPER_MODEL = ("openai/whisper-large-v3", "06f233fe06e710322aca913c1bc4249a0d71fce1")
+ZTTS2_WHISPER_CODE = {"fil": "tl", "nb": "no"} # else the code itself
+# Whisper's 448-token decoder window minus its 4 prompt tokens (ZTTS2's vLLM greedy pass is uncapped).
+ZTTS2_MAX_NEW_TOKENS = 444
+# Repetition-loop guard: a transcript of >= 60 UTF-8 bytes compressing > 2.4x is re-decoded with this.
+ZTTS2_LOOP_MIN_BYTES = 60
+ZTTS2_LOOP_RATIO = 2.4
+ZTTS2_RETRY_KWARGS = {"repetition_penalty": 1.2, "max_new_tokens": 256}
+
+
+def _degenerate(text):
+ """A repetition loop: the transcript compresses far more than natural text (run_wer.py `_degenerate`)."""
+ b = text.encode("utf-8")
+ return len(b) >= ZTTS2_LOOP_MIN_BYTES and len(b) / max(1, len(zlib.compress(b))) > ZTTS2_LOOP_RATIO
+
def main(args):
torch_dtype = getattr(torch, args.dtype)
+ ztts2 = args.asr_profile == "ztts2"
+ if ztts2 and args.asr_language not in ZTTS2_LANGS:
+ raise ValueError(f"--asr_profile ztts2 needs a ZTTS2-Eval language code, got {args.asr_language!r}")
# ── Read manifest ────────────────────────────────────────────────────────
with open(args.manifest_path, encoding="utf-8") as f:
@@ -37,11 +76,12 @@ def main(args):
return cand if os.path.exists(cand) else p
# ── Resume: decide what's left BEFORE paying for the ASR model ───────────
- # Only transcribe rows without a prediction (unless --overwrite). Checked before the model load
- # so re-running a finished split is ~free.
+ # Only transcribe rows without a prediction (unless --overwrite), or, under the ztts2 profile, rows
+ # transcribed by another one. Checked before the model load so re-running a finished split is ~free.
todo = list(range(len(entries)))
if not args.overwrite:
- todo = [i for i in todo if not entries[i].get("pred_text")]
+ todo = [i for i in todo
+ if not entries[i].get("pred_text") or (ztts2 and entries[i].get("asr_profile") != "ztts2")]
if len(todo) < len(entries):
print(f"Resuming: {len(entries) - len(todo)} already transcribed, {len(todo)} remaining.")
if not todo:
@@ -49,9 +89,17 @@ def main(args):
return
# ── ASR model ─────────────────────────────────────────────────────────────
- asr_processor = AutoProcessor.from_pretrained(args.asr_model_id)
- asr_model = AutoModelForMultimodalLM.from_pretrained(
- args.asr_model_id, dtype=torch_dtype, device_map=args.device
+ whisper = ztts2 and args.asr_language not in ZTTS2_QWEN_LANGS
+ backend = "whisper" if whisper else "qwen"
+ if whisper:
+ model_id, revision = ZTTS2_WHISPER_MODEL
+ elif ztts2:
+ model_id, revision = ZTTS2_QWEN_MODEL
+ else:
+ model_id, revision = args.asr_model_id, None
+ asr_processor = AutoProcessor.from_pretrained(model_id, revision=revision)
+ asr_model = (WhisperForConditionalGeneration if whisper else AutoModelForMultimodalLM).from_pretrained(
+ model_id, revision=revision, dtype=torch_dtype, device_map=args.device
)
asr_model.eval()
asr_sr = 16_000
@@ -60,23 +108,53 @@ def main(args):
):
asr_sr = asr_processor.feature_extractor.sampling_rate
+ if whisper:
+ language = ZTTS2_WHISPER_CODE.get(args.asr_language, args.asr_language)
+ elif ztts2:
+ language = args.asr_language if args.asr_language in ZTTS2_QWEN_HINT_LANGS else None
+ else:
+ language = args.asr_language or None # '' => None => Qwen3-ASR auto-detects
+ max_new_tokens = ZTTS2_MAX_NEW_TOKENS if ztts2 else args.asr_max_new_tokens
+ print(f"ASR: {model_id}@{revision or 'main'} ({backend}), language={language or 'auto'}")
+
# Cap clip length: a runaway generation padded into a batch can OOM the ASR encoder, and
# anything that long is degenerate and scores as an error anyway.
max_samples = int(args.max_audio_seconds * asr_sr) if args.max_audio_seconds > 0 else None
+ def generate(speech, **kw):
+ """Greedy transcripts of `speech` (a list of 16 kHz arrays); `kw` goes to `generate`."""
+ with torch.no_grad():
+ if whisper:
+ feats = asr_processor.feature_extractor(
+ speech, sampling_rate=asr_sr, return_tensors="pt"
+ ).input_features.to(asr_model.device, asr_model.dtype)
+ ids = asr_model.generate(feats, language=language, task="transcribe", do_sample=False,
+ num_beams=1, **kw)
+ return [t.strip() for t in asr_processor.batch_decode(ids, skip_special_tokens=True)]
+ inputs = asr_processor.apply_transcription_request(speech, language=[language] * len(speech)).to(
+ asr_model.device, asr_model.dtype
+ )
+ output_ids = asr_model.generate(**inputs, **kw)
+ generated_ids = output_ids[:, inputs["input_ids"].shape[1]:]
+ texts = asr_processor.decode(generated_ids, return_format="transcription_only")
+ return [t.strip() for t in texts] if ztts2 else texts
+
def transcribe(paths):
speech = [load_audio(path, sampling_rate=asr_sr) for path in paths]
if max_samples is not None:
speech = [s[:max_samples] for s in speech]
- lang = args.asr_language or None # '' => None => Qwen3-ASR auto-detects
- language = [lang] * len(speech)
- inputs = asr_processor.apply_transcription_request(speech, language=language).to(
- asr_model.device, asr_model.dtype
- )
- with torch.no_grad():
- output_ids = asr_model.generate(**inputs, max_new_tokens=args.asr_max_new_tokens)
- generated_ids = output_ids[:, inputs["input_ids"].shape[1]:]
- return asr_processor.decode(generated_ids, return_format="transcription_only")
+ texts = generate(speech, max_new_tokens=max_new_tokens)
+ if ztts2:
+ # ZTTS2-Eval's loop guard: re-decode only the looping transcripts, with a repetition penalty, and keep
+ # a retry that breaks the loop or at least shortens it.
+ loops = [i for i, text in enumerate(texts) if _degenerate(text)]
+ if loops:
+ retries = generate([speech[i] for i in loops], **ZTTS2_RETRY_KWARGS)
+ for i, retry in zip(loops, retries):
+ if not _degenerate(retry) or len(retry) < len(texts[i]):
+ print(f" loop guarded: {os.path.basename(paths[i])} ({len(texts[i])} -> {len(retry)} chars)")
+ texts[i] = retry
+ return texts
def rewrite_manifest():
with open(args.manifest_path, "w", encoding="utf-8") as f:
@@ -93,6 +171,11 @@ def main(args):
preds = transcribe([_resolve(entries[i]["audio_filepath"]) for i in idxs])
for i, pred in zip(idxs, preds):
entries[i]["pred_text"] = pred
+ # The stamp marks the row as transcribed (an empty pred_text alone does not: stage 1
+ # writes ""), which scoring and the SIM stage check before using the manifest.
+ entries[i]["asr_model"] = f"{model_id}@{revision or 'main'}"
+ if ztts2:
+ entries[i]["asr_profile"] = "ztts2"
rewrite_manifest() # persist progress so a crash doesn't lose completed chunks
if torch.cuda.is_available():
torch.cuda.empty_cache()
@@ -131,6 +214,13 @@ if __name__ == "__main__":
action="store_true",
help="Re-transcribe every row even if it already has a pred_text (default: resume, skip filled rows).",
)
+ parser.add_argument(
+ "--asr_profile",
+ choices=["leaderboard", "ztts2"],
+ default="leaderboard",
+ help="'ztts2': ZTTS2-Eval's ASR (Whisper-large-v3 / Qwen3-ASR routed per language, pinned, loop guard); "
+ "--asr_model_id is ignored.",
+ )
parser.add_argument("--device", type=str, default="cuda", help="'cuda', 'cpu', or 'cuda:0'.")
parser.add_argument("--dtype", type=str, default="bfloat16", help="ASR model dtype, e.g. 'bfloat16'.")
args = parser.parse_args()
diff --git a/vibevoice_realtime/submit_jobs.sh b/vibevoice_realtime/submit_jobs.sh
index c64b076..fde5ba4 100755
--- a/vibevoice_realtime/submit_jobs.sh
+++ b/vibevoice_realtime/submit_jobs.sh
@@ -14,7 +14,7 @@ RUN_EVAL_INJECT="$(inject_run_eval)"
declare -A VIBEVOICE_VOICES=( [en]=en-Carter_man [de]=de-Spk0_man [fr]=fr-Spk0_man [it]=it-Spk1_man \
[ja]=jp-Spk0_man [ko]=kr-Spk1_man [nl]=nl-Spk0_man [pl]=pl-Spk0_man \
[pt]=pt-Spk1_man [es]=sp-Spk1_man )
-supports_language() { [[ -n "${VIBEVOICE_VOICES[$1]:-}" ]]; }
+SUPPORTED_LANGUAGES="en de fr it ja ko nl pl pt es" # the VIBEVOICE_VOICES keys
# Setting VIBEVOICE_SPEAKER forces one preset for every combo — only sensible for a single-language run.
VIBEVOICE_SPEAKER="${VIBEVOICE_SPEAKER:-}"
@@ -43,29 +43,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot fr fr ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ja ja ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ko ko ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot de de ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot it it ${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 ja ja ${MINIMAX_EVAL_PATH}"
- "tts ko ko ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "tts nl nl ${MINIMAX_EVAL_PATH}"
- "tts pl pl ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id batch_size" (CLI args override; speaker comes from VIBEVOICE_VOICES) ──
MODEL_CONFIGS=(
"microsoft/VibeVoice-Realtime-0.5B 32"
diff --git a/vieneu/submit_jobs.sh b/vieneu/submit_jobs.sh
index a4bd43e..e519215 100755
--- a/vieneu/submit_jobs.sh
+++ b/vieneu/submit_jobs.sh
@@ -11,7 +11,7 @@ DEFAULT_STAGES="generate transcribe" # no SIM (default voice); no UTMO
RUN_EVAL_INJECT="$(inject_run_eval)"
# Vietnamese only for now (the model is Vietnamese/English).
-supports_language() { [[ "$1" == "vi" ]]; }
+SUPPORTED_LANGUAGES="vi"
# ── Stage 1: TTS generation (batched on GPU) ─────────────────────────────────
generate_stage() {
@@ -43,12 +43,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" ─────────────────────
-# MiniMax multilingual: 100 sentences per language, public at hf-audio/minimax_eval.
-DATASET_CONFIGS=(
- "tts vi vi ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id batch_size" (CLI args override) ────────────────────────
MODEL_CONFIGS=(
"pnnbao-ump/VieNeu-TTS-v3-Turbo 32"
diff --git a/voxcpm2/submit_jobs.sh b/voxcpm2/submit_jobs.sh
index 7256a8b..36e2166 100644
--- a/voxcpm2/submit_jobs.sh
+++ b/voxcpm2/submit_jobs.sh
@@ -33,44 +33,9 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment to pick) ────────
-# VoxCPM2 infers the language from the text (no language tag) and covers every language below, so
-# there is no `supports_language` gate; asr_language is only the stage-2 ASR hint.
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot zh zh ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ja ja ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ko ko ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot de de ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "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}"
- "tts ko ko ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "tts ru ru ${MINIMAX_EVAL_PATH}"
- "tts nl nl ${MINIMAX_EVAL_PATH}"
- "tts pl pl ${MINIMAX_EVAL_PATH}"
- "tts el el ${MINIMAX_EVAL_PATH}"
- "tts fi fi ${MINIMAX_EVAL_PATH}"
- "tts tr tr ${MINIMAX_EVAL_PATH}"
- "tts ar ar ${MINIMAX_EVAL_PATH}"
- "tts hi hi ${MINIMAX_EVAL_PATH}"
- "tts id id ${MINIMAX_EVAL_PATH}"
- "tts th th ${MINIMAX_EVAL_PATH}"
- "tts vi vi ${MINIMAX_EVAL_PATH}"
-)
-
+# ── Languages VoxCPM2 covers (model card: 30; the model infers it from the text) ──
+# No language tag is passed, so the split language is only the stage-2 ASR hint.
+SUPPORTED_LANGUAGES="ar my zh da nl en fi fr de el he hi id it ja km ko lo ms nb pl pt ru es sw sv fil th tr vi"
# ── Models: "model_id batch_size" (CLI args override) ────────────────────────
MODEL_CONFIGS=(
diff --git a/voxtral-tts/submit_jobs.sh b/voxtral-tts/submit_jobs.sh
index c45fdeb..d53b218 100644
--- a/voxtral-tts/submit_jobs.sh
+++ b/voxtral-tts/submit_jobs.sh
@@ -47,25 +47,8 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot fr fr ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot it it ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot de de ${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 fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "tts nl nl ${MINIMAX_EVAL_PATH}"
- "tts ar ar ${MINIMAX_EVAL_PATH}"
- "tts hi hi ${MINIMAX_EVAL_PATH}"
-)
+# The 9 languages of the model card.
+SUPPORTED_LANGUAGES="en fr es de it pt nl ar hi"
# ── Models: "model_id batch_size" (CLI args override) ────────────────────────
MODEL_CONFIGS=(
diff --git a/woof/submit_jobs.sh b/woof/submit_jobs.sh
index 0fe3bd9..9a056de 100755
--- a/woof/submit_jobs.sh
+++ b/woof/submit_jobs.sh
@@ -28,7 +28,7 @@ resolve_mode() {
}
# English only (two English voices, English text normalizer).
-supports_language() { [[ "$1" == "en" ]]; }
+SUPPORTED_LANGUAGES="en"
# ── Stage 1: TTS generation. MODEL_CFG = "model_id voice" (no batched API — one sample at a time) ──
generate_stage() {
@@ -53,13 +53,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-DATASET_CONFIGS=(
- "tts en en"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "tts en en ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id voice" (CLI args override) ─────────────────────────────
# Juno is the package default (and the faster voice); Mira is the model card's best-WER voice.
MODEL_CONFIGS=("ConwayResearch/Underdog-Woof juno")
diff --git a/zonos3-mini/submit_jobs.sh b/zonos3-mini/submit_jobs.sh
index a8b67d2..300aaf7 100644
--- a/zonos3-mini/submit_jobs.sh
+++ b/zonos3-mini/submit_jobs.sh
@@ -19,11 +19,15 @@ ZONOS3_PREFILL_TOKENS="${ZONOS3_PREFILL_TOKENS:-8192}"
# VOICE_CLONE=true: zero-shot voice cloning + SIM; false (default) = fixed default voice.
SUPPORTS_VOICE_CLONE=true
+# Languages ZONOS3-Mini covers (model card: 43; `no` is nb, `tl` is fil here). The runtime normalizes text for
+# en, zh, ja, ko, de, es, fr, it and pt; the others are sent without it, numbers spelled out by run_eval.py.
+SUPPORTED_LANGUAGES="en fr es de it pt nl pl ru sv tr uk cs da fi el hu nb ro sk bg zh ja ko ar he vi id th fil ms ka hi bn ta te mr gu kn ml pa or ur"
# The fixed voice is a native default voice of each language (VOICES in run_eval.py); the model has none in
# Japanese or in the languages without text normalization, and a foreign clip derails the speech, so those run in
# voice-clone mode only.
supports_language() {
- [[ "${CLONE}" == "true" || " en zh fr de es it ko pt " == *" $1 "* ]]
+ language_supported "$1" &&
+ [[ "${CLONE}" == "true" || " en zh fr de es it ko pt " == *" $1 "* ]]
}
# ── Stage 1: TTS generation. MODEL_CFG = "model_id batch_size". ──
@@ -66,47 +70,6 @@ generate_stage() {
"
}
-# ── Datasets: "config split asr_language [dataset_path]" (comment/uncomment) ──
-# Without a 4th field the line uses DEFAULT_DATASET_PATH (hf-audio/seed_tts_eval).
-# The languages with ZONOS3-Mini text normalization: en, zh, ja, ko, de, es, fr, it, pt; the others are sent without
-# it, numbers spelled out by run_eval.py. MiniMax: every language but uk (Qwen3-ASR has no Ukrainian) and yue.
-DATASET_CONFIGS=(
- "tts en en"
- "tts zh zh"
- "zero_shot en en ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot fr fr ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot es es ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot zh zh ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ja ja ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot ko ko ${CV3_EVAL_PATH:-hf-audio/cv3_eval}"
- "zero_shot de de ${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).
- "tts en en ${MINIMAX_EVAL_PATH}"
- "tts zh zh ${MINIMAX_EVAL_PATH}"
- "tts ja ja ${MINIMAX_EVAL_PATH}"
- "tts ko ko ${MINIMAX_EVAL_PATH}"
- "tts fr fr ${MINIMAX_EVAL_PATH}"
- "tts de de ${MINIMAX_EVAL_PATH}"
- "tts es es ${MINIMAX_EVAL_PATH}"
- "tts it it ${MINIMAX_EVAL_PATH}"
- "tts pt pt ${MINIMAX_EVAL_PATH}"
- "tts ru ru ${MINIMAX_EVAL_PATH}"
- "tts nl nl ${MINIMAX_EVAL_PATH}"
- "tts pl pl ${MINIMAX_EVAL_PATH}"
- "tts cs cs ${MINIMAX_EVAL_PATH}"
- "tts ro ro ${MINIMAX_EVAL_PATH}"
- "tts el el ${MINIMAX_EVAL_PATH}"
- "tts fi fi ${MINIMAX_EVAL_PATH}"
- "tts tr tr ${MINIMAX_EVAL_PATH}"
- "tts ar ar ${MINIMAX_EVAL_PATH}"
- "tts hi hi ${MINIMAX_EVAL_PATH}"
- "tts id id ${MINIMAX_EVAL_PATH}"
- "tts th th ${MINIMAX_EVAL_PATH}"
- "tts vi vi ${MINIMAX_EVAL_PATH}"
-)
-
# ── Models: "model_id batch_size" (CLI args override) ────────────────────────
MODEL_CONFIGS=(
"Zyphra/ZONOS3-Mini 32"