trusted-transcription
This server enables automated transcription QA: Whisper transcription plus detection, repair, scoring, and cost estimation.
Transcribe audio files through Whisper from a local path (WAV/MP3/M4A/FLAC), returning timed text segments with confidence scores and selectable ISO language code.
Run all built-in hallucination detectors on a transcript JSON payload, covering repetition loops, silence/prompt echoes, subtitle phantoms, timing drift, language switches, and completeness issues, yielding severities and evidence.
Apply an LLM-based repair pass to flagged transcript segments, letting the model delete or replace bad content or explicitly leave it untouched while reporting actions with confidence and rationale.
Compute transcript quality metrics such as WER, CER, hallucination rate, and words-per-minute, optionally scored against a supplied reference text.
Estimate processing expense for a known audio duration, including Whisper usage, potential LLM repair overhead under an assumed hallucination-rate parameter, and overall totals.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@trusted-transcription Detect hallucinations in transcript.json and repair any critical flags."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Trusted-Transcription
An AI that transcribes speech will sometimes write things nobody said, with full confidence. This catches them before a client does.
Detectors for hallucinated and degenerate output, guards that keep the repair honest, and a context-window fix that removes most of the cause, all measured against a control on real production audio.
AI kept honest in production, where one wrong word is a legal liability. Part of the work of Guillain d’Erceville, forward deployed engineer.
Catch confident lies in automatic transcription — and stop most of them before they exist.
Whisper produces this on 30 seconds of silence:
"Thank you for watching. Please subscribe to my channel."
Confidence: 0.88. No error, no warning. Your downstream system ingests it as fact.
This project comes from a transcription platform where a wrong word is a legal liability. Everything in it was learned in production, measured against a control, and shipped: the detectors that catch the lies, the guards that keep the repair honest, and the prevention layer that removes the cause.
Try it in your browser
guillain-rdcde.github.io/Trusted-Transcription — paste a transcript or load a sample, press Detect. The same detectors run in your browser; nothing is uploaded.
Related MCP server: io.github.attenlabs/hotato
Try it in 30 seconds (no API key needed)
git clone https://github.com/Guillain-RDCDE/Trusted-Transcription.git
cd Trusted-Transcription
pip install -e .
tt detect corpus/sample/silence_hallucination.json --format table SEG SEVERITY DETECTOR REASON
--------------------------------------------------------------------------------
2 critical silence_hallucination Known phantom phrase: 'Thank you for watching...'
4 critical repetition_loop N-gram 'nous avons constate' repeated 3x in 8 segments
6 critical temporal_drift Timestamp stall: segments 5 and 6 share [55.30-55.30]
Total: 3 flagsZero API calls, and nothing on the clean sample:
tt detect corpus/sample/clean_transcript.json --format table
# No hallucinations detected.The package is not on PyPI yet: pip install trusted-transcription finds
nothing. Install from a clone as above, or the commands alone straight from
a release tag (the samples stay in the clone):
pip install "git+https://github.com/Guillain-RDCDE/Trusted-Transcription.git@v0.12.0"Three small dependencies and no API client. Engines and the repair model are
optional (pip install -e ".[api]"). Or without installing anything:
docker build -t tt . && docker run --rm tt cost 60What it does
Prevents. Most phantom phrases are not the model's fault. They appear on
segments your pipeline starved — a few seconds cut at a photo timestamp or a
speaker turn, with no context. tt windows shows what the model will hear once
each short segment gets audio on both sides; boundaries never move. Long files
are cut in nine-minute pieces with the cap on the piece, never on the file, and
the proof that nothing was lost is the sum of the durations (tt chunks).
Detects. Phantom phrases in six languages, repetition loops, a whole output that is a loop, the vocabulary prompt returned instead of the audio, timestamps that drift, a language switch, a line mixing writing systems after which nothing follows the audio any more, minutes of speech with zero words, sections silently dropped, a name spelled letter by letter next to the misheard word. Deterministic, auditable, no model in the loop.
Repairs without making things worse. The correction model can swallow a
paragraph or lengthen a text until the end repeats; both are caught by
comparing what it was sent with what it returned, and the recovery splits the
text rather than falling back on the raw draft. A broken chunk is
re-transcribed alone, never the whole file. A spelled-out name overrides the
dictated one (tt spell).
Measures honestly. Every number in the docs was read against a control run,
because Whisper is not deterministic. Comparing engines takes two measures or
none, and a judge you know is biased (tt bench-report).
Where to read next
Reference — every command, every detector, the MCP server, and the Python entry points.
Failure modes — the catalog, with the control that catches each one.
Architecture decisions — why two models in series, why deterministic before probabilistic, and each production incident that turned into a rule. The dead ends are in there too; they are the reason the claims are credible.
Measurement pitfalls — six ways a transcription benchmark lies, learned the expensive way.
License
MIT — Guillain d'Erceville — guillain@poulpe.us — GitHub — LinkedIn
Available Tools
5 toolsdetect_hallucinationsA
Run all hallucination detectors on a transcript. Returns a list of flags with severity, detector name, and evidence. Detectors: repetition_loop, silence_hallucination, prompt_echo, temporal_drift, phantom_subtitle, language_switch, completeness.
Inputs: transcript_json (required).
estimate_costA
Estimate processing cost for a given audio duration. Returns breakdown: Whisper API cost, LLM repair cost (if needed), total.
Inputs: audio_duration_minutes (required), expected_hallucination_rate.
repairA
Run the LLM repair loop on flagged segments. The LLM can delete fabricated segments, replace them, or decline to touch them. Returns structured repair actions with confidence and reasoning.
Inputs: transcript_json (required).
scoreA
Compute quality metrics: WER, CER, hallucination rate, words per minute. If a reference transcription is provided, computes accuracy.
Inputs: transcript_json (required), reference_text.
transcribeA
Transcribe an audio file using Whisper. Returns segments with timestamps, text, and confidence scores.
Inputs: audio_path (required), language.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool maps to a distinct stage in the transcription workflow: transcribe, detect hallucinations, repair, score, and estimate cost. There is no functional overlap or ambiguity about which tool to select.
Most tools follow a verb_noun pattern (detect_hallucinations, estimate_cost), while transcribe, repair, and score are single verbs. The naming is still consistent in style and domain, with no mixed casing or confusing variations.
Five tools is well-scoped for an audio transcription quality pipeline. Each tool serves a clear purpose and the set is neither bloated nor thin.
The toolset covers the full core pipeline: transcription, hallucination detection, LLM-based repair, quality scoring, and cost estimation. A minor gap is the lack of separate transcript retrieval or manual editing tools, but repair covers corrections reasonably.
Maintenance
Related MCP Connectors
Speech denoise, transcripts (SRT/VTT), embeddings, reranking, entities and translation.
Transcribe audio & video to text for AI agents: 100+ languages, speaker labels, webhooks.
Transcribe audio & video: diarization, timed SRT/VTT, podcasts, paste-a-link, whole-feed batch.
Transcribes audio and video files to text, SRT, VTT and timestamped chunks for RAG.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceTranscribes audio/video files, generates summaries and structured knowledge items, and supports Notion integration and chat-based interaction. Works as a standalone CLI, Notion integration, or MCP server tool for agent ecosystems.-
- AlicenseNot gradedqualityCmaintenanceEnables coding agents to run offline voice-agent call forensics over local stdio, scoring recordings and reading/verifying evidence to isolate failures. It also proposes fixes and regression checks so broken calls can be pinned and prevented from shipping again.148 PyPI1MIT
- AlicenseNot gradedqualityCmaintenanceEnables users to estimate LLM token costs, enforce context-budget thresholds, compress prompts, and scan for leaked credentials before sending requests to Claude, OpenAI, or Gemini over stdio.MIT
- AlicenseNot gradedqualityBmaintenanceExposes stdio tools for analyzing code-switched multilingual utterances with PII redaction, running offline-first voice turns with local SQLite persistence, executing multilingual benchmarks, syncing store-and-forward outboxes, and exporting AI transparency cards. Runs with zero external runtime dependencies inside Claude Code, Cursor, Codex, or Antigravity.MIT