Evaluation scripts for the Open TTS Leaderboard: https://huggingface.co/spaces/hf-audio/open_tts_leaderboard
Python
Phonon: speak at duration_delta 0.3 (#27)
Davef89707034732
diff --git a/README.md b/README.mdindex fc274df..c693e23 100644--- a/README.md+++ b/README.md@@ -167,7 +167,7 @@ Useful environment variables (see [scripts/tts_jobs_common.sh](scripts/tts_jobs_| `ONLY_LANGS` | (all) | Only run the configured splits for these languages, e.g. `"en zh"` || `STAGES` | `generate transcribe sim utmos` | Subset of stages, e.g. `"transcribe sim"` to re-score existing wavs || `VOICE_CLONE` | `false` | Clone the prompt speaker (backends that support both modes) |-| `ASR_OVERWRITE` / `SIM_OVERWRITE` | `false` | Recompute `pred_text` / `sim` instead of resuming. **Set `SIM_OVERWRITE=true` after regenerating audio**, otherwise old SIM scores are carried over |+| `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 |Examples:diff --git a/phonon/run_eval.py b/phonon/run_eval.pyindex 746208e..a9fb8d6 100644--- a/phonon/run_eval.py+++ b/phonon/run_eval.py@@ -40,10 +40,10 @@ from run_eval_utils import (MODEL_REVISIONS = {"gradium/phonon-31m-en": "92741c5b07d085ff840e26fea8ce43110b87852f",- "gradium/phonon-40m-en": "cc738b7e4d182c2ba1bafb8062aa4846af000637",+ "gradium/phonon-40m-en": "bc7e8ae7e543a7a3e4604753e42fbda76ddf0781","gradium/phonon-40m-fr": "d91086970206b88efd2c88ca971d0628b5968f0f","gradium/phonon-40m-de": "79cfc7b47fcfc0b666657b981eb366415023a862",- "gradium/phonon-40m-es": "f0d2f39c9b58ad4c19a189e3ba989ee4df393cc5",+ "gradium/phonon-40m-es": "e5e052b26e31abd5918ade71d3135e69d51a66f8",}# Voice cloning: voices/<SHA-256 of a reference clip>.safetensors holds that clip's speaker latents,@@ -643,7 +643,7 @@ if __name__ == "__main__":parser.add_argument("--dataset_revision", help="Immutable dataset commit; resolves current Hub revision if omitted.")parser.add_argument("--temperature", type=float, default=0.3)parser.add_argument("--eos_threshold", type=float, default=4.0)- parser.add_argument("--conditions", type=json.loads, default={"num_speakers": "1", "duration_delta": 0.0})+ parser.add_argument("--conditions", type=json.loads, default={"num_speakers": "1", "duration_delta": 0.3})parser.add_argument("--rewrites", choices=("default", "all", "none"), default="default")parser.add_argument("--threads", type=int, default=1)parser.add_argument("--ttfa_output_root", help="Separate private root for TTFA sidecars only.")diff --git a/scripts/tts_jobs_common.sh b/scripts/tts_jobs_common.shindex f5594a0..35f1b45 100644--- a/scripts/tts_jobs_common.sh+++ b/scripts/tts_jobs_common.sh@@ -59,9 +59,10 @@ SIM_BATCH_SIZE="${SIM_BATCH_SIZE:-32}" # SIM minibatch (ignored by the wav# interchangeable, so keep this the SAME for every model whose SIM you compare (score_similarity.py# records the embedder per row as `sim_model` and re-scores rows scored by the other one).SIM_BACKEND="${SIM_BACKEND:-wavlm_seed_tts}"-# Force every row's SIM to be recomputed. REQUIRED after re-running `generate`: score_similarity.py-# carries prior sims over keyed on `audio_filepath` (to resume crashed runs), and regeneration reuses-# the same wav filenames, so without this the old SIM would silently be kept.+# Force every row's SIM to be recomputed. Forced when `generate` runs: score_similarity.py carries+# prior sims over keyed on `audio_filepath` (to resume crashed runs), and regeneration reuses the same+# wav filenames, so the old SIM would otherwise silently be kept. Set it yourself only when re-scoring+# without `generate` (e.g. STAGES="sim" after a generate run that skipped SIM).SIM_OVERWRITE="${SIM_OVERWRITE:-false}"# Same opt-out for stage 2: transcribe.py skips rows that already have a `pred_text`. Set# ASR_OVERWRITE=true with STAGES="transcribe" to re-transcribe the bucket's existing wavs.@@ -212,7 +213,7 @@ transcribe_stage() {}sim_stage() {local SIM_OVERWRITE_FLAG=""- [[ "${SIM_OVERWRITE}" == "true" ]] && SIM_OVERWRITE_FLAG=" --overwrite"+ { [[ "${SIM_OVERWRITE}" == "true" ]] || stage_enabled generate; } && SIM_OVERWRITE_FLAG=" --overwrite"hf jobs run \--flavor "${SIM_FLAVOR}" --timeout 4h --secrets HF_TOKEN \--env PYTORCH_CUDA_ALLOC_CONF="expandable_segments:True" ${NAMESPACE_ARG} \