korir8 commited on
Commit
0cd7ab6
Β·
verified Β·
1 Parent(s): aba8909

Public model card: CC-BY-4.0, attribution, 500-sentence single-shot vs gated benchmark

Browse files
Files changed (1) hide show
  1. README.md +135 -27
README.md CHANGED
@@ -1,31 +1,47 @@
1
  ---
2
  language: sw
 
 
3
  tags:
4
  - text-to-speech
5
  - tts
6
  - swahili
 
7
  - dia
8
  - code-switching
 
9
  library_name: dia
10
  pipeline_tag: text-to-speech
11
  ---
12
 
13
  # Sauti TTS β€” Dia-1.6B Swahili (full SFT)
14
 
15
- Swahili text-to-speech built by **Msingi-AI**, a full supervised fine-tune of
16
- [nari-labs/Dia-1.6B](https://huggingface.co/nari-labs/Dia-1.6B) on a pooled
17
- Swahili speech corpus. Unlike our VoxCPM2 model this is **not** a voice-cloning
18
- model β€” it has a single learned voice and takes text only.
19
 
20
- Pick this model when **code-switching matters** (English embedded in Swahili):
21
- it scores code-switch CER **0.050**, comfortably ahead of our VoxCPM2 full SFT
22
- (0.047 zero-shot judge / 0.090 Swahili judge) on the mixed-language path, and a
23
- native Swahili listener preferred it there. For plain Swahili, VoxCPM2 full SFT
24
- is still the stronger model (0.007 vs 0.011 CER) β€” see *Model selection* below.
25
 
26
- > **Internal / private.** Weights derive from Dia-1.6B and training used a
27
- > corpus with mixed licences (see *Licensing*). Confirm licence compatibility
28
- > before any external release.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  ---
31
 
@@ -74,7 +90,7 @@ pip install descript-audio-codec soundfile
74
  python sauti-tts-v2/hpc/dia/patch_dia_fork.py --dia-dir dia-finetuning \
75
  --epochs 1 --eval-step 1 --save-step 1
76
 
77
- # 3. weights (private repo β€” needs an org token: `hf auth login`)
78
  hf download msingiai/dia --local-dir ./dia-sw
79
  ```
80
 
@@ -144,6 +160,43 @@ numbers-dates / code-switch. Two ASR judges: zero-shot
144
  | numbers_dates | 0.267 / 0.067 | 0.025 / 0.006 |
145
  | code_switch | **0.286 / 0.050** | 0.281 / 0.088 |
146
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  ### Read code-switch with the multilingual judge only
148
 
149
  `Jacaranda-Health/ASR-STT` is Swahili-only and **cannot transcribe English
@@ -177,19 +230,23 @@ statistically indistinguishable plain-Swahili quality.
177
  UTMOS was deliberately **not** run: it is English-trained and unreliable for
178
  Swahili.
179
 
180
- ### Model selection vs our other Swahili models
 
 
 
181
 
182
  | Model | Plain SW CER | Code-switch CER (multilingual) | Voice cloning |
183
  |---|---:|---:|---|
184
- | VoxCPM2 full SFT | **0.007** | 0.047 | βœ… zero-shot |
185
  | **this model (Dia full SFT e10)** | 0.011 | **0.050** | ❌ single voice |
186
- | VoxCPM2 LoRA (300 steps) | 0.012 | β€” | βœ… |
187
- | Chatterbox LoRA e30 | 0.022 | β€” | prompt-based |
188
- | CosyVoice3 e1 | 0.029 | β€” | βœ… |
189
 
190
- **Choose VoxCPM2 full SFT** for plain Swahili or when you need a specific voice.
191
- **Choose this model** when you want a fixed, consistent voice with no reference
192
- audio to manage, or when code-switch robustness is the priority.
 
193
 
194
  ---
195
 
@@ -240,8 +297,10 @@ single biggest known lever for improving it.
240
  - **Plain Swahili is behind VoxCPM2** (0.011 vs 0.007 CER).
241
  - **Short-form only.** Eval is single sentences (~4–9 s); long-form and
242
  multi-sentence synthesis are unvalidated.
243
- - **Sampling-sensitive.** Occasional instant-EOS/babble takes need a retry;
244
- budget for it in serving.
 
 
245
  - **Interior transient sharpness rises with training** (median max sample-jump
246
  0.307 at epoch 2 β†’ 0.415 at epoch 10). A jump-threshold detector counts these
247
  as "clicks", but it cannot distinguish a click from a plosive, and listening
@@ -250,11 +309,60 @@ single biggest known lever for improving it.
250
  - **No formal listening study.** Quality confirmed by one native listener, not
251
  a MOS panel.
252
 
253
- ## Licensing
 
 
 
254
 
255
- Derived from Dia-1.6B and trained on a mixed-licence corpus (components include
256
- MIT and CC-BY-4.0 material). **Verify base-model and dataset licence terms
257
- before any external distribution or commercial use.**
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
 
259
  ## Files
260
 
 
1
  ---
2
  language: sw
3
+ license: cc-by-4.0
4
+ base_model: nari-labs/Dia-1.6B
5
  tags:
6
  - text-to-speech
7
  - tts
8
  - swahili
9
+ - kiswahili
10
  - dia
11
  - code-switching
12
+ - african-languages
13
  library_name: dia
14
  pipeline_tag: text-to-speech
15
  ---
16
 
17
  # Sauti TTS β€” Dia-1.6B Swahili (full SFT)
18
 
19
+ Open Swahili text-to-speech from **Msingi-AI**: a full supervised fine-tune of
20
+ [nari-labs/Dia-1.6B](https://huggingface.co/nari-labs/Dia-1.6B) on a 500-hour
21
+ Swahili speech corpus pooled from 15 openly-licensed public datasets.
 
22
 
23
+ This is a **single-voice** model β€” it takes text and speaks it in one learned
24
+ voice. It does not clone voices and needs no reference audio.
 
 
 
25
 
26
+ **It handles code-switching**, English embedded in Swahili sentences, which is
27
+ how a great deal of Swahili is actually spoken and where TTS models commonly
28
+ break down: code-switch CER **0.050** against a multilingual ASR judge.
29
+
30
+ | | Plain Swahili | Code-switched |
31
+ |---|---:|---:|
32
+ | CER | **0.011** | **0.050** |
33
+ | WER | 0.054 | 0.286 |
34
+
35
+ Plain Swahili is scored by a Swahili-tuned ASR judge, code-switch by a
36
+ multilingual one β€” [for a reason](#read-code-switch-with-the-multilingual-judge-only).
37
+ Full tables in [Evaluation](#evaluation).
38
+
39
+ > **Read this before quoting the numbers.** The figures above come from a
40
+ > curated 48-sentence set, generated with ASR-gated retries (up to 4 attempts).
41
+ > On a harder 500-sentence benchmark of **unseen** news text, plain-Swahili CER
42
+ > is **0.021 with retries and 0.060 single-shot**. Retries matter a lot β€” see
43
+ > [Release benchmark](#release-benchmark-500-unseen-sentences-single-shot-vs-retried)
44
+ > for the full picture and for why you should use the retry loop in production.
45
 
46
  ---
47
 
 
90
  python sauti-tts-v2/hpc/dia/patch_dia_fork.py --dia-dir dia-finetuning \
91
  --epochs 1 --eval-step 1 --save-step 1
92
 
93
+ # 3. weights
94
  hf download msingiai/dia --local-dir ./dia-sw
95
  ```
96
 
 
160
  | numbers_dates | 0.267 / 0.067 | 0.025 / 0.006 |
161
  | code_switch | **0.286 / 0.050** | 0.281 / 0.088 |
162
 
163
+ ### Release benchmark: 500 unseen sentences, single-shot vs retried
164
+
165
+ The table above is our curated 48-clip set with ASR-gated retries. Because that
166
+ is both small and curated, we also ran a 500-sentence benchmark on Swahili news
167
+ text (MasakhaNEWS) that **neither this model nor its training corpus has seen** β€”
168
+ each sentence checked against the actual training text and dropped on exact,
169
+ near-duplicate or shared-5-gram match.
170
+
171
+ We report it **both ways**, because the difference is large and you should plan
172
+ for it:
173
+
174
+ | Scope (Swahili judge, WER / CER) | Single-shot | ASR-gated (≀4 attempts) |
175
+ |---|---|---|
176
+ | **overall_plain_sw** | 0.154 / **0.060** | 0.095 / **0.021** |
177
+ | general | 0.081 / 0.015 | 0.083 / 0.015 |
178
+ | named_entities | 0.285 / **0.133** | 0.115 / **0.025** |
179
+ | numbers_dates | 0.097 / 0.033 | 0.088 / 0.025 |
180
+ | code_switch | 0.112 / 0.036 | 0.112 / 0.036 |
181
+
182
+ **What this means in practice:**
183
+
184
+ 1. **Use the retry loop in production.** It cuts plain-Swahili CER by ~65%
185
+ (0.060 β†’ 0.021). Generation is sampling-sensitive; a failed take is usually
186
+ fixed by re-rolling, and one check-ASR pass is far cheaper than shipping bad
187
+ audio.
188
+ 2. **Named entities are the weak spot.** Single-shot they degrade 5Γ— (CER 0.133
189
+ vs 0.025 gated) β€” proper nouns are rare tokens and destabilise sampling. If
190
+ your text is name-heavy (news, directories, announcements), retries are not
191
+ optional.
192
+ 3. **Code-switch is stable either way** β€” identical with and without retries, so
193
+ its quality comes from the model rather than from re-rolling.
194
+ 4. Numbers on this set are higher than on the curated 48-clip set (0.021 vs
195
+ 0.011 gated). News prose is harder and carries source typos and
196
+ quote-splitting artefacts that count against the model. Use the 48-clip
197
+ figure only for comparison against our other models on that same set; use
198
+ **this** table to predict real-world behaviour.
199
+
200
  ### Read code-switch with the multilingual judge only
201
 
202
  `Jacaranda-Health/ASR-STT` is Swahili-only and **cannot transcribe English
 
230
  UTMOS was deliberately **not** run: it is English-trained and unreliable for
231
  Swahili.
232
 
233
+ ### How it compares in our internal bake-off
234
+
235
+ Same 48-clip set, same judges, so these are directly comparable. The other rows
236
+ are internal reference points and are **not** part of this release.
237
 
238
  | Model | Plain SW CER | Code-switch CER (multilingual) | Voice cloning |
239
  |---|---:|---:|---|
240
+ | VoxCPM2 full SFT *(not released)* | **0.007** | 0.047 | βœ… zero-shot |
241
  | **this model (Dia full SFT e10)** | 0.011 | **0.050** | ❌ single voice |
242
+ | VoxCPM2 LoRA, 300 steps *(not released)* | 0.012 | β€” | βœ… |
243
+ | Chatterbox LoRA e30 *(not released)* | 0.022 | β€” | prompt-based |
244
+ | CosyVoice3 e1 *(not released)* | 0.029 | β€” | βœ… |
245
 
246
+ We publish the comparison rather than only our best number: on plain Swahili a
247
+ VoxCPM2 fine-tune scores better than this model. This model is competitive on
248
+ plain Swahili, stronger on code-switching, and needs no reference audio to
249
+ manage β€” which is why it is the one we release.
250
 
251
  ---
252
 
 
297
  - **Plain Swahili is behind VoxCPM2** (0.011 vs 0.007 CER).
298
  - **Short-form only.** Eval is single sentences (~4–9 s); long-form and
299
  multi-sentence synthesis are unvalidated.
300
+ - **Sampling-sensitive β€” budget for retries.** Single-shot plain-Swahili CER is
301
+ 0.060 vs 0.021 with ASR-gated retries. **Named entities are worst affected**
302
+ (0.133 vs 0.025). Occasional takes come back as instant-EOS or babble and are
303
+ fixed by re-rolling.
304
  - **Interior transient sharpness rises with training** (median max sample-jump
305
  0.307 at epoch 2 β†’ 0.415 at epoch 10). A jump-threshold detector counts these
306
  as "clicks", but it cannot distinguish a click from a plosive, and listening
 
309
  - **No formal listening study.** Quality confirmed by one native listener, not
310
  a MOS panel.
311
 
312
+ ## Responsible use
313
+
314
+ Carried over from the [Dia-1.6B](https://huggingface.co/nari-labs/Dia-1.6B)
315
+ disclaimer, and it applies here too:
316
 
317
+ - **Do not use this model to impersonate a real person** without their explicit
318
+ consent.
319
+ - **Do not use it to generate deceptive or misleading content** (fake news,
320
+ fraudulent audio, misrepresentation).
321
+ - Do not use it for illegal or harmful purposes.
322
+
323
+ By using this model you accept responsibility for upholding the relevant legal
324
+ and ethical standards in your jurisdiction. The voice in this model is learned
325
+ from a pooled multi-speaker corpus and is not intended to represent any
326
+ identifiable individual.
327
+
328
+ ## Licence and attribution
329
+
330
+ **This model is released under [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/).**
331
+ You may use it commercially, modify it, and redistribute it, provided you give
332
+ attribution.
333
+
334
+ CC-BY-4.0 is chosen because the training data carries CC-BY attribution
335
+ requirements which must be passed on; the base model is Apache-2.0, which is
336
+ compatible.
337
+
338
+ ### Base model
339
+
340
+ | Model | Licence |
341
+ |---|---|
342
+ | [nari-labs/Dia-1.6B](https://huggingface.co/nari-labs/Dia-1.6B) | Apache-2.0 |
343
+
344
+ ### Training data
345
+
346
+ All sources are openly licensed. Attribution below satisfies CC-BY-4.0; please
347
+ carry it forward if you redistribute derivatives.
348
+
349
+ | Source | Dataset | Licence |
350
+ |---|---|---|
351
+ | WAXAL `swa_tts` | [google/WaxalNLP](https://huggingface.co/datasets/google/WaxalNLP) | CC-BY-4.0 |
352
+ | FLEURS Swahili (KE) | [google/fleurs](https://huggingface.co/datasets/google/fleurs) | CC-BY-4.0 |
353
+ | AfriVoice Swahili (agriculture, education, financial, government, health) | [DigitalUmuganda/Afrivoice_Swahili](https://huggingface.co/datasets/DigitalUmuganda/Afrivoice_Swahili) | CC-BY-4.0 |
354
+ | Swahili Speech 400h | [badrex/swahili-speech-400hr](https://huggingface.co/datasets/badrex/swahili-speech-400hr) | CC-BY-4.0 |
355
+ | YodaLingua Swahili | [Thomcles/YodaLingua-Swahili](https://huggingface.co/datasets/Thomcles/YodaLingua-Swahili) | CC-BY-4.0 |
356
+ | Kiswahili TTS | [Bateesa/kiswahili-tts-dataset](https://huggingface.co/datasets/Bateesa/kiswahili-tts-dataset) | CC-BY-4.0 |
357
+ | Swahili TTS | [jacksonwambali/swahili-tts-dataset](https://huggingface.co/datasets/jacksonwambali/swahili-tts-dataset) | CC-BY-4.0 |
358
+ | Kenyan Swahili (non-standard) | [cdli/kenyan_swahili_nonstandard_speech_v1.0](https://huggingface.co/datasets/cdli/kenyan_swahili_nonstandard_speech_v1.0) | CC-BY-4.0 |
359
+ | Swahili words parallel | [michsethowusu/swahili-words-speech-text-parallel](https://huggingface.co/datasets/michsethowusu/swahili-words-speech-text-parallel) | CC-BY-4.0 (audio originally published by the International Bible Association) |
360
+ | STEM Swahili speech | [stem-content-ai-project/swahili-speech](https://huggingface.co/datasets/stem-content-ai-project/swahili-speech) | MIT |
361
+ | OpenSLR-25 (ALFFA) | [openslr.org/25](https://www.openslr.org/25/) | MIT |
362
+ | Common Voice 17 Swahili | [mozilla-foundation/common_voice_17_0](https://huggingface.co/datasets/mozilla-foundation/common_voice_17_0) | CC0-1.0 at time of corpus build; Mozilla moved Common Voice to the Mozilla Data Collective in Oct 2025 β€” check current terms for your use case |
363
+
364
+ Our thanks to every dataset author above. Swahili speech technology exists
365
+ because people chose to release this data openly.
366
 
367
  ## Files
368