Re-export subtitles from a transcript JSON
convert_subtitlesRegenerates SRT, VTT, TXT, JSON, or ASS subtitle files from a babelscribe JSON without transcribing again, applying edited text, timing, format changes, and line width.
Instructions
Write subtitle files again from a babelscribe .json, without transcribing again (instant, no GPU).
Use it to change the line width or add a format, or after correcting names and words: edit the "text" of the segments in the JSON, then call this, and every format gets the corrected text with its timing. json_path: absolute path to the .json written by transcribe (formats must have included json). formats: comma list from srt, vtt, txt, json, ass. max_line_chars: maximum characters per subtitle line; 0 = the default for the language. output_dir: folder for the output files; empty = next to the JSON. Returns the files written, the number of segments, and how many had edited text.
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": {
"json_path": "<json_path>"
},
"name": "convert_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formats | No | srt | |
| json_path | Yes | ||
| output_dir | No | ||
| max_line_chars | No |