Subtitle pipeline
Audio URL → finished subtitles in one call: transcribe the audio, emit the transcript as SRT/WebVTT/JSON cues, and report the text statistics — length, reading time, word count.
When to use this pack
An agent processing podcasts, voice notes, or video audio needs shippable subtitle files plus the stats to budget downstream steps (summarization, translation, chapters) — without stitching three tools by hand.
Tools in this pack
- Speech-to-text $0.030 POST /api/transcribe Transcribe audio to text using OpenAI (gpt-4o-mini-transcribe). Provide a URL to an audio file (mp3, wav, m4a, etc.) and get back the transcript. No API key needed; pay per call via x402. Max 5 minutes of audio, 25 MB file size.
- Subtitle convert (SRT/VTT) $0.002 POST /api/srt-convert Convert subtitles between SRT, WebVTT, plain text, and JSON cues. Send SRT or VTT text (auto-detected) — or a JSON cues array [{start,end,text}] with times in ms — and the target format. Deterministic, pure CPU.
- Text statistics $0.001 POST /api/text-stats Characters, words, sentences, paragraphs, average word length, reading time, and an LLM token estimate for any text.
Workflow
- Transcribe the audio with transcribe — OpenAI speech-to-text with language detection and duration.
- Convert the transcript into subtitle cues with srt-convert in your chosen format (SRT, WebVTT, plain text, or JSON cues).
- Run text-stats over the transcript — word count, sentence count, and estimated reading time for downstream budgeting.
Run it in Claude
claude mcp add agent402 -s user -- npx -y agent402-mcp@latest
Then paste this prompt into Claude:
Turn the audio at https://upload.wikimedia.org/wikipedia/commons/c/c8/Example.ogg into subtitles using Agent402's subtitle-pipeline skill pack. (1) Transcribe the audio, (2) convert the transcript to vtt subtitles, (3) get the text statistics. Return the subtitle file content, the detected language and duration, and the word count.