Code-Switching Speech Recognition in African Languages: How to Test Vendor Claims Before You Ship

Vendors now compete on code-switching in African languages, but few publish independent numbers. Here's how to test their claims before you ship.

Two overlapping sound waveforms, one purple and one blue, merging at a single bright orange point on a dark background.

Every African voice AI vendor now says its model handles code-switching, but few publish numbers, and most of the ones that do ran the test themselves. This guide shows how to evaluate code-switching speech recognition in African languages on your own terms. It covers what to put in the test set, which metrics catch the failures a single WER figure hides, and a 10-step audit to run before anything reaches production.

Why code-switching is now what vendors compete on

Two releases this year set the terms. On 4-5 November 2026, AethexAI released Kora 2.0, which claims code-switching support across 25+ African languages and dialects, including Yoruba, Hausa, Wolof and Fula. We have not found any accuracy benchmarks published with the release.

Intron went further. Its Sahara v2.5 model reports a 34.3% average WER on code-switched speech across 12 African languages, against 53.8% for Gemini 3.6. That is a real number, which is more than most vendors offer. Intron also ran that benchmark itself.

We are not accusing anyone of anything here. Self-reported results are the norm in this market. The trouble is that an evaluation lead looking at these claims has no shared, independent code-switched test set to check them against. You will probably have to build your own.

Why code-switched speech breaks ASR

Most failures come from three mechanisms. Each shows up in a different way, so each needs its own metric.

Failure mechanismWhat you see in the outputMetric that catches it
Language-ID routing: the model commits to one language per segmentThe embedded language gets respelled in the matrix language's orthography, or translated instead of transcribedPer-language-span WER/CER, language-tag accuracy
Too few African tokens: tokenizer and language-model priors dominated by English/FrenchThe output drifts back to the high-resource language right after a switchSwitch-point error rate
Decoder uncertaintyAfrican spans silently dropped, or fluent text inserted that nobody saidDropped/hallucinated segment counts

The third mechanism is the most dangerous in production. A model that drops a Wolof clause and transcribes the French around it cleanly can still post a respectable aggregate WER, because the missing words are a small share of the reference. Your downstream intent classifier, though, has just lost the part of the sentence that carried the meaning.

Reading self-reported benchmarks: what 34.3% vs 53.8% does and doesn't tell you

Read literally, Intron's figures are a 19.5-point absolute gap, about a 36% relative reduction in WER over Gemini 3.6. That is a large gap. It is also an average across 12 languages on a test set the vendor chose. Before you rely on a figure like this, get answers to these questions:

  • Who built the test set, and could any of it have leaked into training? In-house test sets are often drawn from the same collection pipeline as the training data. They share speakers, recording conditions and topics.
  • What kind of speech is it? Read prompts written to contain switches behave very differently from spontaneous conversation.
  • What is the per-language spread? A 34.3% average can hide a language at 20% and another at 55%.
  • What text normalisation was applied? Removing Yoruba tone diacritics, or folding Hausa hooked letters (ɓ, ɗ, ƙ) into plain Latin letters, can move WER by a lot. Normalisation also has to be identical across every model being compared.
  • How dense are the switches? A test set where 5% of words sit in the embedded language is a different task from one at 40%.
  • Is 34.3% good enough for your use case? It works out to roughly one error per three reference words. That might be fine for search indexing and unacceptable for medical intake.

If you want to see what independent methodology looks like, academic work such as Benchmarking Automatic Speech Recognition Models for African Languages and the papers in the AfricaNLP 2026 proceedings are the right comparison class. A vendor's launch post is not.

How to build a code-switched test set

Spontaneous over read speech

Read speech with scripted switches is useful for controlled experiments and misleading for anything else. Real switching is shaped by topic, by who is in the conversation, and by fluency. It comes with disfluencies, restarts and accent spillover across the switch boundary. Build the core of your evaluation set from spontaneous and conversational recordings, and keep any read material in a separate, clearly labelled slice.

Stratify by switch type

Tag every utterance with at least these types:

  • Inter-sentential: the switch happens at a sentence boundary.
  • Intra-sentential: the switch happens mid-clause. This is the hard case and usually the most common one in casual speech.
  • Tag switches and single-word insertions: discourse markers and nouns borrowed into a matrix-language frame.

Report results per stratum. A model that does well on inter-sentential switches and falls apart on intra-sentential ones has a routing problem, and an average will hide it.

Pick language pairs from your deployment, not the vendor's brochure

Test the pairs your users actually produce, for example Wolof-French, Yoruba-English, Hausa-English or Twi-English. Include trilingual speech where it is realistic, because some speakers move between a local language, a regional lingua franca and a colonial language within one turn. Then stratify by dialect, gender, age band and channel (phone versus close-mic), since code-switching performance and speaker coverage interact.

Size for switch points, not hours

Your sample size is set by the number of switch boundaries in the set, not by its total duration. Aim for several hundred switch points per language pair and stratum. That is the minimum for a switch-point error rate stable enough to compare vendors with.

Metrics that work for mixed-language speech

Overall WER is necessary and not sufficient. Report these alongside it:

  1. WER and CER per language span. Split the reference by language tag and score each span separately. Use CER where word segmentation or orthography varies a lot.
  2. Switch-point error rate. Measure the error rate inside a fixed window around each switch boundary, for example ±2 words. This isolates the routing failure.
  3. Language-tag accuracy. Check whether each hypothesis word is in the correct language. A correctly heard Hausa word written as an English near-homophone counts as a substitution in WER, but the cause is different and so is the fix.
  4. Dropped and hallucinated segment counts. Count contiguous deletions and insertions of three or more words as separate events. Report them per hour of audio so the numbers are comparable across test sets.

Publish your normalisation script with the numbers. If it isn't published, nobody can reproduce or audit the results.

Ground truth: native-speaker transcription rules

The reference transcript is the test. If it is inconsistent, every model gets penalised at random. Code-switched speech needs explicit rules that a single-language transcription guide doesn't cover:

  • Write each word in the standard orthography of the language it belongs to. Never transliterate the embedded language into the matrix language's spelling.
  • Decide how to handle established loanwords versus one-off borrowings, document the decision, and apply it consistently.
  • Tag every span with a language ID at transcription time. Inferring tags afterwards adds error.
  • Fix a policy for tone marks and special characters, and apply it to every model's output during scoring.
  • Mark disfluencies and unintelligible stretches instead of guessing.

Then measure how reliable the references are. Have a sample of each batch transcribed blind by two independent native speakers, and compute agreement on both the words and the language tags. Our internal target at Afriklang is inter-annotator agreement of at least 95%: every transcript is corrected by a native speaker, and a sample of each batch is blind double-annotated. Whatever target you choose, publish it next to your WER figures. If annotators only agree 85% of the time, a five-point WER gap between two models tells you very little.

Real-world audio is where the gap shows

Broadcast radio, call-centre audio and voice notes are the stress test. Switches there are unscripted and dense, speakers overlap, and the acoustic channel is poor. Vendor demos rarely look like this. Edge deployments make it harder still: work like WAXAL-NET's fine-tuned edge ASR across 19 African languages shows coverage counts going up on constrained hardware, and constrained models leave less margin for mixed-language input.

Treat a vendor's language count as a list of what they claim to support, not as evidence that it works. A claim of "25+ languages" says nothing about Hausa-English intra-sentential switches over a phone line.

A 10-step checklist for auditing vendor code-switching claims

  1. Ask for per-language, per-pair WER on code-switched speech. An overall average is not enough.
  2. Ask how the test set was built, and whether its speakers or sources overlap with the training data.
  3. Get the vendor's normalisation rules in writing.
  4. Build or license a held-out code-switched set that the vendor has never seen.
  5. Stratify it by switch type, language pair, dialect and channel.
  6. Score every candidate model, including frontier general-purpose models, on the same set with the same normalisation.
  7. Report span-level WER/CER, switch-point error rate, language-tag accuracy and dropped/hallucinated counts.
  8. Check your reference quality with blind double annotation, and report agreement.
  9. Run a slice of production-like audio (noisy, phone-channel, spontaneous) separately from the clean set.
  10. Repeat on every model version. Code-switching behaviour regresses quietly between releases.

Our Wolof benchmark follows the same pattern of held-out native-speaker labels and identical scoring for every model, although it is a text sentiment task, not ASR. Fine-tuned models reached 90.0% F1 macro, while the best frontier LLM managed about 45%. The lesson for speech is the methodology rather than the number: you only see a gap that size when every model is tested on ground truth it hasn't seen.

Where the data comes from: consented recordings vs. synthetic mixed audio

Consented conversational recordings give you real switching: real switch density, accent spillover and disfluency. The costs are honest ones. They are slow and expensive to collect, you can't fully control switch density, and prompting speakers to code-switch can produce switching that sounds performed. They also need a consent and licensing trail if they will ever feed training, not just evaluation.

Synthetic mixed audio, made by splicing or synthesising segments from different languages, is cheap and controllable. It is good for stress-testing rare pairs or extreme switch densities. It has no natural coarticulation or prosody at the switch boundary, and that boundary is exactly what you are trying to measure. Use it to probe for weaknesses. Don't use it to decide whether a model is ready to ship.

A practical split is synthetic data for exploration and consented spontaneous recordings, transcribed by native speakers, for the evaluation numbers you sign off on.

If you are setting up this kind of evaluation, the Afriklang catalogue lists our spontaneous and conversational speech sets and native-speaker evaluation sets, code-switching included. If you would like to talk through test-set design for a specific language pair, you can book a discovery call. We're happy to compare notes even if you end up building the set yourself.

Sources

We use analytics cookies only if you accept. Details