An Nguni language-focused speech recognition model for research and academic use.
Stargate Africa's Ukuzola-0.24B is the Nguni variant of the entry-level model in Stargate Africa's family of speech recognition models. The Nguni languages are a group of Bantu languages spoken in southern Africa (mainly South Africa, Zimbabwe and Eswatini) by the Nguni people. Based on OpenAI's Whisper Small, it is designed to advance research into automatic speech recognition (ASR) for Zulu (isiZulu), Xhosa (isiXhosa), Ndebele (isiNdebele) and Swati (Siswati), with a particular focus on South African accents, speech patterns and language use.
The Stargate Africa speech recognition family aims to expand access to speech technology for South Africa's languages and communities. This initial release establishes a foundation for evaluating Zulu (isiZulu), Xhosa (isiXhosa), Ndebele (isiNdebele) and Swati (Siswati) speech recognition and developing more inclusive speech technologies tailored to the country's linguistic diversity.
Intended use: Research, academic study, experimentation, and evaluation.
Important: This model is intended for research and academic purposes. Commercial use requires separate authorization under the applicable model license. Please contact contact@stargateafrica.org for more capable models.
zu xh nr sswZulu (isiZulu) and Xhosa (isiXhosa) are the two largest home languages in South Africa with 15 million and 10 million speakers respectively. Approximately 2 million people speak Swati (Siswati) and another 1 million Ndebele (isiNdebele).
These figures describe approximate first-language speaker numbers, rather than everyone who can speak Zulu (isiZulu), Xhosa (isiXhosa), Ndebele (isiNdebele) and Swati (Siswati) as an additional language.
| Property | Description |
|---|---|
| Model family | Ukuzola |
| Model identifier | Ukuzola-0.24B |
| Base model | OpenAI Whisper Small |
| Primary language | Zulu Xhosa Swati Ndebele |
| Primary deployment region | South Africa |
| Task | Automatic speech recognition (ASR) |
| Intended audience | Researchers and academic users |
| Commercial use | Requires separate authorization under the applicable license |
The model should be evaluated against appropriate Zulu (isiZulu), Xhosa (isiXhosa), Ndebele (isiNdebele) and Swati (Siswati) speech datasets to establish its recognition accuracy and limitations.
Control model: ggml-whisper-small.bin
Test model: ggml-Ukuzola-0.24B.bin
| Language | Utterances | Control WER | Test WER | Δ Test-Control |
|---|---|---|---|---|
| nr | 100 | 1.708 | 0.069 | -1.639 |
| ssw | 100 | 1.971 | 0.075 | -1.896 |
| xh | 99 | 1.826 | 0.039 | -1.787 |
| zu | 97 | 1.462 | 0.182 | -1.280 |
The benchmark dataset is comprised of a 50/50 split between DSFSI and NCHLT test splits.
For help with PyWhisperCPP please visit https://github.com/absadiki/pywhispercpp
from pathlib import Path
from huggingface_hub import hf_hub_download
from pywhispercpp.model import Model
def main() -> None:
# Download the model from Hugging Face
model_path = hf_hub_download(
repo_id="StargateAfrica/Ukuzola-0.24B",
filename="ggml-Ukuzola-0.24B.bin",
)
# Validate the input audio
audio_path = Path("zu.wav")
if not audio_path.is_file():
raise FileNotFoundError(
f"Audio file not found: {audio_path.resolve()}"
)
# Load the Whisper-compatible model
model = Model(
model_path,
language="zu",
n_threads=8,
no_timestamps=True,
single_segment=True,
)
# Transcribe the audio
segments = model.transcribe(
str(audio_path),
language="zu",
n_threads=8,
)
# Print the combined transcription
transcription = " ".join(
segment.text.strip()
for segment in segments
if getattr(segment, "text", "").strip()
).strip()
print(transcription)
if __name__ == "__main__":
main()
Ukuzola-0.24B is intended to support research into ASR and the development of speech technologies for South African users.
Potential research applications include:
Recognition performance may vary with accent, dialect, speaking rate, background noise, recording quality, code-switching and domain-specific vocabulary. Users should independently evaluate the model for their intended application.
This release should not be assumed to provide production-grade accuracy or to perform equally well across all Zulu (isiZulu), Xhosa (isiXhosa), Ndebele (isiNdebele) and Swati (Siswati)-speaking communities.
This model is released under apache-2.0 (apache-2.0).
The license governs permitted use, redistribution and other applicable conditions. Not intented for commercial use.
Please consult the license terms before using, adapting or redistributing the model.