Research5 min read

Teaching a machine to hear Krio: what our first speech model can and can't do

We trained a Krio speech recognition model on 26.5 hours of read-aloud audio and got a 4.91% word error rate. Here's what that number means, and what it doesn't.

By Moses Joshua Coker

Krio is the language most Sierra Leoneans share. Millions of people use it every day, whatever their first language is. Very little software can hear it. Ask a general-purpose speech recognition system to transcribe Krio and you mostly get English words that sound vaguely similar, because those systems heard little or no Krio during training.

We wanted to know how far a small, carefully built dataset could go. This post covers what we built, the numbers we got, and how to read them. We give equal space to what the model has not been tested on.

The data

Everything starts with transcribed audio, and for Krio there isn't much of it. Our training and evaluation set is 26.5 hours of read-aloud Krio: one narrator, recorded cleanly, reading scripture (Psalms, Genesis and other books) with a matching written transcript for every passage.

That source has real strengths. The transcripts are accurate, the audio is clean, and the vocabulary is large and consistent. It also has clear limits, which come up again below:

  • One voice. Every recording comes from the same speaker.
  • Formal, read speech. No conversation, no hesitations, no talking over each other.
  • Pure Krio. None of the English–Krio code-switching that is normal in everyday speech.
  • No numbers. The text spells nothing out as digits, so the model has never learned to write "2026" or a phone number.

We split the data by recording session, so no session appears in both training and testing. That stops the model being scored on audio it has effectively already heard. With only one speaker, though, it can't tell us how the model handles a voice it has never heard.

You can read more about how we collect and clean Krio data in our data pipeline write-up.

The model

We didn't train from scratch. We started from W2V-BERT 2.0, a speech encoder Meta pretrained on millions of hours of unlabelled audio in well over a hundred languages. That pretraining means the model already knows a lot about how human speech sounds before it hears any Krio. Our job was to teach it how Krio sounds map to written Krio.

On top of the encoder we trained a CTC output layer. It predicts a character for each short slice of audio, and those predictions are collapsed into text. The full model has about 580 million parameters.

The results

On held-out test recordings:

MetricResult
Word error rate (WER)4.91%
Character error rate (CER)1.88%
WER on words not at a chunk boundary3.1%

Roughly, the model gets about one word in twenty wrong, and fewer than two characters in a hundred. Many of the word errors are near misses (a single wrong letter) rather than a completely wrong word.

A bug in our evaluation, not the model

The third row needs explaining. To evaluate long recordings, we cut the audio into fixed-length windows. A window boundary often lands in the middle of a word, so the model hears half a word at the end of one window and the other half at the start of the next. It gets those split words wrong much more often.

When we scored only the words that sat fully inside a window, the error rate dropped to about 3.1%. So part of the 4.91% comes from how we fed audio to the model, not from the model itself. Overlapping windows, or cutting at pauses instead of at fixed intervals, should recover most of that gap. We report 4.91% as the headline because that is what the system actually produced.

What these numbers don't tell you

A 4.91% word error rate is a strong result for this kind of audio. It isn't evidence that the model works on the speech most people want transcribed. We haven't yet measured how it does on:

  • voices other than our narrator's, including different ages, genders and regional accents;
  • conversational speech, phone calls or voice notes;
  • noisy recordings such as street audio, cheap microphones or compressed WhatsApp files;
  • sentences that switch between Krio and English;
  • numbers, names and new vocabulary.

On any of these, we'd expect the error rate to go up, possibly by a lot. Until we can measure it, we won't publish a figure for those settings.

We think it's worth saying this plainly. African languages are often represented by one impressive benchmark number, and people find out about its limits later. We'd rather you know them now.

What we learned

A small, clean dataset goes further than we expected. With a strong multilingual starting point, 26.5 hours was enough to get a usable Krio transcriber in one setting. For other Krio speakers and builders, the message is that you don't need thousands of hours to make real progress.

Evaluation details matter as much as the model. The chunk-boundary problem was only visible because we looked at which words were wrong, not just how many. One summary number would have hidden it.

The next gains will come from data diversity, not data volume. More hours of the same narrator would teach the model very little new. The next stage needs many speakers, everyday conversation, real-world recording conditions and code-switched speech.

What's next

We're working on:

  1. a multi-speaker evaluation set, so we can report how the model handles voices it has never heard;
  2. better audio chunking, to remove the boundary errors described above;
  3. a public model card with the full evaluation once those are in place.

If you're working on Krio, or on speech technology for other Sierra Leonean languages, we'd like to hear from you. That's especially true if you have recordings of everyday speech. You can read more about our speech recognition work on the speech-to-text research page, and see everything we're building for the language on our Krio AI overview.

Post this to LinkedIn

Copy the written version, then open the LinkedIn composer and paste it in. The link unfurls into a card using this page's preview image.

Share on LinkedIn
Show the text (723 characters)
Krio is spoken by millions of people in Sierra Leone, and almost no speech software understands it.

We trained a Krio speech recognition model on 26.5 hours of audio. On held-out recordings it gets 4.91% of words wrong, which is better than we expected.

The number comes with a big caveat. All of that audio is one narrator reading scripture in a quiet room. That proves the approach works for Krio. It doesn't prove the model can handle a WhatsApp voice note from Freetown.

In the post I cover how we built it, a bug in our evaluation that made the model look worse than it is, and the data we need next.

https://www.novaxailab.com/blog/krio-speech-recognition

#Krio #SpeechRecognition #SierraLeone #AfricanLanguageAI
← All posts