File size: 6,053 Bytes
790cb81 e26fc40 790cb81 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | ---
license: cc-by-4.0
task_categories:
- text-to-speech
language:
- th
pretty_name: Thai TTS Hard-Keyword Benchmark
size_categories:
- 1K<n<10K
tags:
- speech
- thai
- tts
- benchmark
- code-switching
- intelligibility
configs:
- config_name: default
data_files:
- split: test
path: data/test.parquet
---
# Thai TTS Hard-Keyword Benchmark
Does a Thai TTS actually *say the hard word* — the brand, the name, the rare compound,
the chat spelling — or does it fluently say something else? One wrong word in a fluent
150-character sentence costs ~1% CER and reads as "fine", which is why sentence CER
cannot answer this.
**1,531 Thai sentences, each with exactly one keyword under test.** Synthesize,
transcribe with one pinned Thai ASR, check the keyword is there. It scores audio against
text and prescribes nothing about how the audio was made.
```json
{"id": "cs-0001", "category": "code_switch",
"text": "เมื่อวานเรียก Grab ไปทำงาน รถมาเร็วมาก", ← synthesize this verbatim
"keyword": "Grab",
"expected": "แกร็บ", ← what the scoring ASR writes when it is spoken right
"alternates": ["Grab", "แกร๊บ", "แกรบ"]} ← other accepted ASR spellings
```
Correct = the transcript contains `expected` or an `alternates` entry, as an exact
substring after Thai canonicalization. **No fuzzy matching.**
| category | n | probes |
|---|---|---|
| `code_switch` | 391 | Latin spans in Thai: brands, acronyms, tickers |
| `rare_words` | 410 | low-frequency, technical and literary vocabulary |
| `names` | 310 | Thai personal/place names — many-to-one orthography |
| `informal_spelling` | 210 | chat orthography outside standard dictionaries |
| `long_sentences` | 210 | does the keyword survive a long clause |
Each item also carries `text_mono` (Latin respelled in Thai) and `text_bilingual`. The
gold is the same for all three — pick one contract, use it for every system you compare,
and say which. `meta` holds construction metadata only: the category stratum (`cs_class`,
`name_type`, `kind`, `freq_band`, `tnc_freq`, `keyword_position`, `length_bucket`,
`phenomenon`), the canonical spelling of an informal item (`canonical`) and whether a
long-sentence target is reused from another category (`reused_keyword`).
## Use
The harness is one file, `eval_keyword.py`, in
[`wayu-research/thai-tts-eval`](https://github.com/wayu-research/thai-tts-eval). It pulls
the items itself.
```bash
python3 eval_keyword.py texts --out texts.tsv # {id}<TAB>{text} to synthesize
python3 eval_keyword.py transcribe --audio-dir audio/mysystem \
--out runs/mysystem/transcripts.json
python3 eval_keyword.py score --transcripts runs/mysystem/transcripts.json \
--out runs/mysystem
```
Audio goes in as `{id}.wav`. `--transcripts` also takes output from your own ASR stack.
`compare` runs a paired A/B with an exact McNemar test — use it when two systems are
close.
## Before you quote a number
- **A perfect system cannot score 100%.** Thai orthography is many-to-one, so the scoring
ASR sometimes writes an unlisted homophone of a correctly-spoken word. Rankings survive
this, so compare systems freely; just never read a score as a share of 100%.
- **The scoring ASR is fixed.** `expected`/`alternates` are authored against it, so
swapping it fails correct renders on spelling alone.
- **Binary per item**, and not a pronunciation judge — it asks only whether one ASR wrote
one string.
- **Central Thai only.** Sentences were LLM-assisted in authoring, so contamination is not
formally excluded.
## Baselines
Three systems on all 1,531 items. Gemini and OmniVoice were fed `text`. Wayu-Paxa-TTS-Edge
was fed `text_bilingual` — the paper's LLM-verbalized form of `text`, which the paper counts
as part of that system's frontend; the released `wayu-tts` package has no LLM verbalizer,
so feeding it `text` scores slightly lower.
| system | overall | code_switch | names | rare_words | informal | long_sent. |
|---|---|---|---|---|---|---|
| Gemini 3.1 Flash TTS | **79.8%** | 83.1% | 62.9% | 85.4% | 87.1% | 80.0% |
| OmniVoice (zero-shot teacher) | 72.8% | 69.8% | 54.8% | 85.4% | 78.6% | 74.3% |
| Wayu-Paxa-TTS-Edge (82M student) | 68.2% | 62.7% | 51.9% | 79.8% | 75.7% | 72.4% |
Companion: [`wayu-ai/thai-tts-pause-bench`](https://huggingface.co/datasets/wayu-ai/thai-tts-pause-bench)
scores phrase-break placement on the 210 `long_sentences` items, same ids — one render
set covers both.
## Citation
If you use this benchmark, cite the paper and the harness it builds on.
```bibtex
@misc{pipatanakul2026buildingevaluatingfixedvoicethai,
title={Building and Evaluating Fixed-Voice Thai TTS from Synthetic Speech},
author={Kunat Pipatanakul and Potsawee Manakul and Warit Sirichotedumrong and Sittipong Sripaisarnmongkol and Pakorn Nathong and Phatrasek Jirabovonvisut},
year={2026},
eprint={2609.03502},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2609.03502},
}
```
The item schema and the matcher derive from Potsawee Manakul's
[`th01-tts-eval`](https://github.com/potsawee/th01-tts-eval) (`thai-tts-keyword-eval`),
whose pilot set seeded this one:
```bibtex
@misc{manakul2026th01ttseval,
title = {thai-tts-keyword-eval: Keyword accuracy for Thai TTS},
author = {Manakul, Potsawee},
year = {2026},
howpublished = {\url{https://github.com/potsawee/th01-tts-eval}}
}
```
## License
> **Research artifact**, released for reproducibility and further research — not a
> certification or a product, and provided without warranty or liability of any kind.
> See the [repository README](https://github.com/wayu-research/thai-tts-eval#disclaimer) for the full disclaimer.
**CC-BY-4.0.** No audio is redistributed.
Kunat Pipatanakul — [research@wayuresearch.org](mailto:research@wayuresearch.org). Gold
corrections are welcome — open an issue or a pull request.
|