This model is a fine-tuned version of
NCAIR1/NigerianAccentedEnglish, which is itself a
whisper-small model previously adapted for Nigerian-accented English. This repository continues that adaptation with an additional round of supervised fine-tuning, targeting the well-known problem that mainstream ASR systems (trained mostly on American/British English) show elevated error rates on African-accented speech. The result is a Whisper-based transcription model oriented toward Nigerian-accented English audio.
These numbers come directly from the training run's logged metrics. The training dataset itself is not documented in this repository, so the WER above should be read as an internal validation-set result from that run rather than a benchmark on a public, named test set.
Not intended for: languages other than English, heavily code-switched audio without further adaptation, or high-stakes decisions made without human review.
1import torch
2import librosa
3from transformers import WhisperProcessor, WhisperForConditionalGeneration
4
5model_id = "Ephraimmm/asrfinetuned"
6
7processor = WhisperProcessor.from_pretrained(model_id)
8model = WhisperForConditionalGeneration.from_pretrained(model_id)
9
10# Load audio resampled to 16 kHz (required by the feature extractor)
11audio, sr = librosa.load("path/to/audio.wav", sr=16000)
12
13input_features = processor(
14 audio, sampling_rate=sr, return_tensors="pt"
15).input_features
16
17with torch.no_grad():
18 predicted_ids = model.generate(input_features)
19
20transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)
21print(transcription[0])
1from transformers import pipeline
2
3asr = pipeline("automatic-speech-recognition", model="Ephraimmm/asrfinetuned")
4result = asr("path/to/audio.wav")
5print(result["text"])