◉CLAUDE LABJP
●2.1.301 — Adds the vim % motion, LaTeX math rendering in the VS Code panel, and a retry-watchdog limit for usage-limit waits (10/15)●2.1.299 — Conversations over 200K tokens left idle about 54 minutes get compacted; MCP allow rules now match only the server they name●SONNET 4.5 — Retires on the Claude API on 11/30, 45 days left. Migrate to Sonnet 5.5●WINDOWS — Reports say hooks break silently only on Japanese-locale Windows; check the character encoding first●FAST MODE — Opus 5.5 fast mode is out of research preview and no longer needs the beta header (10/15)●NEW — I Put a Ten-Line Promise File at the To…●2.1.301 — Adds the vim % motion, LaTeX math rendering in the VS Code panel, and a retry-watchdog limit for usage-limit waits (10/15)●2.1.299 — Conversations over 200K tokens left idle about 54 minutes get compacted; MCP allow rules now match only the server they name●SONNET 4.5 — Retires on the Claude API on 11/30, 45 days left. Migrate to Sonnet 5.5●WINDOWS — Reports say hooks break silently only on Japanese-locale Windows; check the character encoding first●FAST MODE — Opus 5.5 fast mode is out of research preview and no longer needs the beta header (10/15)●NEW — I Put a Ten-Line Promise File at the To…
Articles/API & SDK
⬡ API & SDK/2026-07-11Advanced

When Whisper Wrote 'Thanks for Watching' Into the Silence — Measuring and Killing Japanese Transcription Hallucinations

Whisper inserts phantom boilerplate into silent or noisy segments of Japanese audio. Here is how to measure hallucinations with no_speech_prob and avg_logprob, strip silence with VAD, and have Claude validate what remains — with the implementation and the routine that pulled it back.

Claude API128WhispertranscriptionJapanesevoice AIquality measurement

✦ Premium Article

One day, while running a pipeline that auto-generates meeting minutes, an unfamiliar line appeared in the output: "Thanks for watching." It was an internal recurring meeting. Nobody said that.

Replaying the audio at that timestamp, it was a few seconds of silence while the presenter switched slides. Whisper had written words that did not exist into a stretch where nothing was spoken.

This is a well-known behavior in Whisper's Japanese transcription. On silence, noise, or music-only stretches, it emits boilerplate common in its training data — "Thanks for watching," "Please subscribe" — like a phantom. In English this is called hallucination.

What follows is how I handle this when embedding Whisper in an audio pipeline built with Rork or Cowork: measure the hallucination, then kill it with thresholds, preprocessing, and Claude validation. Not "it feels gone now," but a record of pulling the insertion rate back while tracking it as a number.

Why Whisper adds words to silence

Whisper splits audio into 30-second chunks and tries to turn each into "some text." The problem is a model that struggles to choose "no output" even when the input is silent.

Its training data includes huge amounts of YouTube audio, where boilerplate recurs at the ends and silent parts of videos. As a result, the model has learned a skewed mapping: "low audio information equals boilerplate."

Segment stateTypical Whisper behaviorCommon inserted phrase
Full silenceRepeats the prior sentence, or boilerplateThanks for watching
Music / noise onlyMeaningless fragments or boilerplatePlease subscribe
A faint backchannel onlyBalloons into an over-long sentence(repeat of prior speech)

So this is not "mishearing." It is "filling a gap when information is scarce." The countermeasure, then, is not to make the audio clearer — it is to detect and drop the segments where gap-filling happened.

First, measure it — get per-segment confidence

Measure before you act. Whisper's verbose_json response carries confidence hints per segment. Without logging these, you cannot see where hallucination occurs.

Two signals matter.

SignalMeaningSign of hallucination
no_speech_probProbability the segment is silenceHigh (over 0.6) yet text was produced
avg_logprobAverage log-probability of output tokens (confidence)Low (below -1.0) = close to guessing

High no_speech_prob with text present, and a low avg_logprob on top — a segment where both overlap is the most typical shape of hallucination.

from openai import OpenAI
 
client = OpenAI(api_key="YOUR_API_KEY")
 
def transcribe_with_confidence(audio_path):
    with open(audio_path, "rb") as f:
        result = client.audio.transcriptions.create(
            model="whisper-1",
            file=f,
            language="ja",
            response_format="verbose_json",
            # get per-segment confidence
            timestamp_granularities=["segment"],
        )
 
    flagged = []
    for seg in result.segments:
        # record segments strongly suspected of hallucination
        suspicious = seg.no_speech_prob > 0.6 and seg.avg_logprob < -1.0
        if suspicious:
            flagged.append({
                "start": round(seg.start, 1),
                "text": seg.text.strip(),
                "no_speech_prob": round(seg.no_speech_prob, 3),
                "avg_logprob": round(seg.avg_logprob, 3),
            })
 
    return result, flagged

Start by counting flagged. In my minutes pipeline, one hour of meeting audio averaged about 12 hits, most of them the boilerplate or a repeat of the prior sentence. Knowing the number first lets you compare whether later fixes actually work.

✦

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
✦Why Whisper inserts boilerplate on silence and noise, and how to measure hallucinations per segment with no_speech_prob and avg_logprob
✦A two-stage implementation: VAD preprocessing plus threshold filtering, then Claude validating the transcript for context fit
✦A measured drop from ~12 to ~2 insertions per hour of audio, plus a weekly routine that avoids over-deletion
Secure payment via Stripe · Cancel anytime
✦

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Claude Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

Related Articles

⬡ API & SDK2026-10-16
Sending 40 Rows From Make to the Claude API Stops at Row 14 — Avoiding the 429 With One Subtraction
Why a no-code automation that sends spreadsheet rows to the Claude API one by one hits a 429 partway through, and how to fix it. Seven spacing strategies tested on a mock bucket, a formula for the Sleep delay, and settings that stop failed rows from vanishing.
⬡ API & SDK2026-10-13
Haiku 5.5 is cheaper per token, but your bill jumps fivefold past about 77k Haiku 4.5 tokens
On the price sheet, Haiku 5.5 costs roughly a tenth of Haiku 4.5. But the same text becomes about 30% more tokens, and a prompt over 100k tokens is billed at five times the rate. Here is the boundary in Haiku 4.5 terms, a script I actually ran, and the changes that return a 400.
⬡ API & SDK2026-10-08
Before Sonnet 4.5 retires, one script to find the arguments that will return a 400
claude-sonnet-4-5 retires on November 30. Swapping the model ID is not enough: budget_tokens, prefill, and tool_choice will fail. Here is a scanner built from the official migration guide, its real output, and the order I would fix things in.