File size: 2,048 Bytes
bc7b7ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: mit
language:
  - zh
tags:
  - text-to-speech
  - evaluation
  - webfm
---

# webfm-eval

Fixed evaluation set and harness for the WebFM TTS work. Small on purpose: it
exists so two model tiers can be compared on the same sentences in the same
run, not to be trained on.

## Contents

```
eval/sentences.json      40 sentences, 7 buckets (short / medium / long /
                         number / latin / polyphone / narration)
eval/score.py            raw + normalised CER, prefix CER, per-bucket and
                         per-voice aggregation, delta against a baseline
eval/t2s.json            traditional -> simplified table, used only when
                         opencc is unavailable
config/ming_voices.json  the eight WebFM voices and their prompt transcripts
refs/wav/v01..v08.wav    prompt clips, reconstructed from the shipped F5
                         reference mels
kaggle/bake_voices.py    prompt_latent + CAM++ speaker_emb for each voice
kaggle/ming_eval.py      teacher x student matrix, resumable per cell
```

## Why the scoring is fussy

Whisper usually transcribes Chinese in traditional characters. Comparing that
against simplified references and counting character differences adds tens of
points of fake error. Every score here is reported twice: `cer_raw` (as
produced) and `cer_norm` (after traditional->simplified, punctuation stripped).
The gap is measurement, not model quality.

`cer_prefix` scores only the first four characters. A garbled opening syllable
barely moves overall CER but ruins a radio line, and it is the failure mode that
weight-only int4 quantisation produced on the 3-step student.

## Usage

```bash
python3 eval/score.py selftest
python3 eval/score.py aggregate --results results.jsonl --baseline teacher --by-bucket
```

`results.jsonl` carries one row per generated utterance:
`{id, model, voice, text, hyp_text, spk_cos?, mel_l1?, dur_ratio?}`.

## Licence

MIT for the code. The prompt clips derive from a purchased SFW corpus; check the
source terms before commercial use.