# `compact_transcript` — Compact Meeting Transcript (WebVTT / SRT / Text)

> Part of [Context Crush — Deterministic LLM Context Compactor](https://context-crush.apikeg.com/llms.txt) (`com.apikeg/context-crush`)

Parses WebVTT (<v Speaker>, NOTE/STYLE blocks, cue UUIDs), SubRip (.srt), or Zoom/Teams/Otter text transcripts; deduplicates rolling live captions, coalesces speaker turns into Markdown, and computes speaker talk-turn stats.

**Why call instead of DIY:** Eliminates 75-90% of caption cue UUID/timestamp/overlap bloat in <10ms with 100% lossless dialogue retention—costing a fraction of the LLM input tokens saved.

- **REST Endpoint:** `POST https://context-crush.apikeg.com/v1/compact-transcript`
- **MCP Server:** `https://context-crush.apikeg.com/mcp` (tool: `compact_transcript`)
- **Pricing:** $0.001 base (up to $0.005 max ($0.001 base + $0.0005 per 50KB of input, capped at $0.005 for payloads up to 2MB), x402 variable settlement)
- **Free Dry-Run:** `POST https://context-crush.apikeg.com/v1/compact-transcript?dry_run=true`

## Input JSON Schema
```json
{
  "type": "object",
  "properties": {
    "transcript": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000000,
      "description": "Raw meeting transcript in WebVTT (.vtt), SubRip (.srt), or plain-text ([HH:MM:SS] Speaker:) format."
    },
    "format": {
      "type": "string",
      "enum": [
        "auto",
        "vtt",
        "srt",
        "text"
      ],
      "default": "auto",
      "description": "Input transcript format; defaults to automatic detection."
    },
    "timestampFormat": {
      "type": "string",
      "enum": [
        "auto",
        "mm:ss",
        "hh:mm:ss",
        "none"
      ],
      "default": "auto",
      "description": "Rendered Markdown timestamp style ('auto' uses [MM:SS] under 1h and [HH:MM:SS] at >=1h)."
    },
    "timestampIntervalSec": {
      "type": "integer",
      "default": 0,
      "minimum": 0,
      "maximum": 3600,
      "description": "Minimum seconds between emitted speaker-turn timestamps (0 = emit at every speaker switch)."
    },
    "removeFillers": {
      "type": "boolean",
      "default": false,
      "description": "Strip vocal disfluencies ('um', 'uh', 'er', 'ah', 'hmm', parenthetical 'you know') while preserving dialogue."
    }
  },
  "required": [
    "transcript"
  ],
  "additionalProperties": false
}
```

## Examples
### Compact WebVTT meeting with rolling live captions
```bash
curl -X POST "https://context-crush.apikeg.com/v1/compact-transcript" \
  -H "Content-Type: application/json" \
  -d '{"format":"auto","timestampFormat":"auto","timestampIntervalSec":0,"removeFillers":true,"transcript":"WEBVTT\n\nNOTE exported by Meet\n\ncue-1\n00:01:12.000 --> 00:01:14.200 align:start\n<v Alice Chen>Um, welcome everyone to</v>\n\ncue-2\n00:01:14.200 --> 00:01:17.500 align:start\n<v Alice Chen>welcome everyone to the Q4 launch review.</v>"}'
```
Expected output: Single clean '[01:12] **Alice Chen:** Welcome everyone to the Q4 launch review.' turn + speaker stats + token reduction metrics.
