惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
Stack Overflow Blog
Stack Overflow Blog
D
DataBreaches.Net
罗磊的独立博客
博客园 - 司徒正美
Last Week in AI
Last Week in AI
The Cloudflare Blog
大猫的无限游戏
大猫的无限游戏
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
The GitHub Blog
The GitHub Blog
宝玉的分享
宝玉的分享
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
小众软件
小众软件
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hugging Face - Blog
Hugging Face - Blog
B
Blog
博客园 - 【当耐特】
V
V2EX
Apple Machine Learning Research
Apple Machine Learning Research
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
The ghost in my transcript: why my AI meeting app kept sa...
M Hossein · 2026-06-26 · via DEV Community

I build a passive AI meeting assistant. It records, transcribes live in 26 languages, and fact-checks claims against the web in real time. The transcript is the flagship surface — the thing users trust. So when I opened a recording the other night and saw this, my stomach dropped:

12:21   Thank you.
12:27   Thank you.
13:16   Thank you.
13:16   Thank you.
13:19   Do we love our children?
13:20   Thank you.

Nobody said "Thank you." Not once. The speaker was mid-rant about generational politics ("Washington has become a cross between the land of the dead and the Golden Girls" — a real line my app captured perfectly). And scattered through this otherwise-sharp transcript were a dozen phantom *Thank you*s.

My first reaction was the same as anyone's: stupid ASR. But "stupid" isn't a root cause, and I had a product to ship. So I went looking.

The pattern

The phantom lines weren't random. I lined them up against the audio and there it was: every single "Thank you." landed on applause, laughter, or a beat of silence between sentences. The model wasn't mis-hearing words. It was inventing words when there were no words to hear.

That clue is the whole story.

Why speech models hallucinate "Thank you"

This is one of the most famous failure modes in modern speech recognition, and once you see the mechanism you can't unsee it.

Models like Whisper, qwen3-asr, and friends are trained on enormous piles of real-world audio — YouTube, podcasts, talks, lectures. They learn a conditional distribution: given this audio, what's the most likely text? They are very good at this when the audio is speech.

But they were never really taught what to do with non-speech. Applause, laughter, silence, music — the training data is full of those moments too, and they're labeled with whatever the human transcriber wrote. And what do humans write at the end of a talk, right when the audience erupts in applause?

"Thank you."
"Thanks for watching."
"Thank you very much."

So the model learns a rock-solid association: clapping sounds → "Thank you." Feed it applause and it doesn't shrug and return nothing. It confidently emits the single highest-probability phrase it has ever seen paired with that acoustic texture. It's not a bug in my code. It's the model doing exactly what it was trained to do, just in a context nobody curated for.

This is a "confidently wrong" failure — the most dangerous kind, because the output looks like every other line.

What I can't do (the fix everyone suggests first)

The obvious instinct is: "just drop low-confidence segments." Great idea. One problem.

I'm streaming through a realtime ASR over a WebSocket protocol, and I went and checked exactly what comes back on the wire. The final transcript event looks like this:

{
  "type": "conversation.item.input_audio_transcription.completed",
  "transcript": "Thank you."
}

That's it. No confidence. No logprob. No no_speech_probability. The model gives me the text and nothing else. There is no number to threshold on, because the model doesn't hand me one. So the entire class of "filter by confidence" solutions is off the table before I even start. Worth knowing your wire protocol before you design around a field that doesn't exist.

The lever that looks right but isn't

Second idea: tighten the Voice Activity Detection (VAD). My session config tells the upstream how aggressively to gate non-speech:

"turn_detection": [
    "type": "server_vad",
    "threshold": 0.0,          // <- maximally permissive
    "silence_duration_ms": 400
]

That threshold: 0.0 means "treat basically everything as speech." Raising it would make the model's own VAD reject quiet, low-energy audio before it ever tries to transcribe — which kills the silence-gap hallucinations (those phantom lines between sentences).

But here's the trap: applause is loud. Laughter is loud. An energy-based VAD threshold can't tell a clapping crowd from a talking human — they're both well above any silence floor. So bumping the threshold helps the quiet gaps and does nothing for the exact screenshots that started this whole investigation.

Worse, there's a values cost. My app has one sacred rule: never miss real speech. Crank the VAD too high and you start clipping a soft-spoken participant. Trading a real sentence to suppress a fake "Thank you." is a bad trade. So VAD tuning is, at best, a cautious complement — never the main fix.

The fix that actually matches the problem

If the model emits a fabricated phrase, and I can't catch it by confidence, and I can't gate it by loudness... the only reliable place to catch it is on the way out. After the text exists, before it becomes part of the user's record.

This is exactly what the Whisper community landed on years ago, and it's refreshingly boring: a known-hallucination phrase filter.

The shape of it:

struct TranscriptHallucinationFilter {
    // Tight, curated, multi-word non-speech priors.
    private let blocklist: Set<String> = [
        "thank you",
        "thank you very much",
        "thanks for watching",
        "thank you for watching",
    ]

    func isLikelyHallucination(_ text: String) -> Bool {
        let normalized = text
            .trimmingCharacters(in: .whitespacesAndNewlines)
            .lowercased()
            .trimmingTrailingPunctuation()   // ".", "!", "?", "…", ","
            .collapsingWhitespace()
        // EXACT match only. Never substring.
        return blocklist.contains(normalized)
    }
}

The non-negotiable design decisions, each one earned:

  1. Exact match, never substring. A standalone "Thank you." is a hallucination. But "Thank you for joining us, let's get started" is a real human being. If I matched on contains, I'd start deleting genuine sentences — a far worse bug than the one I'm fixing. The filter only fires when the entire normalized segment equals a blocklist entry.

  2. Start the blocklist tight. I seed it with the high-confidence, multi-word priors and resist the urge to add bare words. "you" and "okay" are classic hallucinations and things people genuinely say alone. When in doubt, leave it out — a phantom "okay" slipping through is cheap; deleting a real one is not.

  3. Drop loud, not silent. My codebase has an iron rule: failures must be loud. So every drop increments a content-free counter and logs a line (the matched blocklist index — never the raw text, privacy first). If my filter ever starts eating real speech, I'll see the rate climb in the field instead of discovering it from an angry user.

  4. Put it at the one chokepoint. There's a single funnel where a transcript event becomes both a saved segment and food for the insight/fact-check engine. The filter goes at the very top of that function, before either happens — so a phantom "Thank you." pollutes neither the transcript nor the downstream AI. One guard, total coverage.

And because the audio file itself is never touched, the recording stays sacred. I'm only suppressing a fabricated line from the record. If I'm ever wrong, the original audio is right there to replay.

The honest version of "we fixed it"

I want to be straight about what this is. It's not magic and it's not complete:

  • It will, occasionally, drop a real isolated "Thank you." someone actually said. In a meeting transcript, the cost of losing one bare thanks rounds to zero. The cost of a dozen fake ones is real. Easy trade.
  • It's English-first today. Hallucinations tend to come out in the audio's dominant language, so the blocklist will need to grow per language — a follow-up, not a blocker.
  • The right long-term answer might be a model that returns a no-speech probability, or an acoustic event classifier that tags "[applause]" instead of guessing words. But those are bigger swings. This filter is the high-leverage, low-risk change I can ship now.

The lesson I keep relearning: when a model does something baffling, "the model is stupid" is where the investigation starts, not where it ends. The phantom "Thank you" wasn't noise. It was the model telling me, very precisely, that it had been handed sound with no speech in it — and doing the most human thing it knew how to do.

It said thanks.


Building Faktum, a passive AI meeting assistant. If you've shipped your own war story against ASR hallucinations, I'd love to hear how you handled the blocklist-vs-false-positive tradeoff.