cloud0day3 commited on
Commit
e6dc45e
·
verified ·
1 Parent(s): 86057be

Card corrections: open code scope, fp16, stream, reading fixes, held-out check, EMA speed

Browse files

Inference code is Apache-2.0; training code and data are not public. fp16 audio is close, not identical. stream() matches say() sample for sample. Reading fixes work per chunk, with examples that hold. The check on 500 other sentences is described with its limits. EMA Lightning's compiled RTF, wall-time ratio and the VM sizes are stated, and its own numbers attributed. Chunks run to about 19 s. The ö onset limit is reworded.

Files changed (1) hide show
  1. README.md +33 -27
README.md CHANGED
@@ -18,8 +18,8 @@ tags:
18
  7,6 milyon parametre, 48 kHz çıkış, sıradan bir işlemcide gerçek zamandan çok daha hızlı. Ham metni alır;
19
  sayıları, tarihleri, saatleri, tutarları, kısaltmaları ve metindeki İngilizce ya da marka adlarını kendi
20
  normalleştiricisiyle okunuşa çevirir. Ses sentetik bir erkek sesidir (Antalia-2'nin sesi): gerçek bir
21
- kişinin sesi değildir ve eğitim verisinde gerçek konuşmacı kaydı yoktur. Kod ve model ağırlıkları
22
- Apache-2.0 lisanslıdır; bağımlılıklardan `cmudict` pakete dahil değildir ve kendi lisanslarına tabidir
23
  (Python paketi PyPI'da GPL-3.0-or-later, içindeki CMU sözlük verisi BSD tarzı). Kurulum: `pip install antalia-mini`.
24
  Tarayıcınızda deneyin (aynı ağırlıklar, 1.0.0 sürümünün çıkış EQ ayarıyla): https://huggingface.co/spaces/cloud0day3/antalia-mini
25
 
@@ -35,7 +35,8 @@ runs the same weights entirely on your device with ONNX Runtime Web (no server;
35
  It still uses 1.0.0's darker output EQ, so it sounds a little different from this release's default.
36
 
37
  The voice is a synthetic male voice (Antalia-2's voice), not a real person, and the training data
38
- contains no recordings of real speakers. The code and the weights are licensed under Apache-2.0. Its
 
39
  predecessor, Antalia-1, is at [cloud0day3/antalia-1](https://huggingface.co/cloud0day3/antalia-1).
40
 
41
  ## Quickstart
@@ -72,10 +73,11 @@ Command line: `antalia-mini "Merhaba, size nasıl yardımcı olabilirim?" -o mer
72
 
73
  Options of `say()`: `seed` (the same text, seed and settings give the same audio; without a seed a random
74
  one is drawn and returned in `speech.seed`), `speed` (default 0.95, slightly slower than the voice's own
75
- pace; higher is faster), `steps` (flow-matching steps, default 8; 4 is faster and measurably less
76
- accurate, see Evaluation), `cfg` (classifier-free guidance, default 2.0). `Antalia.normalize(text)` shows the exact text the
77
  model reads. The model runs in fp32; `Antalia(variant="fp16")` downloads the half-size weights file
78
- (converted back to fp32 when loaded; the audio is practically identical).
 
79
 
80
  An output EQ is applied by default (since 1.0.1, chosen by ear over 1.0.0's darker tone): less bass
81
  (80 Hz high-pass, -4 dB low shelf at 200 Hz), less "boxiness" (-2.5 dB at 350 Hz), more presence (+3 dB at
@@ -85,12 +87,12 @@ make-up gain (the raw output's loudness) and a soft peak limiter that keeps the
85
  (no per-utterance loudness normalisation). Pass `eq=False` (to `Antalia`, `say` or `stream`, or
86
  `--no-eq` on the command line) for the raw output, or your own curve, e.g. 1.0.0's tone:
87
  `Antalia(curve=None, deess=None, makeup_db=0, tone=(6, -9))`. `stream()` carries the filter state across chunks, so the
88
- joined chunks match `say()`'s output (to within the de-esser's 2 ms level steps at chunk edges).
89
 
90
- Two reading fixes are on by default. A text that starts with "ö" or "ı" is spoken after a short "ee,"
91
- that is cut out of the audio again, because the voice tends to put a stray "l" in front of those
92
- sounds at the very start (see Limitations); and double sounds, inside a word ("berraktı") or across a
93
- word gap ("alerjim mahvediyor"), are held a little longer, as Turkish speakers do. Both can be turned
94
  off: `Antalia(prefix="", gem_stretch=1.0)`.
95
 
96
  ## Samples
@@ -135,7 +137,8 @@ seeds, one NVIDIA L4) it has CER 0.220% vs 0.225%, the lowest of the 11 open-wei
135
  there and second of all 15 (see below), and WER 1.09% vs 1.04%. Both models vary by about ±0.1 WER from
136
  seed to seed, so these differences are within noise. EMA Lightning is ahead on full-band UTMOS (3.30 vs 3.18); Antalia-2 Mini scores higher on
137
  UTMOS in the 8 kHz band, the band a phone call carries, and is smaller (7.62M vs 8.6M parameters). EMA
138
- Lightning's own card reports 0.92 / 0.18 / ~3.30 on the same protocol.
 
139
 
140
  1.0.1 changed only the output EQ, chosen by ear by the authors after outside feedback on 1.0.0's darker
141
  tone; the automatic scores moved slightly against it (UTMOS 3.25 → 3.18, WER 0.97 → 1.02 here). 1.0.0's numbers are kept for
@@ -143,9 +146,10 @@ reference, and its tone is one argument away (see above).
143
 
144
  The two reading fixes (see Quickstart) were found by studying where the model went wrong: the first
145
  in its training data, the second in this benchmark's errors. To check that the second one is not
146
- tuned to the benchmark, we compared both settings on 500 other sentences (160 of our own test prompts
147
- and 340 held-out lines of the training corpus, never trained on): WER 6.12% → 6.02%, CER 1.53% →
148
- 1.48%, 3 seeds each. (WER is higher there because those lines contain digits, abbreviations and
 
149
  foreign names that the scoring normalisation does not match.) The teacher row is the system that generated Antalia-2
150
  Mini's training audio, given for reference; it is not a small model. None of the evaluation sentences,
151
  or near-duplicates of them, were in the training text.
@@ -155,13 +159,13 @@ or near-duplicates of them, were in the training text.
155
  We also keep an independent re-run of Freya-TR-Eval for every Turkish system we could run, at
156
  [speech.patientdesk.ai/benchmarks](https://speech.patientdesk.ai/benchmarks) (scripts and per-clip
157
  transcripts: [PatientdeskAI/freya-tr-eval-rerun](https://huggingface.co/datasets/PatientdeskAI/freya-tr-eval-rerun)).
158
- It uses EMA Lightning's published eval.py for scoring, 3 seeded takes per system, and one NVIDIA L4 for
159
- speed; Antalia-2 Mini 1.0.1 ran there with its default settings, separately from the run above (other seeds).
160
  Sorted by WER; best value per column in bold; API systems have no RTF.
161
 
162
  | # | System | Parameters | WER % | CER % | Clean sentences | UTMOS | RTF (L4) |
163
  |---|---|---|---|---|---|---|---|
164
- | 1 | EMA Lightning (plain PyTorch) | 8.6M | **1.04** ± 0.17 | 0.225 | **93.7%** | 3.30 | 0.017 |
165
  | 2 | **Antalia-2 Mini 1.0.1** | 7.62M | 1.09 ± 0.12 | **0.220** | 92.9% | 3.18 | 0.029 |
166
  | 3 | Trendyol-TTS (cfg 2.0, 16 steps) | 2.38B | 1.16 ± 0.16 | 0.23 | 93.1% | **3.82** | 0.962 |
167
  | 4 | Gemini 3.8 Flash TTS (voice Kore) | – | 1.23 ± 0.10 | 0.29 | 92.9% | 3.53 | – |
@@ -184,7 +188,9 @@ shows Alania-2's default voice F1, run on 7 October). These gaps are 2 to 7 char
184
  distinguishable from zero (paired sentence bootstrap, 95%), and on the other harness (the first table above)
185
  EMA Lightning is the lower one (0.198 against 0.205). On word errors Antalia-2 Mini is second, 0.05 points
186
  behind EMA Lightning, within either model's seed-to-seed spread. (1.0.0 scored 1.05 / 0.20 / 93.1% / 3.25
187
- there.) EMA Lightning is about 1.7 times faster on the L4 at Antalia-2 Mini's default 8 steps. "Clean sentences" is the share of sentences
 
 
188
  transcribed without a single word error.
189
 
190
  ## Size and speed
@@ -208,8 +214,8 @@ The L40S and EPYC rows were measured with 1.0.0, which rebuilt its output filter
208
  builds it once and has not been timed on those two machines, so these comparisons hold for 1.0.0 only: on a
209
  GPU, single requests of 1.0.0 are about 2 times slower than EMA Lightning's at the default 8 steps; on a CPU,
210
  1.0.0 is about 1.4 times faster on the same 8 vCPUs. For 1.0.1 the GPU comparison we have is the NVIDIA L4
211
- table above: RTF 0.029, against 0.017 for EMA Lightning (same GPU type, all 495 sentences, 8 vCPUs for
212
- Antalia-2 Mini and 16 for EMA Lightning) and 0.043 for 1.0.0.
213
 
214
  On an Apple M5 laptop 1.0.1 speaks about 41 times faster than real time on 2 CPU threads. The Apple M5 numbers
215
  were measured with other applications running, so a quiet machine may be a little faster. We have no EMA
@@ -278,11 +284,11 @@ shows its output.
278
  - Readings follow the normaliser. Roman numerals ("XIX. yüzyıl"), ordinals written before names
279
  ("2. Abdülhamit"), unusual formats, rare abbreviations and some foreign names can be read wrongly;
280
  check `Antalia.normalize(text)` when a reading matters.
281
- - Long inputs are split into sentence-sized chunks (up to about 18 seconds each) and joined with short
282
  pauses; prosody does not carry across chunks.
283
- - At the very start of a text the voice tends to put a stray "l" before "ö" (and, less often, a "d" or
284
- "b" before "ı"): the model learned it from its training audio. The default "ee," trick hides it at the
285
- start of each chunk; a fix in the training data is planned.
286
  - The numbers above are automatic metrics on one benchmark, not listening tests.
287
 
288
  ## Responsible use
@@ -294,8 +300,8 @@ shows its output.
294
 
295
  ## License
296
 
297
- The code, the text normaliser and the model weights are all licensed under Apache-2.0 (see LICENSE and
298
- NOTICE in this repository). The `cmudict` dependency is not included here and has its own licences: PyPI lists
299
  the Python package as GPL-3.0-or-later, and the CMU Pronouncing Dictionary data inside it carries a BSD-style
300
  licence from Carnegie Mellon University.
301
 
 
18
  7,6 milyon parametre, 48 kHz çıkış, sıradan bir işlemcide gerçek zamandan çok daha hızlı. Ham metni alır;
19
  sayıları, tarihleri, saatleri, tutarları, kısaltmaları ve metindeki İngilizce ya da marka adlarını kendi
20
  normalleştiricisiyle okunuşa çevirir. Ses sentetik bir erkek sesidir (Antalia-2'nin sesi): gerçek bir
21
+ kişinin sesi değildir ve eğitim verisinde gerçek konuşmacı kaydı yoktur. Çıkarım kodu ve model ağırlıkları
22
+ Apache-2.0 lisanslıdır, eğitim kodu ve verisi açık değildir; bağımlılıklardan `cmudict` pakete dahil değildir ve kendi lisanslarına tabidir
23
  (Python paketi PyPI'da GPL-3.0-or-later, içindeki CMU sözlük verisi BSD tarzı). Kurulum: `pip install antalia-mini`.
24
  Tarayıcınızda deneyin (aynı ağırlıklar, 1.0.0 sürümünün çıkış EQ ayarıyla): https://huggingface.co/spaces/cloud0day3/antalia-mini
25
 
 
35
  It still uses 1.0.0's darker output EQ, so it sounds a little different from this release's default.
36
 
37
  The voice is a synthetic male voice (Antalia-2's voice), not a real person, and the training data
38
+ contains no recordings of real speakers. The inference code and the weights are licensed under Apache-2.0;
39
+ the training code and data are not public. Its
40
  predecessor, Antalia-1, is at [cloud0day3/antalia-1](https://huggingface.co/cloud0day3/antalia-1).
41
 
42
  ## Quickstart
 
73
 
74
  Options of `say()`: `seed` (the same text, seed and settings give the same audio; without a seed a random
75
  one is drawn and returned in `speech.seed`), `speed` (default 0.95, slightly slower than the voice's own
76
+ pace; higher is faster), `steps` (flow-matching steps, default 8; 4 is faster and scored worse on the
77
+ benchmark with 1.0.0's EQ: WER 1.17% vs 0.97%, CER 0.23% vs 0.19%, 3 seeds), `cfg` (classifier-free guidance, default 2.0). `Antalia.normalize(text)` shows the exact text the
78
  model reads. The model runs in fp32; `Antalia(variant="fp16")` downloads the half-size weights file
79
+ (converted back to fp32 when loaded). The audio is close but not identical: rounded durations can change, and
80
+ 5 of 50 test sentences came out a different length.
81
 
82
  An output EQ is applied by default (since 1.0.1, chosen by ear over 1.0.0's darker tone): less bass
83
  (80 Hz high-pass, -4 dB low shelf at 200 Hz), less "boxiness" (-2.5 dB at 350 Hz), more presence (+3 dB at
 
87
  (no per-utterance loudness normalisation). Pass `eq=False` (to `Antalia`, `say` or `stream`, or
88
  `--no-eq` on the command line) for the raw output, or your own curve, e.g. 1.0.0's tone:
89
  `Antalia(curve=None, deess=None, makeup_db=0, tone=(6, -9))`. `stream()` carries the filter state across chunks, so the
90
+ joined chunks match `say()`'s output sample for sample.
91
 
92
+ Two reading fixes are on by default. Long texts are read in chunks, and a chunk that starts with "ö" or "ı" is
93
+ spoken after a short "ee," that is cut out of the audio again, because the voice tends to put stray sounds in
94
+ front of "ö" at the very start (see Limitations), and a small test heard similar errors before "ı". Double
95
+ sounds, inside a word ("dikkat") or across a word gap ("o olumsuz"), are held a little longer. Both can be turned
96
  off: `Antalia(prefix="", gem_stretch=1.0)`.
97
 
98
  ## Samples
 
137
  there and second of all 15 (see below), and WER 1.09% vs 1.04%. Both models vary by about ±0.1 WER from
138
  seed to seed, so these differences are within noise. EMA Lightning is ahead on full-band UTMOS (3.30 vs 3.18); Antalia-2 Mini scores higher on
139
  UTMOS in the 8 kHz band, the band a phone call carries, and is smaller (7.62M vs 8.6M parameters). EMA
140
+ Lightning's own card reports 0.92 / 0.18 / ~3.30; its repository says the accuracy numbers come from a release
141
+ candidate with its own normaliser. We ran the 1.0.1 package; PyPI has since moved to 1.1.2, which we have not re-run.
142
 
143
  1.0.1 changed only the output EQ, chosen by ear by the authors after outside feedback on 1.0.0's darker
144
  tone; the automatic scores moved slightly against it (UTMOS 3.25 → 3.18, WER 0.97 → 1.02 here). 1.0.0's numbers are kept for
 
146
 
147
  The two reading fixes (see Quickstart) were found by studying where the model went wrong: the first
148
  in its training data, the second in this benchmark's errors. To check that the second one is not
149
+ tuned to the benchmark, we compared both settings on 500 other sentences (160 of our own test prompts, 36 of them
150
+ also in the training text, and 340 lines from the corpus's held-out split): WER 6.12% → 6.02%, CER 1.53% →
151
+ 1.48%, 3 seeds each. That is consistent in direction but not separable from seed noise: nearly all of the WER gain
152
+ is one seed, and we kept no per-sentence data for an interval. (WER is higher there because those lines contain digits, abbreviations and
153
  foreign names that the scoring normalisation does not match.) The teacher row is the system that generated Antalia-2
154
  Mini's training audio, given for reference; it is not a small model. None of the evaluation sentences,
155
  or near-duplicates of them, were in the training text.
 
159
  We also keep an independent re-run of Freya-TR-Eval for every Turkish system we could run, at
160
  [speech.patientdesk.ai/benchmarks](https://speech.patientdesk.ai/benchmarks) (scripts and per-clip
161
  transcripts: [PatientdeskAI/freya-tr-eval-rerun](https://huggingface.co/datasets/PatientdeskAI/freya-tr-eval-rerun)).
162
+ It uses EMA Lightning's published eval.py for scoring, 3 seeded takes per system, and an NVIDIA L4 for
163
+ speed (same GPU type on different VMs: 8 vCPUs for Antalia-2 Mini, 16 for EMA Lightning); Antalia-2 Mini 1.0.1 ran there with its default settings, separately from the run above (other seeds).
164
  Sorted by WER; best value per column in bold; API systems have no RTF.
165
 
166
  | # | System | Parameters | WER % | CER % | Clean sentences | UTMOS | RTF (L4) |
167
  |---|---|---|---|---|---|---|---|
168
+ | 1 | EMA Lightning (plain PyTorch) | 8.6M | **1.04** ± 0.17 | 0.225 | **93.7%** | 3.30 | 0.017 (compiled: 0.0030) |
169
  | 2 | **Antalia-2 Mini 1.0.1** | 7.62M | 1.09 ± 0.12 | **0.220** | 92.9% | 3.18 | 0.029 |
170
  | 3 | Trendyol-TTS (cfg 2.0, 16 steps) | 2.38B | 1.16 ± 0.16 | 0.23 | 93.1% | **3.82** | 0.962 |
171
  | 4 | Gemini 3.8 Flash TTS (voice Kore) | – | 1.23 ± 0.10 | 0.29 | 92.9% | 3.53 | – |
 
188
  distinguishable from zero (paired sentence bootstrap, 95%), and on the other harness (the first table above)
189
  EMA Lightning is the lower one (0.198 against 0.205). On word errors Antalia-2 Mini is second, 0.05 points
190
  behind EMA Lightning, within either model's seed-to-seed spread. (1.0.0 scored 1.05 / 0.20 / 93.1% / 3.25
191
+ there.) On the L4, at Antalia-2 Mini's default 8 steps, EMA Lightning's plain PyTorch path is about 1.7 times faster
192
+ by RTF and about 1.9 times by wall time, because Antalia-2 Mini speaks about 13% longer on the same text; its compiled
193
+ path is about 9.5 times faster by RTF. "Clean sentences" is the share of sentences
194
  transcribed without a single word error.
195
 
196
  ## Size and speed
 
214
  builds it once and has not been timed on those two machines, so these comparisons hold for 1.0.0 only: on a
215
  GPU, single requests of 1.0.0 are about 2 times slower than EMA Lightning's at the default 8 steps; on a CPU,
216
  1.0.0 is about 1.4 times faster on the same 8 vCPUs. For 1.0.1 the GPU comparison we have is the NVIDIA L4
217
+ table above: RTF 0.029, against 0.017 for EMA Lightning's plain PyTorch path and 0.0030 for its compiled path (same
218
+ GPU type, all 495 sentences, 8 vCPUs for Antalia-2 Mini and 16 for EMA Lightning) and 0.043 for 1.0.0.
219
 
220
  On an Apple M5 laptop 1.0.1 speaks about 41 times faster than real time on 2 CPU threads. The Apple M5 numbers
221
  were measured with other applications running, so a quiet machine may be a little faster. We have no EMA
 
284
  - Readings follow the normaliser. Roman numerals ("XIX. yüzyıl"), ordinals written before names
285
  ("2. Abdülhamit"), unusual formats, rare abbreviations and some foreign names can be read wrongly;
286
  check `Antalia.normalize(text)` when a reading matters.
287
+ - Long inputs are split into sentence-sized chunks (up to about 19 seconds each) and joined with short
288
  pauses; prosody does not carry across chunks.
289
+ - At the very start of a chunk the voice tends to put stray sounds before "ö" (in transcripts most often an "l",
290
+ as in "lözür" for "özür"): the model learned it from its training audio. The default "ee," trick hides it at the
291
+ start of each chunk but does not remove it; a fix in the training data is planned.
292
  - The numbers above are automatic metrics on one benchmark, not listening tests.
293
 
294
  ## Responsible use
 
300
 
301
  ## License
302
 
303
+ The inference code, the text normaliser and the model weights are all licensed under Apache-2.0 (see LICENSE and
304
+ NOTICE in this repository). The training code, data generation scripts and training data are not public. The `cmudict` dependency is not included here and has its own licences: PyPI lists
305
  the Python package as GPL-3.0-or-later, and the CMU Pronouncing Dictionary data inside it carries a BSD-style
306
  licence from Carnegie Mellon University.
307