Instructions to use rootabytes/Rootal-Twi-ASR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use rootabytes/Rootal-Twi-ASR with PEFT:
from peft import PeftModel from transformers import AutoModelForSpeechSeq2Seq base_model = AutoModelForSpeechSeq2Seq.from_pretrained("katrintomanek/whisper-large-v3-turbo_Akan_standardspeech_specaugment") model = PeftModel.from_pretrained(base_model, "rootabytes/Rootal-Twi-ASR") - Notebooks
- Google Colab
- Kaggle
Rootal-Twi-ASR: Asante Twi speech recognition (Whisper large-v3-turbo LoRA adapter, round R14)
A LoRA adapter for Asante Twi speech recognition, built on
katrintomanek/whisper-large-v3-turbo_Akan_standardspeech_specaugment (Whisper large-v3-turbo already
fine-tuned on Akan standard speech).
Word error rate: 17.5% (beam search, 4 beams) on 89 held-out recordings from the Learner Visibility Platform (LVP) set. Read this figure with care:
- 89 clips from 3 speakers is a small test. 50 of the 89 come from a speaker who is not in the training data.
- The answers are short and repetitive. 22 of the 89 test transcripts also appear, word for word, in the training data (spoken by a different recording).
It was built for one narrow job: transcribing spoken answers to the 10 reporting questions of the Learner Visibility Platform, an out-of-school children reporting tool. It has not been used in the field: every report in the 2026 Bosomtwe District pilot was typed.
Training data (round R14, 2,743 training rows)
| Source | Used for | Notes |
|---|---|---|
| LVP Twi recordings (private) | Training (500 clips) and evaluation (89 clips) | 589 recordings by 6 speakers, recorded through the RootAL annotation platform (rootal.ai) as answers to the 10 LVP reporting questions. Not field reports. Each training clip was used five times: three copies plus 0.9x and 1.1x speed versions (2,500 rows) |
| Common Voice Twi (Mozilla, CC0) | Training (243 clips) | The validated clips of the Twi (tw) locale, each used once |
Not used in this round: ghananlpcommunity/twi-speech-text-multispeaker-16k was downloaded, but none of its rows
passed the training script's audio-file check, so it contributed nothing to training or evaluation. No synthetic
speech was used.
Training configuration
- Base model:
katrintomanek/whisper-large-v3-turbo_Akan_standardspeech_specaugment - LoRA: rank 32, alpha 64, dropout 0.05, on q/k/v/out_proj and fc1/fc2
- Optimiser: learning rate 1e-4, weight decay 0.01, 500 warm-up steps; stopped early at step 3,600
- Language token: none (Twi is not in Whisper's language list, so the model learns Twi from the labels)
- Decoding against loops:
condition_on_prev_tokens=False,repetition_penalty=1.2,no_repeat_ngram_size=3 - Quantization during training: 8-bit (bitsandbytes)
- WER normalisation: Unicode NFC, lowercase, keeps the Twi letters ɛ and ɔ
Limitations
- Narrow domain: tuned for short answers to the LVP questions, not general Twi speech.
- Small evaluation set (89 clips, 3 speakers), with some sentence overlap with training (see above).
- Little real recorded Twi: 500 training recordings from 6 speakers. Two later rounds scored worse on a 60-clip LVP test (R16, 8,888 training rows including public Twi speech datasets: 21.3%; R17: 20.3%), so adding public data with other transcription styles did not help.
- Twi-to-English translation is not fine-tuned.
Citation
@misc{akasiya2026rootaltwiasr,
author = {Akasiya, Timothy Aguya},
title = {Rootal-Twi-ASR: Asante Twi speech recognition},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/rootabytes/Rootal-Twi-ASR}
}
@inproceedings{ardila2020common,
title = {Common Voice: A Massively-Multilingual Speech Corpus},
author = {Ardila, Rosana and others},
booktitle = {LREC},
year = {2020}
}
@article{radford2022robust,
title = {Robust Speech Recognition via Large-Scale Weak Supervision},
author = {Radford, Alec and others},
journal = {arXiv:2212.04356},
year = {2022}
}
@article{hu2021lora,
title = {LoRA: Low-Rank Adaptation of Large Language Models},
author = {Hu, Edward J and others},
journal = {arXiv:2106.09685},
year = {2021}
}
- Downloads last month
- 18
from peft import PeftModel from transformers import AutoModelForSpeechSeq2Seq base_model = AutoModelForSpeechSeq2Seq.from_pretrained("katrintomanek/whisper-large-v3-turbo_Akan_standardspeech_specaugment") model = PeftModel.from_pretrained(base_model, "rootabytes/Rootal-Twi-ASR")