Captions from word timestamps
captions_from_wordsBuild frame-accurate captions from Whisper, WhisperX, Deepgram, or word-timing JSON, then export styled SRT, VTT, ASS, JSON, or TXT with reel or standard layouts.
Instructions
Build frame-accurate captions from word-level timestamps produced by speech-to-text (Whisper / faster-whisper / WhisperX JSON with word_timestamps, Deepgram JSON, or a plain [{word, start, end}] array in seconds, or start_ms/end_ms). Same styles as reflow_captions; reels style is the classic word-by-word social caption.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "captions_from_words"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | reels: 1–3 words per caption, one short line. standard: up to 42 chars × 2 balanced lines. custom: use the limits below. | reels |
| ass_style | No | Styling for ASS output (used when burning captions into video). | |
| max_lines | No | ||
| max_words | No | Max words per caption (reels default 3). | |
| overwrite | No | Allow replacing an existing file. | |
| uppercase | No | ALL CAPS captions (reels default: false). | |
| words_json | No | The JSON itself, if no file. | |
| words_path | No | Path to the JSON file with word timings. | |
| output_path | No | Write the result here. Format follows the extension unless `to` is set. Omit to get the text back inline. | |
| output_format | No | srt | |
| min_duration_ms | No | ||
| strip_punctuation | No | Drop periods, commas and quotes, keep ? and ! (reels default: true). | |
| max_chars_per_line | No |