◉CLAUDE LABJP
●CC 2.1.332 — No new Claude Code release over the weekend. 2.1.332 (11/25) is still current●ANALYTICS — A fix to search counts in the Enterprise Analytics API may raise numbers from 11/17 onward●SONNET 4.5 — Today, 11/30, is Sonnet 4.5's last day on the Claude API. Move to claude-sonnet-5-5●USAGE — Some users report weekly usage jumping right after upgrading to a higher plan●NEW — New: Does what a Project remembers carry over into your everyday chats?●BILLING — More readers are looking for what to check when a payment won't go through●CC 2.1.332 — No new Claude Code release over the weekend. 2.1.332 (11/25) is still current●ANALYTICS — A fix to search counts in the Enterprise Analytics API may raise numbers from 11/17 onward●SONNET 4.5 — Today, 11/30, is Sonnet 4.5's last day on the Claude API. Move to claude-sonnet-5-5●USAGE — Some users report weekly usage jumping right after upgrading to a higher plan●NEW — New: Does what a Project remembers carry over into your everyday chats?●BILLING — More readers are looking for what to check when a payment won't go through
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 API150WhispertranscriptionJapanesevoice 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-11-30
The unit price drops 20%, yet the bill may rise: estimating the Opus 4.5 to 5.5 switch before January 22
claude-opus-4-5-20251101 retires on January 22, 2027, and the official replacement is claude-opus-5-5. Prices fall by a fifth, but the tokenizer changes and thinking can no longer be turned off. You will be able to count the cost per 1,000 of your own requests and pick a replacement and an effort level.
⬡ API & SDK2026-11-25
Five Days Before Sonnet 4.5 Retires: Compare the Three Things That Change Without an Error While the Old Model Still Answers
claude-sonnet-4-5 retires on November 30. Switch the ID to claude-sonnet-5-5 and nothing returns a 400, yet thinking now runs by default, max_tokens covers more than the answer, and stop_reason shifts. Here is a small script to run the same requests on both models before the old one stops answering, and how to read the differences.
⬡ API & SDK2026-11-18
Before Your Customers Pay Through Linked Billing: Reading a 402 or 403 to Find Whose Wallet Is Empty
Linked billing, released in beta on November 17, lets you choose who pays on every Claude API request through billing_policy. When a request billed to a customer comes back as a 402 or 403, here is how I work out which wallet is the cause, when to pay for it myself, and a small Python wrapper that keeps that decision in one place.