Skip to main content
Glama
trusted-transcription

trusted-transcription

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.

tests release license

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 flags

Zero 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 60

What 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).

  • 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 tools
detect_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

    A4.1/5.0

    Scored across 5 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Transcribes 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.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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 PyPI
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Exposes 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