# Audio and Video Transcription: Whisper Speech to Text, SRT, VTT (`greenrun/audio-video-transcriber`) Actor

Transcribe your audio and video files to text with timestamps, SRT and VTT subtitles. Open-source Whisper runs inside the Actor: no API keys, no third-party AI service. Direct file links only, no YouTube or social media pages. Silent, failed and blocked files are free.

- **URL**: https://apify.com/greenrun/audio-video-transcriber.md
- **Developed by:** [Greenrun](https://apify.com/greenrun) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 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.

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 and Video Transcription: Whisper Speech to Text, SRT, VTT

Transcribe your audio and video files to text with timestamps, SRT and VTT subtitles. Open-source Whisper runs inside the Actor: no API keys, no third-party AI service. Direct file links only, no YouTube or social media pages. Silent, failed and blocked files are free.

Give it links to your recordings, upload them, or point it to a key-value store or a dataset, and get **the text of every file with timestamped segments, ready-made SRT, VTT and TXT files and the detected language**, in **99 languages**. Podcasts, interviews, meetings, lectures, voice notes and videos (MP4, MOV, WebM) all work. **You pay only for the minutes of audio transcribed; files without speech, files without an audio track, unreadable files, blocked links and failed downloads are free**, with the reason in the row. Made for subtitle workflows, content pipelines, RAG ingestion and AI agents that need to know what was said in a recording.

### What it does

- **Transcribes speech** with the OpenAI Whisper base model run by [faster-whisper](https://github.com/SYSTRAN/faster-whisper) on the Actor's own CPU. Nothing is sent to an AI service, and you need no API key.
- **Reads almost any media file**: MP3, M4A, AAC, WAV, FLAC, OGG, Opus, WMA, AMR and the audio track of MP4, MOV, WebM, MKV and AVI videos (FFmpeg libraries through PyAV). The format is recognised from the file's bytes, not its name.
- **Returns three shapes**: `text`, `segments` with start and end in seconds (optionally every word with its timestamp), and **SRT, VTT and TXT files** in the run's key-value store, with links in the row. Subtitle cues are kept short (two lines of about 42 characters) and split at sentence breaks.
- **Detects the language** of each file (or uses the one you set) and can **translate speech to English** instead of transcribing it.
- **Skips silence** with voice activity detection (Silero VAD), so pauses cost no time and files with no speech are recognised and free. Repetition loops that Whisper sometimes writes for music or noise ("uh, uh, uh") are left out.
- **Handles long recordings**: the audio is decoded to disk and transcribed in 10-minute windows cut at pauses, so a three-hour podcast needs no more memory than a short clip.
- **Reads files from several places**: links, uploads in the input form, records of a key-value store, a field of a dataset (for example the output of another Actor), and `data:` URIs for small files sent by AI agents.

### Why use it

- **Pay only for what was transcribed.** A link that is not found, a web page instead of a file, a video without sound or a recording of silence costs nothing, and each says why in `error`.
- **$0.005 per minute, model included.** No API key to bring and no third-party AI service in the middle: the open-source model runs where your data already is.
- **Subtitles you can use.** SRT and VTT files are written for you, with readable cue lengths, next to the plain text.
- **Respectful.** robots.txt is checked for every link and redirect, private network addresses are refused. No proxies, no CAPTCHA solving, no login. Only the files you point to are read.
- **Built for AI agents.** Clear status messages, a predictable price per minute, limited permissions, and a run that stops cleanly at your maximum cost, so it works as a tool in the Apify MCP server.

### How to use

#### In Apify Console

1. Paste links to your audio or video files into **Audio and video file URLs**, one per line, or upload recordings in **Upload files**.
2. Optionally set the **Language** (for example `en`, `de`, `es`), choose **Translate to English**, or list names and terms the model should expect.
3. Press **Start**. The **Overview** shows the text of each file; the SRT, VTT and TXT links are in each row and in the key-value store.

Files already in a key-value store (for example uploads from an earlier run) or links in a dataset: pick the store or the dataset under **More sources**.

#### From an AI agent (MCP)

Connect any MCP client to the Apify MCP server with only this Actor as a tool:

```
https://mcp.apify.com?tools=greenrun/audio-video-transcriber
```

#### Through the API

```bash
curl -X POST "https://api.apify.com/v2/acts/greenrun~audio-video-transcriber/run-sync-get-dataset-items" \
  -H "Authorization: Bearer <APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://upload.wikimedia.org/wikipedia/commons/5/5a/A-law_audio_demo.flac"]}'
```

### Input

| Field | Default | Description |
|---|---|---|
| `urls` | | Direct links to audio or video files (http, https or `data:` URIs), one per line. `index` keeps the input order. |
| `files` | | Files uploaded in the input form (Apify passes their links). |
| `language` | empty | Spoken language as a code (`en`, `de`, `pl`, `ja`, ...) or English name; empty to detect it per file. |
| `task` | `transcribe` | `transcribe` keeps the spoken language; `translate` writes English. |
| `vocabulary` | | Names and terms the model should expect, separated by commas (up to 500 characters). |
| `wordTimestamps` | `false` | Every word with start, end and probability inside each segment. |
| `includeSegments` | `true` | Segments in the row; off: only in a JSON file (`segmentsUrl`). |
| `datasetId` | | Optional dataset whose items contain file links. |
| `datasetField` | `url` | Field with the links in each dataset item; dot paths and lists work. |
| `keyValueStoreId` | | Optional key-value store whose audio and video records are transcribed. |
| `keyValueStoreKeys` | | Only these records of the store; empty: every audio and video record. |
| `maxMinutesPerFile` | `240` | Longer files are transcribed and billed only up to this length (1-1440). |
| `maxFileSizeMb` | `2000` | Larger files are skipped for free (1-10000). |
| `maxConcurrency` | `2` | Files downloaded and decoded while another one is transcribed (1-10). |
| `timeoutSecs` | `600` | Time limit for downloading one file (10-3600). |

### Output

One row from a run on the Apify platform on 21 November 2026 (the two example files of the input form, Fast model; signatures in the links shortened):

```json
{
  "index": 2,
  "input": "https://upload.wikimedia.org/wikipedia/commons/5/5a/A-law_audio_demo.flac",
  "status": "transcribed",
  "fileName": "A-law_audio_demo.flac",
  "format": "flac",
  "durationSecs": 5.78,
  "transcribedSecs": 5.78,
  "billedMinutes": 1,
  "truncated": false,
  "model": "base",
  "task": "transcribe",
  "language": "en",
  "languageProbability": 0.994,
  "languageDetected": true,
  "text": "This is an example of synthesized speech that was created by a neural vocoder.",
  "wordCount": 14,
  "segments": [
    {"start": 0, "end": 5.64, "text": "This is an example of synthesized speech that was created by a neural vocoder."}
  ],
  "srtUrl": "https://api.apify.com/v2/key-value-stores/Dp6ibcsd4EcFl2tqN/records/00002-A-law_audio_demo.srt?signature=...",
  "vttUrl": "https://api.apify.com/v2/key-value-stores/Dp6ibcsd4EcFl2tqN/records/00002-A-law_audio_demo.vtt?signature=...",
  "txtUrl": "https://api.apify.com/v2/key-value-stores/Dp6ibcsd4EcFl2tqN/records/00002-A-law_audio_demo.txt?signature=...",
  "segmentsUrl": null,
  "sizeBytes": 153379,
  "finalUrl": "https://upload.wikimedia.org/wikipedia/commons/5/5a/A-law_audio_demo.flac",
  "httpStatus": 200,
  "processingSecs": 4.38,
  "warnings": [],
  "checkedAt": "2026-11-21T05:13:54Z",
  "error": null,
  "billableEvents": {"audio-minute": 1}
}
```

The same run read the German example file as `de` (probability 0.999): "Diese Sprachausgabe wurde von einem Computer mit dem Programm Ispik erzeugt." (the program is called eSpeak). The SRT file of a ten-minute English test recording (synthetic speech, run on the same day) starts like this:

```
1
00:00:00,000 --> 00:00:03,200
Every morning the harbor
town wakes up slowly.

2
00:00:03,200 --> 00:00:08,120
Fishing boats return before sunrise, and
the first cafes open their shutters while

3
00:00:08,120 --> 00:00:10,880
the streets are still
wet from the night rain.
```

`status` is `transcribed` (charged), or one of the free statuses: `no_speech`, `no_audio`, `unsupported`, `not_found`, `blocked`, `too_large`, `error`. `languageDetected` is false when you set the language. `truncated` is true when the file was cut by `maxMinutesPerFile`, by your maximum cost or by the run's timeout (the reason is in `warnings`). The `RUN-REPORT` record in the key-value store has the counts and the reason for every free row.

### Pricing

Pay per event, no subscription:

| Event | Price | When |
|---|---|---|
| Audio minute | $0.005 | One started minute of audio transcribed. Silent, failed and blocked files are free. |
| Actor start | $0.0045 per GB of memory | Once per run: $0.018 with the default 4 GB. |

A file is billed per started minute of its audio (a 61-second clip is 2 minutes), up to `maxMinutesPerFile`. Example: 100 podcast episodes of 30 minutes in one run cost $15.00 plus one start of $0.018; one 5-minute file costs $0.043.

Free: files without speech, files without an audio track, links that are not found, blocked by robots.txt or refused by the site, pages and platform links, files above your size limit, and failed downloads. You can cap the cost of a run with the maximum charge in the run options (it covers the start too: with 4 GB, $0.018 plus $0.005 per minute): a file that does not fit is transcribed only as far as the limit allows, the run stops cleanly, and the status message says so.

**Fair use built in.** The price of a minute covers the computing time of normal speech. A run stops cleanly when its work would cost more than it is billed: when a recording needs much more time per minute than speech usually does (very fast speech above about 5 words per second, long music or noise taken for speech), the file is cut at the last transcribed sentence and billed only up to there; and before the first transcribed minute a run spends only a limited time on starting, downloads, reading dataset rows, decoding and files without speech (the start price covers about 40 seconds of run time), after which the remaining inputs are not tried. Minutes are charged while a file is transcribed, not only at its end, and the Actor stops a few seconds before the run's timeout to save the transcribed part, so a long file never runs unpaid. Sound tags that Whisper writes for music ("\[Music]", "♪") and segments that only repeat your `vocabulary` are not words: a file with nothing else is free. If you abort a run, the file in progress is saved up to its last transcribed sentence and billed up to there. The status message says which happened.

### Limits

- **Your files only.** The Actor reads files you link, upload or store; it does not download from YouTube, TikTok, Instagram, Facebook, X, Vimeo, SoundCloud, Spotify, podcast apps or other platforms, does not read podcast RSS feeds, and does not open share pages of Google Drive, OneDrive or Dropbox (a direct download link works).
- **No speaker labels** (who said what) in this version, and one model: Whisper base.
- Whisper base is a small model: clear speech is transcribed well, but strong accents, noise, music, overlapping speakers and rare names give more mistakes; setting the language and the `vocabulary` field help. Speech in one file is treated as one language.
- Speed with the default 4 GB of memory (one CPU core), measured on the platform on 21 November 2026: a ten-minute recording of normal speech takes about 80 to 120 seconds (the platform's machines differ), very fast speech up to twice as long. More memory adds CPU cores (one per 4 GB). The run's timeout (4 hours by default) ends the work; the file in progress keeps what was done.
- The first file of a run should download quickly: depending on how fast the run starts, a first download longer than about 20 to 30 seconds (a slow host, or a large video: use its audio track) is stopped for free, with its size and speed in the message; uploads and key-value store records are read inside Apify, and a first one of about 50 to 100 MB fits. Later files can use the time the earlier ones paid for.
- A dataset (`datasetId`) is read only in the field with the links and only as far as the run can pay for its rows (reads cost even without links): up to 5,000 links per run.
- You are responsible for the recordings you send and for any personal data in them (voices, names): use files you may process. The Actor keeps nothing outside your run.

### FAQ

**Do you keep the recordings or the transcripts?** No. Files are deleted from the run's disk after transcription; results stay in your run's dataset and key-value store in your own Apify account, under your data retention settings.

**Why was a file not charged?** Each free row has its reason in the `error` field, and the `RUN-REPORT` record in the key-value store counts them.

**Something is wrong with a result?** Open an issue on the Actor's **Issues** tab with the file link.

### Credits

Whisper base by OpenAI (MIT licence), converted for CTranslate2 by Systran (MIT); [faster-whisper](https://github.com/SYSTRAN/faster-whisper) and CTranslate2 (MIT); Silero VAD (MIT); audio decoding with [FFmpeg](https://ffmpeg.org) libraries through PyAV (BSD-3; FFmpeg under LGPL/GPL).

# Actor input Schema

## `urls` (type: `array`):

Direct http or https links to audio or video files, one per line: MP3, M4A, AAC, WAV, OGG, Opus, FLAC, WMA, MP4, MOV, WebM, MKV, AVI and most other formats. Each file becomes one row. Links to pages of YouTube, TikTok, Instagram, podcast apps and other platforms are not supported. data: URIs work too.

## `files` (type: `array`):

Recordings from your computer. Apify stores them in a key-value store of your account and passes their links to the Actor.

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

Language spoken in the files as a code (en, de, es, fr, pl, ja, zh and 93 more) or its English name. Empty: detected from the first minute with speech of each file. Setting it helps with short files and strong accents.

## `task` (type: `string`):

Transcribe keeps the spoken language. Translate to English writes English text from speech in any language (Whisper's own translation).

## `vocabulary` (type: `string`):

Words the model should expect: names, brands, jargon, separated by commas, for example: Greenrun, Kubernetes, Szczebrzeszyn. Up to 500 characters.

## `wordTimestamps` (type: `boolean`):

Add every word with its start, end and probability to each segment. About 10% slower; subtitles are then split at word boundaries.

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

Timestamped segments in each row. Off: only the text in the row, segments in a JSON file in the key-value store (segmentsUrl).

## `datasetId` (type: `string`):

Also transcribe the file links found in this dataset, for example the output of another Actor. Pick the field below.

## `datasetField` (type: `string`):

Field of each dataset item that holds the file link. Dot paths and lists work: url, audioUrl, media.url, files.0.

## `keyValueStoreId` (type: `string`):

Transcribe audio and video records of this key-value store. Records that are not audio or video are skipped for free.

## `keyValueStoreKeys` (type: `array`):

Keys of the records to transcribe. Empty: every audio and video record of the store (up to 5,000).

## `maxMinutesPerFile` (type: `integer`):

Longer files are transcribed and billed only up to this length; the row says so (truncated). Long files need time: a run's timeout also ends the work, keeping what is done.

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

Larger files are skipped for free. A run gets twice its memory as disk, so very large videos need more memory.

## `maxConcurrency` (type: `integer`):

Files downloaded and decoded while another one is transcribed. Transcription itself uses one CPU core per 4 GB of memory.

## `timeoutSecs` (type: `integer`):

A download that takes longer fails for free.

## Actor input object example

```json
{
  "urls": [
    "https://upload.wikimedia.org/wikipedia/commons/b/b8/ESpeak-MBROLA-de6_%28Machine-pronunciation_german%29.wav",
    "https://upload.wikimedia.org/wikipedia/commons/5/5a/A-law_audio_demo.flac"
  ],
  "language": "",
  "task": "transcribe",
  "wordTimestamps": false,
  "includeSegments": true,
  "datasetField": "url",
  "maxMinutesPerFile": 240,
  "maxFileSizeMb": 2000,
  "maxConcurrency": 2,
  "timeoutSecs": 600
}
```

# Actor output Schema

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

No description

## `report` (type: `string`):

No description

## `subtitles` (type: `string`):

No description

# 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 = {
    "urls": [
        "https://upload.wikimedia.org/wikipedia/commons/b/b8/ESpeak-MBROLA-de6_%28Machine-pronunciation_german%29.wav",
        "https://upload.wikimedia.org/wikipedia/commons/5/5a/A-law_audio_demo.flac"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("greenrun/audio-video-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 = { "urls": [
        "https://upload.wikimedia.org/wikipedia/commons/b/b8/ESpeak-MBROLA-de6_%28Machine-pronunciation_german%29.wav",
        "https://upload.wikimedia.org/wikipedia/commons/5/5a/A-law_audio_demo.flac",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("greenrun/audio-video-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 '{
  "urls": [
    "https://upload.wikimedia.org/wikipedia/commons/b/b8/ESpeak-MBROLA-de6_%28Machine-pronunciation_german%29.wav",
    "https://upload.wikimedia.org/wikipedia/commons/5/5a/A-law_audio_demo.flac"
  ]
}' |
apify call greenrun/audio-video-transcriber --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,greenrun/audio-video-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/D7SBDwfPbZpMGfGtD/builds/F5emleLZAN17WKkc9/openapi.json
