Skip to main content
Glama

generate_subtitles

Generate SRT or WebVTT subtitle files from audio or video using local whisper.cpp transcription. Supports auto language detection, English translation, and GPU acceleration.

Instructions

Generate subtitle files for an audio or video file using whisper.cpp. Set language='auto' to detect the spoken language automatically. Set translate_to_english=true to also generate an English translation subtitle file. Supports SRT and WebVTT (VTT) output formats. When both native and translation are requested, two files are saved: one in the original language and one English translation. Load SRT in VLC via Subtitle → Add Subtitle File. VTT works in web players and HTML5 video. Supports all standard formats plus .3gp and .ts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptNoPrior context string for domain-specific vocabulary or speaker names.
best_ofNoCandidate sequences evaluated. Default 5.
diarizeNoStereo speaker diarization. Requires stereo audio.
threadsNoCPU threads. Defaults to 4 of 8.
languageNoLanguage code (e.g. ja, es, fr, de) or 'auto' to detect automatically. Defaults to en.en
beam_sizeNoBeam search width. Higher = more accurate, slower. Default 5.
file_pathYesAbsolute Windows path to the file.
vad_modelNoPath to Silero VAD model .bin. Strips silence before transcription.
backgroundNoRun as a detached background job — recommended for files over 10 minutes. Returns a job ID to use with check_progress. translate_to_english is not available in background mode.
gpu_deviceNoGPU/Vulkan device index for multi-GPU systems. Overrides the WHISPER_GPU_DEVICE env default. Check whisper-cli's startup log for the index that lists your target card.
temperatureNoSampling temperature 0.0–1.0. Default 0.0.
tinydiarizeNoMono speaker-turn detection (TinyDiarize). Requires a tdrz model (small.en-tdrz) activated via switch_model.
output_formatNosrt = SubRip subtitle (default, widest compatibility), vtt = WebVTT (web and HTML5 video).srt
translate_to_englishNoAlso generate an English translation subtitle file alongside the native language file. Only applies when language is not 'en'. Not available in background mode.
Install Server

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the disclosure burden. It discloses that two files are saved when both native and translation are requested and mentions input format support ('.3gp and .ts'). However, it omits other behavioral details like whether existing files are overwritten, what the tool actually returns, or background-mode limitations, leaving gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is six sentences long, front-loaded with a clear purpose, and uses selective examples. It avoids fluff but could be tightened without losing scope. Each sentence adds operational value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's 14 parameters, no output schema, and no annotations, the description should clearly explain what the tool returns (e.g., saved file paths) and any critical behavior like overwriting. It does neither. It also doesn't mention background mode viability, leaving the agent without enough context to predict outcomes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description repeats a few parameter highlights (language='auto', translate_to_english=true) but adds no new meaning beyond the schema's already detailed parameter descriptions. It contributes only playback-format context, not parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with 'Generate subtitle files for an audio or video file using whisper.cpp', clearly stating a specific verb, resource, and tool. It further details output formats (SRT/VTT) and translation capability, distinguishing it from siblings like transcribe_audio.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives concrete usage tips: setting language='auto', enabling translate_to_english, and choosing SRT vs VTT based on playback context. However, it does not explicitly contrast this tool with alternatives such as transcribe_audio, leaving selection criteria implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/eviscerations/whisper-windows-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server