Write subtitles for audio
write_subtitlesTranscribe an audio file locally with Whisper and save subtitles as SRT or VTT beside the source, avoiding transcript output in the conversation.
Instructions
Transcribe an audio file with Whisper (whisper-small), locally, and write the subtitles to a file, by default next to the audio with the same name and a .srt or .vtt extension. The subtitles are not returned, so a long recording costs nothing in the conversation. Refuses to replace an existing file unless overwrite is true. Returns the path written, the detected language and the duration. Takes roughly a tenth of the recording's length on a desktop CPU. To read the transcript instead, use transcribe.
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": {
"path": "<path>"
},
"name": "write_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of a wav, mp3, flac or ogg file. | |
| format | No | srt (default) or vtt. | |
| overwrite | No | Replace output_path if it exists. Default false. | |
| output_path | No | Absolute path to write to. Default: the audio's path with .srt or .vtt. |