Generate subtitles (Faster-Whisper → SRT/VTT)
generate_subtitlesTranscribe a public audio URL with Faster-Whisper and assemble SRT or VTT in the Worker. Pass audio_url to start or job_id to poll; format is srt (default) or vtt. Cost: 2 credits per call. Compliance / SSRF: Use only on material you own or are explicitly licensed/authorized to generate or remix. Do not generate or redistribute copyrighted music, voice likenesses, or trademarked audio without permission. Output URLs have a limited TTL and must not be abused for bulk scraping or redistribution. Calls are rate-limited/metered by mcp-credit-gateway and require a valid sk_live_ key. (仅处理自有或已获授权素材;禁止滥用生成/二创他人受版权保护的音乐或声音;输出有 TTL;调用限频。)
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": "generate_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Subtitle container to build in the Worker after Whisper finishes (`srt` or `vtt`). | srt |
| job_id | No | Existing Faster-Whisper job id. Polling never creates a new upstream job. | |
| language | No | Optional language code (e.g. `en`, `zh`). Omit for auto-detect. | |
| audio_url | No | Public http(s) URL of the audio to subtitle (<= 2048 chars). Required to start a new job; omit when polling with `job_id` only. | |
| wait_seconds | No | How long to wait for a result, 0–55 seconds (default 30). | |
| idempotency_key | No | Optional caller correlation key. Billing is handled by mcp-credit-gateway. |