Trim README prose
#5
by zeroweightai - opened
14 unmodified lines151617181920212223242526114 unmodified lines14114214314414514614714814915015115215315415515615715815916016116216316416516616716816936 unmodified lines20620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426511 unmodified lines27727827928028128228328428528628728828929029129229329429529629729829930030126 unmodified lines32832933033133233333414 unmodified lines- voice-cloning- vietnamese-tts- tieng-viet# NOTE deliberately NO `datasets:` field. It is the only thing that populates# the Hub's cross-link, but the Hub renders it as "Models trained or fine-tuned# on <dataset>" — which for our own held-out benchmark reads as train/test# contamination. ZeroBench-TTS is EVALUATION data; every voice in it is held# out of training. The `model-index` block below states that correctly, and the# body links the benchmark in prose.metrics:- wermodel-index:114 unmodified lines## BenchmarksMeasured on **[ZeroBench-TTS](https://huggingface.co/datasets/zeroweight-ai/ZeroBench-TTS)** —137 items, 59 held-out reference voices × 4 subsets — against[OmniVoice](https://huggingface.co/k2-fsa/OmniVoice) and the two publicVietnamese XTTS-v2 finetunes. 137/137 scored for every system, 0 emptygenerations. OmniVoice is given its optional `language="vi"` hint, which itsmodel card recommends and which measurably helps it.**Scored by the benchmark, not by us.** ZeroTTS synthesizes the clips and handsthem to `zerobench_eval`, the official scorer published inside the benchmarkdataset repo. Nothing in this repo computes a metric.### HeadlineEvery system reads **normalized text** — dates, numbers and acronyms alreadyspoken out, from the benchmark's own curated reading. Every system gets exactlythe same input, so the comparison is like-for-like.This is the condition a Vietnamese TTS system meets in production, where a textfrontend runs ahead of the model. ZeroTTS ships one — `normalize_vi_text`,applied by default (see the [GitHub README](https://github.com/zeroweight-ai/ZeroTTS#usage)) — which reproduces the benchmark'sreading on 34 of the 35 items that need normalization. Neither baseline ships aVietnamese frontend at all, which is why the raw-text table below is so muchharsher on them.| | **ZeroTTS** | OmniVoice | XTTS-v2-vietnamse | viXTTS ||---|:-:|:-:|:-:|:-:|36 unmodified lines| `challenging` | acronyms, dates, %, currency | **1.75 %** | 4.46 % | 27.86 % | 31.85 % || **overall** | | **1.03 %** | **4.13 %** | **16.42 %** | **18.40 %** |**Reading these fairly:*** **OmniVoice beats us on two things, and they are worth naming.** Its speakersimilarity is the best of the four (0.951 vs our 0.938), and on `code_switch`it is roughly half our error rate (0.46 % vs 0.95 %). If cloning fidelity orEnglish-in-Vietnamese is your priority, it is a genuinely strong option — at3.1 GB on a GPU.* **OmniVoice's overall figure is dominated by one subset.** `cross_lingual`(foreign voice prompt, Vietnamese text) costs it 17.71 % raw against our1.42 %, and it is language-dependent — German 0.00 %, Korean 0.13 %, Japanese0.41 %. Excluding that subset it lands near 1.7 % raw. Both ASRs agree theaudio genuinely degrades there, so it is the model, not the scorer.* **Normalization is where the weakest systems gain most, and the order does notchange.** The XTTS tokenizers have no Vietnamese number expansion, so raw textpunishes them hard (`challenging` 27.86 %) and the normalized column is thefairest comparison available — it improves XTTS 2.3× and viXTTS 2.1×, against1.8× for us. What remains is the acoustic model.* **`vietnamese` barely moves for anyone** (0.16 % → 0.21 % for ZeroTTS). It hasno digits or acronyms, so there is nothing to normalize — which is the controlshowing the other subsets' gains are real and not a scoring artifact.* **On `cross_lingual` our voice similarity is the weak spot** (0.911 vs~0.935 for the others): ZeroTTS carries a foreign speaker's timbre intoVietnamese slightly less faithfully, while winning that subset's WER by 12×.* **The WER definition matters more than the WER.** ZeroBench scores every clipwith **two ASRs** (`whisper-large-v3` + `PhoWhisper-large`, min taken — neithercan judge Vietnamese code-switch TTS alone) against **every acceptablereading** of the target text, so a system is never charged for an ASR'schoice between "31/12/2025" and "ba mươi mốt tháng mười hai". Its test suitepins that in both directions: format differences must score 0, realmispronunciations must still cost.* **Our remaining errors are published, not hidden.** Every item scoring above0.00 is audited in [docs/BENCHMARKS.md](https://github.com/zeroweight-ai/ZeroTTS/blob/main/docs/BENCHMARKS.md). The two recurringones: a leading zero read aloud (`18/04` → "tháng **không** tư"), and theletters `W` and `H` coming out wrong when an acronym has to be spelled —`WHO` should be spelled out letter by letter, and instead comes out assomething like "Hall".Reproduce, or score your own system:```bashpip install "zerotts[eval]"SYNTH_FROM=text_normalized OUT_DIR=./eval/norm ./evaluation/run_benchmark.sh./evaluation/run_benchmark.sh # raw text```Not using ZeroTTS? The scorer stands alone — bring wavs from any system:```bashhuggingface-cli download zeroweight-ai/ZeroBench-TTS --repo-type dataset --local-dir ZeroBench-TTScd ZeroBench-TTS && pip install -r zerobench_eval/requirements.txtpython -m zerobench_eval manifest --out manifest.jsonl # what to synthesizepython -m zerobench_eval score --wav_dir my_wavs/ --name MyModel```## Voices, and voice cloningA voice is a small array of speaker latents, `(1, n_voice_queries, d_model)`,11 unmodified linesBecause a voice is just an array, latents obtained that way drop into`voices/<name>/voice.npz` and work with no code change.## Repository layout```config.json runtime configtokenizer.json BPE tokenizernull_voice_emb.npy learned unconditional voice prefixonnx/text_encoder.onnx text → encoder states (once per utterance)onnx/prefix_step.onnx global transformer step (once per frame)onnx/local_frame_decode.onnx frame decode + sampling (once per frame)onnx/codec/ MOSS-Audio-Tokenizer-Nano decoder (Apache-2.0)voices/<name>/voice.npz speaker latents```fp32, not quantized: ~900 MB total. Two ONNX Runtime calls per audio frame;frames are produced at 12.5 Hz and decoded to 48 kHz.The model architecture, training code, and the ONNX export script are notpublished, and the voice encoder is not included.## Intended use and limitationsBuilt for **Vietnamese**. It handles English words embedded in Vietnamese text26 unmodified lines## LicenseZeroTTS weights and code: **MIT**.Bundled MOSS codec decoder: **Apache-2.0**.The ZeroBench-TTS *dataset* is CC-BY-NC-4.0 because it redistributes referenceaudio from VIVOS, viVoice, phoaudiobook and Emilia. That license applies to the14 unmodified lines151617181920114 unmodified lines13513613713813914014114214314436 unmodified lines18118218318418518611 unmodified lines19819920020120220326 unmodified lines23023123223323423514 unmodified lines- voice-cloning- vietnamese-tts- tieng-vietmetrics:- wermodel-index:114 unmodified lines## BenchmarksMeasured on **[ZeroBench-TTS](https://huggingface.co/datasets/zeroweight-ai/ZeroBench-TTS)**Every system reads **normalized text** — dates, numbers and acronyms alreadyspoken out, from the benchmark's own curated reading.| | **ZeroTTS** | OmniVoice | XTTS-v2-vietnamse | viXTTS ||---|:-:|:-:|:-:|:-:|36 unmodified lines| `challenging` | acronyms, dates, %, currency | **1.75 %** | 4.46 % | 27.86 % | 31.85 % || **overall** | | **1.03 %** | **4.13 %** | **16.42 %** | **18.40 %** |## Voices, and voice cloningA voice is a small array of speaker latents, `(1, n_voice_queries, d_model)`,11 unmodified linesBecause a voice is just an array, latents obtained that way drop into`voices/<name>/voice.npz` and work with no code change.## Intended use and limitationsBuilt for **Vietnamese**. It handles English words embedded in Vietnamese text26 unmodified lines## LicenseZeroTTS weights and code: **MIT**.The ZeroBench-TTS *dataset* is CC-BY-NC-4.0 because it redistributes referenceaudio from VIVOS, viVoice, phoaudiobook and Emilia. That license applies to the
README.md+2-101