Ewe ASR (w2v-BERT CTC)
Author: Prince Nasamu Alhassan
Overview
Updated 18 Oct 2026: this repo now holds the Ewe recogniser the Tɛkyerɛma language service uses. The September model below was continued for 2,128 steps on 25,730 clips (96.5 h) of WAXAL Ewe and open-Bible Ewe, and it improved on both test sets:
| test set | WER before → after | CER before → after |
|---|---|---|
| WAXAL Ewe (many speakers) | 0.361 → 0.344 | 0.106 → 0.101 |
| Bible Ewe | 0.581 → 0.236 | 0.162 → 0.077 |
The September version is revision adaf5c6d802e37c8314e882b50c2a8b1a94cc2dd. The sections "Measured" to "Status"
below are that version's record, kept because a negative result that is deleted has to be rediscovered.
Use it
import torch, soundfile as sf
from transformers import AutoProcessor, AutoModelForCTC
repo = "PrinceAlhassanNasamu/tekyerema-asr-ctc-ewe-v3"
proc = AutoProcessor.from_pretrained(repo)
model = AutoModelForCTC.from_pretrained(repo).eval()
wav, sr = sf.read("clip.wav", dtype="float32") # 16 kHz mono
inp = proc(wav, sampling_rate=16_000, return_tensors="pt")
with torch.no_grad():
logits = model(**inp).logits
print(proc.batch_decode(logits.argmax(-1))[0])
Measured (September version)
2026-09-01 05:45 UTC, same three configs, same 100 clips, same harness, WER:
| config | tekyerema-asr-mms-ewe | this model |
|---|---|---|
bible_Ewe_ewe | 50.7 | 57.8 |
jw_ewe_ewe | 70.9 | 76.7 |
unicef_ewe | 56.9 | 58.9 |
| mean WER | 59.5 | 64.5 |
| mean CER | 17.8 | 18.8 |
It loses on all three, by about five WER points.
Why, and why that is the useful part
Read the base_model field: gjn_maw_gur_dag_dga_kus_lxn_wlx_xon_xsm_en.
Ewe is not in that list. The KhayaAI northern-Ghana bundle had never
seen the language, so ɖ, ɗ and ƒ entered the vocabulary as randomly
initialised embeddings.
It trained on waxal_ewe (14,050 rows) plus the Ewe navigation corpus
(6,000) — more Ewe data than the MMS adapter had — and still lost. It
launched minutes before the expanded source catalogue landed, so it never
saw UNICEF, the Bible sets or the rest.
The conclusion the project drew: a narrow mix from a fresh, wrong base loses to a broader mix from a right one, and a wrong base cannot be rescued by adding data. That is the whole argument for the Twi v2 run being a CONTINUATION rather than a restart.
A scoring correction this model forced
The configs above are the CLEAN ones, and working that out changed which
they were. An earlier version of the eval scored v3 on the assumption it
had trained on UNICEF and Bible sources. Its own log said otherwise: it
trained on waxal_ewe, which makes waxal_Ewe_ewe the contaminated
config and unicef_ewe a clean one — the opposite of what was written.
Scoring it the old way would have dropped a config it never saw and
reported one it trained on.
The same correction caught the MMS model's published mean: 54.8 / 16.1
is retracted, because it averaged in waxal_Ewe_ewe, where that model
scores 40.5 — its best result anywhere, and its own training set. The
honest figure is the 59.5 / 17.8 above.
Recipe
LR 3e-5, 3 epochs, batch 64, final validation loss 0.4488 over 942 steps.
Status
September version: rejected, not to be presented as an improvement. The 18 Oct version above replaced it. Kept public because a negative result that is deleted has to be rediscovered.
Limitations, stated plainly
- A validation loss is not a benchmark. Several cards on this account used to print the training run's own eval loss under a heading that read like a result. Where this card gives a WER or CER it names the slice and the scorer; where no such number exists it says the model is unscored.
- Scripture-derived audio does not generalise to speech. The Kusaal
and much of the Ewe material is read scripture with a small number of
narrators. Held out by CLIP rather than by SPEAKER it produces scores
that look excellent and mean nothing -- the public
bible_Kusaalfigure of 11.69 is invalid for exactly this reason and must never be quoted. - Evaluation is on read and machine-translated text. No corpus of people speaking natural phone commands in these languages exists. Numbers measured this way are optimistic about phrasing and pessimistic about code-switching, and should not be read as field performance.
- Research work from a hackathon entry, not a supported product.
The rest of the family
Twi — tekyerema-asr-ctc (v1, w2v-BERT CTC) · tekyerema-asr-ctc-twi-v2 (continuation)
Kusaal — tekyerema-asr-mms-kus (MMS adapter, the one to use) · tekyerema-asr-ctc-kus-v2 (new w2v-BERT line) · kasa42-asr (third-party baseline)
Ewe — tekyerema-asr-mms-ewe (the one to use) · tekyerema-asr-ctc-ewe · tekyerema-asr-ctc-ewe-v3
Other recognisers — tekyerema-asr-mms-dag · tekyerema-asr-mms-hau · whisper-large-v3-turbo-tekyerema-eng
Voices — tekyerema-tts-twi · tekyerema-tts-kus · tekyerema-tts-ewe · tekyerema-tts-hau · tekyerema-tts-eng
Agent models — tekyerema-1-v2-tool-pilot · tekyerema-1-native-v2-tool-pilot · tekyerema-audio-native-4k
Translation & routing — tekyerema-nllb600m-v1 · kusaal-nllb-600M · tekyerema-intent-afroxlmr
Acknowledgements
Compute resources provided by AI Skills and Compute Africa (AISCA).
Trained on the Ghana NLP H200 GPU and on Kaggle T4s. Please keep
derivatives non-commercial and share improvements back with the Ghana NLP
community (ghananlpcommunity).