Subtitle Generator — SRT and VTT Captions from Video Files avatar

Subtitle Generator — SRT and VTT Captions from Video Files

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Subtitle Generator — SRT and VTT Captions from Video Files

Subtitle Generator — SRT and VTT Captions from Video Files

Generate subtitles from video or audio file links with Whisper speech recognition: an SRT and a WebVTT file per video, plus every caption line with start and end time. 90+ languages, auto-detected. No API key.

Pricing

from $1.00 / 1,000 results

Rating

0.0

(0)

Developer

Ponderable Hydrometer

Ponderable Hydrometer

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Categories

Features

Limited permissions

Share

Upload-ready subtitles from any video or audio link. Whisper speech recognition writes the captions; you get a ready .srt and .vtt file per video, plus every caption line with its timing for your own editor or translation step.

Input

FieldTypeDefaultDescription
mediaUrlsarray—Direct links to video or audio files.
languagestringautoLanguage code or auto.
maxMinutesPerFileinteger60Only the first minutes are captioned.

What you get

One row per caption line: mediaUrl, index, start, end (SRT timestamps), startSecs, endSecs, text, language, and links to the full srtUrl and vttUrl files.

Output sample

{
"mediaUrl": "https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav",
"index": 1,
"start": "00:00:00,000",
"end": "00:00:10,500",
"startSecs": 0,
"endSecs": 10.5,
"text": "And so my fellow Americans, ask not what your country can do for you, ask what you can do for your country.",
"language": "en",
"srtUrl": "https://api.apify.com/v2/key-value-stores/abc/records/subtitles-1.srt",
"vttUrl": "https://api.apify.com/v2/key-value-stores/abc/records/subtitles-1.vtt"
}

What you can do with it

  • Caption your own videos for social media, courses and webinars: download the .srt or .vtt file and upload it next to the video.
  • Make recordings accessible with a timed caption file instead of a loose transcript.
  • Feed an editor or a translation step: every caption line also comes as a dataset row with startSecs, endSecs and text.
  • Caption a library in one run: list as many file links as you need; each file gets its own .srt and .vtt.

Input example

{
"mediaUrls": ["https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav"],
"language": "auto",
"maxMinutesPerFile": 60
}

Use a language code (en, es, de, ...) instead of auto when you know the language; it skips detection and avoids a wrong guess on short or noisy files.

What you give it and what you get

You give itYou get back
A direct link to a video or audio file (for example MP4, MOV, WEBM, MP3, M4A or WAV)One .srt file and one .vtt file, stored in the run's key-value store (srtUrl, vttUrl)
language: "auto"The detected language in every row (language)
maxMinutesPerFileCaptions for the first N minutes of each file

Use it from the API or an AI agent

Start a run and read the captions back in one HTTP call:

curl -X POST "https://api.apify.com/v2/acts/ponderable_hydrometer~subtitle-generator/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"mediaUrls": ["https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav"]}'

AI agents can call it through the Apify MCP server: https://mcp.apify.com?tools=ponderable_hydrometer/subtitle-generator.

How it works

Each file is downloaded, its audio is converted to 16 kHz mono, and whisper.cpp (Whisper tiny, multilingual) transcribes it on the Actor's own CPU. No audio is sent to any other service. Each Whisper segment becomes one caption.

Limits and good to know

  • Direct file links only. Pages of YouTube, TikTok, Instagram and similar sites are not supported.
  • Model size. The compact tiny model is what keeps the price low. Clear speech works well; noisy audio, music, heavy accents, names and rare terms need a quick review.
  • Caption length. Captions follow Whisper's own segments. The Actor does not re-wrap them to a fixed number of lines or characters.
  • Length cap. Only the first maxMinutesPerFile minutes (default 60, maximum 600) of each file are captioned.
  • No speech, no row. A file with no speech, or one that cannot be read, produces no rows and no result fee. If every file fails, the run ends as FAILED.
  • No speaker labels and no translation. Captions are in the language spoken.
  • Billing unit. One result is one caption line, so a longer, more talkative file produces more rows. Try a short maxMinutesPerFile first to see how many captions a typical file produces.

FAQ

Can it caption a YouTube link? No. It needs a link that downloads the media file itself.

Which languages are supported? The languages Whisper's multilingual model covers. Set language to the code, or leave auto.

Where are the SRT and VTT files? In the run's key-value store, named subtitles-1.srt, subtitles-1.vtt, and so on in input order; every row carries the two links.

Pricing

Pay per result — $1.00 per 1,000 results (one caption line = one result), plus Apify's standard per-run start event ($0.00005 per GB of memory, so a fraction of a cent per run). No subscription.