# Audio & Video to Text: Whisper Transcription, SRT & VTT (`data-done-right/whisper-transcriber`) Actor

Transcribe audio and video file URLs to text with Whisper, no API key: transcript, language, SRT and VTT subtitles, optional timestamps. Direct mp3/mp4/wav/m4a links only, no YouTube. Base or small model on CPU. Pay per audio minute; failures are free.

- **URL**: https://apify.com/data-done-right/whisper-transcriber.md
- **Developed by:** [Data Done Right](https://apify.com/data-done-right) (community)
- **Categories:** Videos, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.60 / 1,000 audio minutes

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Audio & Video to Text: Whisper Transcription, SRT & VTT

This tool does **audio and video to text** transcription in bulk: give it direct links to audio or video files and it returns the transcript, the spoken language and **SRT or VTT subtitle files** for each one. It runs OpenAI's Whisper model (through faster-whisper) on CPU inside the Actor, so there is no API key and nothing to install.

> **What it does not do.** It reads **direct audio and video files** (mp3, m4a, wav, flac, ogg, mp4, mov, webm, mkv) from a public URL. It **does not download from YouTube, Vimeo, TikTok, Instagram, Spotify or other sites** and rejects those links without charge; HLS/DASH playlists are not supported. It does **not identify speakers (no diarization), translate, summarize, or give word-level timestamps**: you get a transcript with segment timestamps. Whisper can make mistakes, and the fast **base** model is weaker on noise, accents and non-English speech than **small**. A file with no speech is reported and is free. Use it only on media you own or have the right to process.

**What you get**

- One dataset row per file: source URL, full transcript text, detected language, duration, audio minutes billed, word count and a status or a clear error.
- Optional files in the key-value store with download links: **SRT**, **WebVTT**, plain text and JSON with timestamped segments. Optional `segments` array right in the dataset.
- Failed, skipped and no-speech files are free, never stop the run, and say exactly why.

### How to transcribe an audio file URL to text

1. Paste one or more **direct audio URLs** in `mediaUrls` (for example a podcast episode `.mp3`).
2. Leave `model` on `base`, or pick `small` for harder audio. Set `language` (for example `en`) if you know it, or leave `auto`.
3. Run it. Open the dataset: the `text` field holds the transcript, `srtUrl` links to the subtitle file. The `SUMMARY` record counts the files and minutes billed and lists every failure.

### How to generate SRT subtitles from a video

Paste the video URL in `mediaUrls` and keep `saveSrt` on (add `saveVtt` for WebVTT). The Actor decodes the audio track of the video with ffmpeg and transcribes it; only the speech is used, the picture is ignored. To put the captions into the video, feed the `.srt` link to **Burn Subtitles into Video: Hardcode SRT & VTT Captions (Bulk)**.

### How to get a timestamped transcript for search or LLMs

Turn on `saveJson` (a file with language, duration, text and segments) or `includeSegments` (the same segments inside the dataset row). Each segment has `start` and `end` in seconds and its text. Segments follow Whisper's own phrasing, usually one sentence or clause.

### How to transcribe a list of files

Put all links in `mediaUrls`. They are processed one after the other. `maxFilesPerRun` and `maxAudioMinutesPerRun` cap the run, and a file that would go over the minute cap is skipped and not charged.

### Input

| Field | Default | What it does |
|---|---|---|
| `mediaUrls` | JFK sample | Direct audio or video file links (required). |
| `model` | `base` | `base` (fast) or `small` (more accurate, twice the price per minute). |
| `language` | `auto` | Whisper language code such as `en`, `de`, `fr`, `es`, `ja`, or `auto`. |
| `accuracy` | `fast` | `fast` (greedy) or `better` (beam search, slower, same price). |
| `saveSrt` / `saveVtt` / `saveTxt` / `saveJson` | true / false / false / false | Which files to store with download links. |
| `includeSegments` | false | Add timestamped segments to each dataset row. |
| `maxFilesPerRun` | 100 | Hard cap on files per run (max 1000). |
| `maxAudioMinutesPerRun` | 300 | Hard cap on billable minutes. |
| `maxDurationMinutes` | 180 | Longer files are rejected, free. |
| `maxFileSizeMb` | 500 | Source size cap (max 2048). |
| `downloadTimeoutSecs` / `fileTimeoutSecs` | 600 / 3600 | Per download / per transcription. |
| `outputStoreName` | empty | Save files in a named store that is kept until you delete it. |

Input example:

```json
{
  "mediaUrls": ["https://github.com/openai/whisper/raw/main/tests/jfk.flac"],
  "model": "base",
  "language": "auto",
  "saveSrt": true,
  "saveVtt": true
}
```

### Output

From a real local run of the input above (base model, CPU):

```json
{
  "sourceUrl": "https://github.com/openai/whisper/raw/main/tests/jfk.flac",
  "mediaIndex": 1, "status": "ok", "model": "base", "language": "en", "languageProbability": 0.944,
  "durationSeconds": 11.0, "minutesBilled": 1, "wordCount": 22,
  "text": "And so my fellow Americans ask not what your country can do for you, ask what you can do for your country.",
  "segmentCount": 1,
  "srtUrl": "https://api.apify.com/v2/key-value-stores/<store>/records/jfk-001.srt",
  "vttUrl": "https://api.apify.com/v2/key-value-stores/<store>/records/jfk-001.vtt",
  "txtUrl": null, "jsonUrl": null, "error": null, "note": null
}
```

The matching `.srt` file:

```
1
00:00:00,000 --> 00:00:11,000
And so my fellow Americans ask not what your country can do for you, ask what you can do for your country.
```

A file that cannot be processed looks like this and is not charged:

```json
{
  "sourceUrl": "https://example.com/nope.mp3", "mediaIndex": 2, "status": "error",
  "minutesBilled": 0, "text": null, "error": "download failed: HTTP 404"
}
```

`status` is `ok`, `no_speech`, `skipped` (spending limit, `maxFilesPerRun` or `maxAudioMinutesPerRun` reached) or `error`. On Apify the file links are signed and download without a token.

### Use with the Apify API, MCP, n8n and Make

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("data-done-right/whisper-transcriber").call(run_input={
    "mediaUrls": ["https://example.com/episode-12.mp3"], "language": "en", "saveSrt": True})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["status"], row["text"] or row["error"])
```

JavaScript:

```js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<APIFY_TOKEN>' });
const run = await client.actor('data-done-right/whisper-transcriber').call({
  mediaUrls: ['https://example.com/interview.mp4'], model: 'small' });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

In n8n or Make use the Apify node with the actor name and the same JSON. With Apify's MCP server (mcp.apify.com) an AI assistant can call it: "transcribe this mp3 and give me the SRT". Only a file URL is needed.

### Use cases

- Turn podcast episodes, interviews and calls into searchable text.
- Create SRT or VTT captions for your own videos and webinars.
- Feed transcripts of recordings to an LLM for summaries, chapters or Q\&A (the Actor itself does not summarize).
- Index a library of audio files with timestamped segments.
- Check what is said in a batch of voice messages or lecture recordings.

### How much does it cost

Pay per event, per audio minute delivered. Every started minute counts, so a 5-second file is billed as 1 minute and a 61-second file as 2.

- **Base model: $0.0045 per audio minute** (`audio-minute`, $4.50 per 1,000 minutes).
- **Small model: $0.009 per audio minute** (`audio-minute-small`, $9 per 1,000 minutes).

Failed files, skipped files, files with no speech, rejected links and the `SUMMARY` record are free. There is no start fee. Plan discounts apply (Silver about 10%, Gold and higher about 20%). Examples with the base model:

- 1,000 minutes (about 17 hours of audio, for example 20 podcast episodes of 50 minutes): $4.50.
- 10,000 minutes: $45.
- 100,000 minutes: $450.

With the small model double these numbers. `maxAudioMinutesPerRun` and `maxFilesPerRun` cap a run, and if you set a maximum spend per run the Actor stops cleanly when it is reached and removes the files it could not charge for. Apify platform usage is included in this price.

### FAQ

#### Can it transcribe YouTube videos?

No. YouTube, Vimeo, TikTok, Instagram, Spotify and other site links are rejected with a message and no charge. Use a direct link to an audio or video file that you have the rights to.

#### Which languages work?

Whisper handles about 99 languages and the Actor accepts their codes. Accuracy is best for English and other widely spoken languages and drops for rare languages and noisy audio. The base model is the weakest here; use `small` and set `language` yourself when the result looks wrong. Language auto-detection looks at the first 30 seconds only.

#### Does it label who is speaking?

No. There is no speaker diarization, no word-level timestamps and no translation. You get the text with segment timestamps.

#### How accurate is it and how fast?

We checked it on an 11-second public-domain speech clip (exact sentence recognised) and on 6 minutes of synthetic text-to-speech: on one CPU core the base model needed about 2 seconds of processing per audio minute (4 with beam search), the small model about 9 with beam search. Real recordings with noise, music or overlapping speakers are harder and slower, and we have not published word error rates because we did not measure them. Whisper can invent text on music or silence; the Actor filters out silent stretches before transcribing, which reduces but does not remove this.

#### Which limits apply?

Source files up to 2 GB (default 500 MB) and 3 hours by default, up to 1000 files per run. Links to private or internal addresses are blocked. Files are downloaded in full before transcribing.

#### What happens to a file with no speech or no audio?

A file without an audio track gives an `error` row. A file where no speech was found gives status `no_speech`. Both are free.

#### How long are the subtitle links kept?

Files live in the run's key-value store, which expires with your plan's retention period. Set `outputStoreName` to keep them in a named store until you delete them.

### Related tools

- **Extract Audio from Video: MP3, WAV & FLAC in Bulk** converts video to audio files first, for example to shrink large uploads.
- **Remove Silence from Audio & Video: Cut Pauses, Jump Cuts** trims pauses before you transcribe.
- **Burn Subtitles into Video: Hardcode SRT & VTT Captions (Bulk)** puts the SRT you get here into the video.
- **Transcribe Audio to Text: Files, Podcasts & Video URLs** is our other transcriber, which calls an external service with your own API key.
- **Video Frame Extractor: Keyframes, Scenes & Thumbnails for AI** pulls still images from the same videos.

# Actor input Schema

## `mediaUrls` (type: `array`):

Direct links to audio or video files (mp3, m4a, wav, flac, ogg, mp4, mov, webm, mkv). Example: https://example.com/episode.mp3. One transcript per link. YouTube, Vimeo, TikTok, Spotify and other site page links are rejected, with no charge.

## `model` (type: `string`):

Base is fast and good for clear speech. Small is about twice as slow and noticeably more accurate on accents, noise and non-English audio, at double the price per minute.

## `language` (type: `string`):

Spoken language as a Whisper code, for example en, de, fr, es, pt, ja, or auto to detect it from the first 30 seconds. Setting it avoids wrong detection on short or noisy files. Example: en.

## `accuracy` (type: `string`):

Fast uses greedy decoding. Better uses beam search (beam size 5): usually a little more accurate, about twice as slow on our test file. The price per minute is the same.

## `saveSrt` (type: `boolean`):

Store an .srt file per transcript in the key-value store and return its link in srtUrl.

## `saveVtt` (type: `boolean`):

Store a WebVTT .vtt file per transcript and return its link in vttUrl.

## `saveTxt` (type: `boolean`):

Store a .txt file with the full transcript and return its link in txtUrl. The text is also always in the text field of the dataset row.

## `saveJson` (type: `boolean`):

Store a .json file with language, duration, full text and timestamped segments, and return its link in jsonUrl.

## `includeSegments` (type: `boolean`):

Add a segments array (start and end in seconds, text) to each dataset row. Makes rows larger.

## `maxFilesPerRun` (type: `integer`):

Hard cap on files processed in one run. Links past the cap are listed as skipped and not charged.

## `maxAudioMinutesPerRun` (type: `integer`):

Hard cap on the audio minutes you can be charged for in one run. A file that would go over it is skipped, free. Example: 300 = 5 hours of audio, at most $1.35 with the base model.

## `maxDurationMinutes` (type: `number`):

Longer files are rejected without charge. Example: 180 = 3 hours.

## `maxFileSizeMb` (type: `integer`):

Files above this size are rejected before the download finishes. Maximum 2048.

## `downloadTimeoutSecs` (type: `integer`):

Applies to the download of each file.

## `fileTimeoutSecs` (type: `integer`):

Stops the transcription of one file after this time and reports it as failed (not charged). The base model needed about 2 to 4 seconds per audio minute on one CPU core in our test, small about 9; real recordings and the shared CPU on the platform can be slower.

## `outputStoreName` (type: `string`):

Optional key-value store name. Named stores are kept until you delete them, while the store of a run expires after your plan retention period. Example: my-transcripts.

## Actor input object example

```json
{
  "mediaUrls": [
    "https://github.com/openai/whisper/raw/main/tests/jfk.flac"
  ],
  "model": "base",
  "language": "auto",
  "accuracy": "fast",
  "saveSrt": true,
  "saveVtt": false,
  "saveTxt": false,
  "saveJson": false,
  "includeSegments": false,
  "maxFilesPerRun": 100,
  "maxAudioMinutesPerRun": 300,
  "maxDurationMinutes": 180,
  "maxFileSizeMb": 500,
  "downloadTimeoutSecs": 600,
  "fileTimeoutSecs": 3600
}
```

# Actor output Schema

## `results` (type: `string`):

One row per file with the transcript, language, duration, minutes billed, subtitle links and status, as JSON, CSV, Excel and more.

## `records` (type: `string`):

Key-value store records: the SRT, VTT, TXT and JSON files and the run summary with any failures.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mediaUrls": [
        "https://github.com/openai/whisper/raw/main/tests/jfk.flac"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("data-done-right/whisper-transcriber").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "mediaUrls": ["https://github.com/openai/whisper/raw/main/tests/jfk.flac"] }

# Run the Actor and wait for it to finish
run = client.actor("data-done-right/whisper-transcriber").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mediaUrls": [
    "https://github.com/openai/whisper/raw/main/tests/jfk.flac"
  ]
}' |
apify call data-done-right/whisper-transcriber --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,data-done-right/whisper-transcriber"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/WTKj6xiiTWYbqLsEE/builds/Rt13WkOFAS6EfaD1d/openapi.json
