Downloads · 30 days
8
4% of all-time downloads
Raggio/dondza-xitsonga-asr-wav2vec2
dondza-xitsonga-asr-wav2vec2 is a automatic speech recognition model from Raggio. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as other.
Dondza-Xitsonga Wav2Vec2 is a Xitsonga Automatic Speech Recognition (ASR) model fine-tuned in the context of the Dondza project (Raggio AI) from the pretrained checkpoint facebook/wav2vec2-xls-r-300m.
Downloads · 30 days
8
4% of all-time downloads
All-time downloads
213
Public
Parameters
315M
1.3 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors1.3 GB · 100%
From the Hugging Face model README
Dondza-Xitsonga Wav2Vec2 is a Xitsonga Automatic Speech Recognition (ASR) model fine-tuned in the context of the Dondza project (Raggio AI) from the pretrained checkpoint facebook/wav2vec2-xls-r-300m.
To our knowledge, this is among the first Mozambican-developed and publicly released end-to-end ASR models for Xitsonga.
(If you are aware of earlier Mozambican releases, please share them — we welcome corrections.)
This repository provides a fine-tuned ASR checkpoint and related files.
The model weights/checkpoint and associated files in this repo are released under the Dondza Non-Commercial Model License.
If you want to use this model commercially (including deploying it in a commercial product/service or using it to power a paid offering), you must obtain a Commercial License from Raggio AI.
How to request a commercial license:
We can offer:
Even though this repo uses a custom license for the fine-tuned checkpoint, it also depends on upstream components with their own licenses.
facebook/wav2vec2-xls-r-300m (Apache-2.0)When redistributing or using this repo, you must also comply with any applicable upstream notice and attribution requirements.
This model was fine-tuned on the NCHLT Xitsonga Speech Corpus (approx. 56 hours of read speech).
Required attribution (dataset):
The Department of Arts and Culture of the government of the Republic of South Africa (DAC), the Council for Scientific and Industrial Research (CSIR), and North-West University (NWU), for the NCHLT Speech Corpus.
lm_head.weight, lm_head.bias) is newly initialized for the Xitsonga vocabulary and learned during fine-tuning. This is expected for CTC fine-tuning.This model was fine-tuned on the NCHLT Speech Corpus (Xitsonga):
The NCHLT corpus is primarily read speech. Real-world conversational audio (noise, code-switching, phone recordings) may produce higher error rates.
| split | utterances | unique_speakers | duration_hours | duration_hms |
|---|---|---|---|---|
| train | 44924 | 190 | 52.658 | 52:39:29 |
| val | 2247 | 188 | 2.595 | 02:35:42 |
| test | 2905 | 8 | 3.609 | 03:36:31 |
The train and validation speaker sets are disjoint (no overlap), so validation results reflect generalisation to unseen speakers.
Best checkpoint (selected by lowest validation WER):
import torch
import librosa
from transformers import Wav2Vec2Processor, Wav2Vec2ForCTC
model_id = "Raggio/dondza-xitsonga-asr-wav2vec2"
processor = Wav2Vec2Processor.from_pretrained(model_id)
model = Wav2Vec2ForCTC.from_pretrained(model_id)
audio, sr = librosa.load("audio.wav", sr=16000)
inputs = processor(audio, sampling_rate=16000, return_tensors="pt", padding=True)
with torch.no_grad():
logits = model(**inputs).logits
pred_ids = torch.argmax(logits, dim=-1)
text = processor.batch_decode(pred_ids)[0]
print(text)