Phase XI = the Phase X acoustic model + a rebuilt 4.1 MB language model + a re-tuned decoder.
There is no new acoustic training. model.safetensors is byte-identical to the Phase X / Phase 10 weights (same SHA-256).
Every difference between Phase X and Phase XI therefore comes from decoding, and you can verify that yourself.
Status: Release candidate. Decoder bake-off complete; independent held-out verification pending. The headline number below is from a dev set the decoder was tuned on.
Try it without code: Voxira demo Space
This model transcribes the way educated Nigerians actually speak: Yorùbá and English in the same sentence ("Mo ti transfer owó náà, ṣùgbọ́n account balance mi kò yí padà.").
| Phase X | Phase XI | |
|---|---|---|
| Acoustic weights | Phase 10 fine-tune | identical (SHA-256 below) |
| Language model | 5-gram KenLM, large unigram list | 4-gram KenLM c50k_prune, 4.1 MB |
| LM weight (alpha / beta) | 2.0 / 1.5 | 0.3 / 0.5 |
| LM training text | ~366k lines, dominated by religious text and templated loops | 50k lines, entropy-balanced, templated openings capped, conversational/banking text up-weighted 4x, singleton n-grams pruned (--prune 0 1 1 2) |
Why Phase X under-performed on everyday English. Per our corpus audit, the Phase X LM text was ~85.6% Yorùbá and ~1.2% English, with 3,700+ lines opening "E BE LIKE SAY". With alpha=2.0 the decoder trusted that LM more than the audio, so English words in code-switched speech were pulled toward Yorùbá look-alikes. Phase XI removes the skew (8,144 templated lines dropped by a per-opening cap of 400) and lets the acoustics lead (alpha=0.3).
All scores are normalised the same way: uppercase, NFC, all punctuation removed from both prediction and reference
(the vocabulary emits no punctuation). no-tone additionally removes tone marks (grave/acute/macron, underdots kept);
plain removes all diacritics. Predictions pass through phonetic_map.json exactly as in the Quickstart.
Not yet measured for Phase XI. Run deploy_phaseXI.py with VOXIRA_HELDOUT_MANIFEST set (it scores greedy, Phase X and Phase XI on identical logits) and this section fills itself in. Previously reported on the 55-clip held-out set (Phase X card): Phase 10 = 12.33%, Phase X = 7.09%.
The 100 dev clips are drawn from AR_Audios, and the Phase X card established that only 55 of its ~550 clips were excluded from acoustic fine-tuning. Unless the 100 clips are a subset of those 55, some were seen by the acoustic model. Do not read 4.5% as a generalisation estimate.
| Variant | Language model | LM size | WER | no-tone WER | plain WER | CER |
|---|---|---|---|---|---|---|
| Deployed Phase X | 5-gram, alpha=2.0, beta=1.5 | — | 8.0% | 8.0% | 7.9% | 1.8% |
| Greedy (no LM) | none (acoustic only) | 0 MB | 4.5% | 4.3% | 4.0% | 1.1% |
| Full corpus, unpruned | 366k lines, alpha=0.3, beta=0.5 | 92 MB | 4.5% | 4.3% | 4.0% | 1.0% |
| c100k pruned | 100k lines, alpha=0.3, beta=1.5 | 7 MB | 5.0% | 4.8% | 4.5% | 1.2% |
Phase XI c50k_prune |
50k balanced + pruned, alpha=0.3, beta=0.5 | 4.1 MB | 4.5% | 4.3% | 4.0% | 1.1% |
Read this table honestly. Greedy decoding (no language model) already scores 4.5%, the same as the winning LM. On this set the Phase XI LM does not lower WER; what the move from Phase X (8.0%) to Phase XI (4.5%) shows is that Phase X's heavy LM weighting was hurting. Phase XI's LM is a small, safe tie-breaker that also keeps domain vocabulary in the beam. Its benefit on rare words (names, places, bank and product terms) has not yet been demonstrated, and we do not claim it. The 4.1 MB LM is ~22x smaller than the 92 MB unpruned full-corpus LM (4.5% WER, same score). The configuration was selected on this same set, so the numbers are optimistically biased.
ABCDEFGHIJKLMNOPRSTUVWY
plus ÀÁÈÉÌÍÒÓÙÚŃṢẸỌ). About 1.3% of English reference words contain one, which sets an error floor. phonetic_map.json
patches a few frequent cases (ZERO, EXAM, TAX, ZENITH). Phase XII will extend the output layer.AR_Audios); confidence intervals are wide. Validate on
your own audio before relying on any single number.pip install torch transformers pyctcdecode kenlm librosa
import json, re, unicodedata
import torch, librosa
from huggingface_hub import hf_hub_download
from transformers import Wav2Vec2ForCTC, Wav2Vec2ProcessorWithLM
REPO_ID = "Awesome-x/voxira-yoruba-phaseXI"
device = "cuda" if torch.cuda.is_available() else "cpu"
model = Wav2Vec2ForCTC.from_pretrained(REPO_ID).to(device).eval()
processor = Wav2Vec2ProcessorWithLM.from_pretrained(REPO_ID) # includes the 4.1 MB KenLM
with open(hf_hub_download(REPO_ID, "phonetic_map.json"), encoding="utf-8") as f:
PATTERNS = [(re.compile(p), r) for p, r in json.load(f).items()]
def clean_transcript(text):
text = unicodedata.normalize("NFC", text).upper()
for pat, rep in PATTERNS:
text = pat.sub(rep, text)
text = re.sub(r"[^\w\s]", "", text)
return re.sub(r"\s+", " ", text).strip()
audio, _ = librosa.load("sample.wav", sr=16000, mono=True) # always resample to 16 kHz mono
inputs = processor(audio, sampling_rate=16000, return_tensors="pt")
with torch.no_grad():
logits = model(inputs.input_values.to(device)).logits
raw = processor.decode(logits[0].cpu().numpy()).text
print(clean_transcript(raw))
Tip: split audio longer than ~30 s into chunks before decoding.
| Artifact | Value |
|---|---|
model.safetensors SHA-256 |
dc816966ce8ab659088524d91504455650cd8ba04d7f3151f112fabec0e906e4 |
KenLM binary (c50k_prune) SHA-256 |
5b5c9104c1f9779d8c52a60d884b7ce68b36224fda7cbda09dca85a577611461 |
| KenLM order / size | 4 / 4.1 MB |
| Decoder | pyctcdecode, alpha=0.3, beta=0.5, beam_width=100 |
| Unigram list | 47,017 words, policy lm_vocab |
| Library versions | torch 2.10.0+cu128, transformers 5.0.0, pyctcdecode ?, kenlm ?, huggingface_hub 1.10.1, librosa 0.11.0 |
| Built | 2026-11-09 18:23 UTC |
eval_results.json in this repo holds the raw numbers behind this card, and deploy_phaseXI.py reproduces the build.
The LM is only 4.1 MB, but the acoustic model is ~1.2 GB (0.3B parameters, F32), so cold-start time is dominated by the weights, not the language model. For serverless GPU hosts, bake the weights into the image or a volume rather than downloading on every start, and test fp16 for WER parity before enabling it.
Phase XII: add Q/X/Z tokens (59,104 sentences containing them are held in reserve), larger independent held-out set, domain term and named-entity evaluation, Pidgin data.
@misc{voxira_yoruba_phaseXI,
title = {Voxira Yoruba Phase XI: Yoruba-English code-switching ASR},
author = {Voxira},
year = {2026},
url = {https://huggingface.co/Awesome-x/voxira-yoruba-phaseXI}
}
model.safetensors 1.3 GBlanguage_model/c50k_prune.bin 4 MB