Transcribe video to subtitles
transcribe_videoGenerates timed subtitle files (SRT, VTT, TXT) from videos by extracting audio, transcribing Derja, French, or English, and labeling speakers; optionally burns subtitles into an MP4.
Instructions
Make subtitles for a video: extracts the audio, transcribes Derja/French/English, and writes srt, vtt and txt in one go, timed for reading. Speakers are labelled and colored by default (no extra charge), with a speaker report and a clip of each voice; when there are several, ask the user whether to name them, then call name_speakers. Set burn_subtitles to also render a copy of the video with the subtitles drawn in. Needs ffmpeg. Costs money per minute.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_path": "<input_path>"
},
"name": "transcribe_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | Names or jargon likely to appear. | |
| diarize | No | Label and color each speaker (no extra charge). Set false for a single speaker. | |
| formats | No | Files to write. Default: all three (txt, srt, vtt). A .json with full timings is always written too. | |
| language | No | ||
| input_path | Yes | Path to the video file (mp4, mov, mkv, webm...). | |
| output_dir | No | Folder to write into. Defaults to a new folder in the output folder. | |
| max_cost_tnd | No | Refuse to run if the estimated cost is above this many TND. Defaults to TAPRA_MAX_COST_TND when set. | |
| subtitle_font | No | Font for burned subtitles. Must support Arabic; Tahoma and Segoe UI do (Arial drops the لا ligature). | Tahoma |
| burn_subtitles | No | Also render an MP4 with the subtitles drawn on the picture (speaker colors kept). | |
| max_chars_per_subtitle | No | Longest subtitle, in characters. |