Whisper call transcription: the model worked, the context was the problem

AI-generated image for Orbitant's blog about optimizing Whisper for real call transcription, featuring a glowing cyan sound wave floating above a dark surface.

The first transcript we got from a real call looked fine until minute two. From there on, the text repeated "The phone? Yes." fifty-six times in a row. Nobody had said it even once.

FELIPE CASTAÑO
AI Engineer

The cause was a decision of ours, made for a good reason, with a consequence we hadn’t seen coming. Getting Whisper call transcription right turned out to be an exercise in acoustics and measurement, with the same model and the same hardware we started with.

If you’re building a transcription service on top of Whisper or any model that shines in demos, I think you’ll run into something similar as soon as you put it in front of real audio. That’s why I want to walk through how we measured it before touching anything.

The silence that appears when you split the channels

The service receives a call recording and has to return the transcribed conversation knowing who said what, which is known as diarization. Without it, you’re left with a wall of text nobody can review or put to use.

The recordings come in two channels, one speaker on each, so diarization comes almost for free: you split the channels, transcribe each one separately, and you already know whose every sentence is.

The problem is what shows up when you split them. In a normal conversation people take turns, so while one speaker is talking, the other’s channel is silent. Once you separate the channels, each one stops being a continuous conversation and becomes loose sentences separated by very long silences. In the call we analyzed, three quarters of each channel is silence, with stretches of up to 18 seconds.

And that’s where it breaks: faced with a long stretch with no voice, the model makes up text. It’s trained to produce transcription, so it produces transcription, and when there’s nothing to transcribe, it latches on to the last thing it heard and repeats it. That’s where the fifty-six repetitions came from: the channel went quiet for two minutes while the other person was talking, and the model filled the gap.

The fix meant keeping diarization and getting the silence out of the way before the model ever saw it. Here’s what we did: split the two channels, trim the voiceless stretches from each, send only the speech chunks to the model, and rebuild the conversation by sorting the turns by timestamp.

Technical diagram for Orbitant's blog showing the 5-step call processing pipeline: call recording, L and R channel splitting, silence trimming to prevent hallucinations, clip transcription, and merging turns by timestamp.

After trimming, the model only receives fragments with voice, each one tagged with its original position in the call. That position lets you rebuild the conversation in order afterwards. And the model never sees a long stretch of silence again, so there’s nothing left for it to hallucinate on.

Optimizing Whisper call transcription starts with the metric

Trimming silence sounds simple until you have to decide exactly where each cut falls, a decision that depends on six parameters:

Technical diagram for Orbitant's blog illustrating audio slicing parameters (silenceRmsThreshold, windowMs, padMs, minClipMs, and maxClipMs) used to segment speech audio clips before sending them to Whisper.
  • windowMs: the granularity at which energy is measured, 20 ms.
  • silenceRmsThreshold: the line below which a window counts as silence.
  • minSilenceMs: how much silence justifies a cut. A mid-sentence pause is ignored; a long silence does split.
  • padMs: the margin added on each side of the cut, so you don’t clip the word.
  • minClipMs: below this duration, the chunk is dropped without being sent.
  • maxClipMs: the maximum clip length; a longer stretch is split at its quietest window.

The first three decide where to cut; the last three, what to do with the result. None of them has a universal value, because they all depend on the audio domain. The threshold is the clearest example: “below this energy it’s silence” only means something relative to the background noise of your recordings, and the noise floor of an 8 kHz phone line is two orders of magnitude below that of a microphone. The same absolute number is cautious in one domain and trims real speech in the other.

We had them set by ear, and to me, the only way to stop having them set that way is to measure. All we had was the phrase “it transcribes well”, which is useless for tuning anything because it lumps together three failures with opposite fixes: making up words, dropping words, and mistaking one word for another. Raising the threshold, for instance, fixes the first and makes the second worse.

So we turned to a dataset with reference transcripts and scored using word error rate broken down into its three components: substitutions, deletions, and insertions. That breakdown alone told us where to start: insertions weighed more than the other two combined. The dominant failure came from the voiceless audio we kept sending to the model.

Two reasonable hypotheses the measurements knocked down

With the metric in place, we swept the parameters one by one: fourteen threshold values, seven for minimum silence, six for padding, measuring each combination against the breakdown. And along the way, two ideas we’d taken for granted fell apart.

The first: that the threshold could be calculated instead of measured. If you know how much background noise a domain has and how loud the voice is, it seems reasonable to set it with a formula. We tried seven values calculated that way and none of them got it right: all of them landed well above the one that actually worked best, which sat lower than any reasonable formula would have suggested. A formula is useful as a starting point in a new domain, but you still have to measure afterwards.

The second: that the loop was caused by the length of the silence. It seemed obvious after the 56 repetitions. We measured it two ways and neither reproduced it: isolated silence, from 0.2 to 8 seconds, produces exactly one made-up word, always one; and speech followed by up to 15 seconds of real silence produces no repetition at all.

What does cause it is the total length of the clip. Cutting the same channel at increasing lengths: 0 repetitions at 90 seconds, 2 at 100, 31 at 110, and 113 at 188.

That’s why maxClipMs ended up at 30 seconds, which is the model’s native processing window. Above that duration, as soon as the clip contains silence, made-up words start showing up again.

Fewer errors, less compute, and a reproducible result

With the calibrated combination, word error rate dropped from 5.3% to 3.1% and perfect recordings rose from 57% to 78%. Almost 42% fewer errors without changing models, split like this across the three components:

  • Made-up words fell from almost 300 to fewer than 50.
  • Substitutions didn’t move: about 175 before, about 175 after.
  • Neither did deletions: about 120 before, about 120 after.

Silence is what triggers the hallucination; clip length is what turns it into a self-feeding loop.

FELIPE CASTAÑO
AI Engineer

All the improvement is in the insertions. We fixed exactly the problem that was ours (sending voiceless audio to the model) and didn’t touch a single one of the words it mishears or drops. That number marks how far this kind of tuning can go.

We gained diarization. With whole channels you get two monologues, because without trimming there are no timestamps to interleave them with. With slicing you get 28 ordered turns, each with its speaker: a real conversation instead of two monologues.

And processing time went down at the same time, which we didn’t expect. The audio reaching the model drops from 376 to 170 seconds, and compute drops with it: from about 54 seconds to about 32 for a three-minute call. In terms of capacity, we went from about 3.5 hours of calls per GPU hour to about 5.8. Intuitively, adding diarization should cost more, since we went from 2 requests to 28, but the silence we stopped sending weighs more.

And the result became reproducible. Whole channels returned 614 words in one run and 533 in the next, with the same audio and the same parameters; the sliced pipeline returns 458 both times. A system that answers differently every time can’t be measured, so it can’t be improved either.

The numbers only mean something within their domain, so what you can take to another project is the procedure:

  1. Profile the domain’s acoustics and derive a starting point from it, knowing that’s all it will be.
  2. Sweep each parameter against a broken-down metric, because an aggregate figure hides failures that call for opposite fixes.
  3. Write down where every number comes from. A calibrated parameter without its context is indistinguishable from one set by eye.

The piece we’re working on now is a safety net. The confidence the model returns per turn correlates with error and, below 0.85, the signal is already usable: on the reference set, it flagged 8 recordings, and all 8 had a real defect. The idea is to use it to decide which recordings a person reviews first, without automatically discarding any of them.

Frequently asked questions

Do you need a bigger model to improve call transcription?

In our case, no. The dominant error was insertions caused by sending voiceless audio. The way to fix that is to stop sending the model silence, something a bigger model doesn’t change. What I’d do before switching models is measure the error breakdown and check which component weighs the most.

Can I reuse the six values from this article?

Not directly. The energy threshold depends on the domain’s noise floor, and between an 8 kHz phone line and a microphone recording there’s a two-orders-of-magnitude difference. What’s reusable is the procedure: you’ll have to calibrate the values with your own recordings.

Why isn’t “percentage of correct words” a good metric?

Because it’s blind to insertions. While we were eliminating almost 250 made-up words, that figure moved by three hundredths. A system that makes up half the transcript can score excellent. Use word error rate broken down into substitutions, deletions, and insertions.

Follow our journey building AI agents from the inside

    Newsletter language: