generate_srt
Transcribe audio or video files locally and write an SRT subtitle file next to the input or at a specified output path. Choose Whisper model size and device for CPU or CUDA inference.
Instructions
Transcribe a file and write an .srt subtitle file next to it (or at output_path).
Args: path: Path to the input audio/video file. output_path: Where to write the .srt file. Defaults to the input path with a .srt suffix. model_size: Whisper model size (tiny/base/small/medium/large-v3). device: Inference device: "auto", "cpu", or "cuda".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| device | No | auto | |
| model_size | No | small | |
| output_path | No |