# Audio & Video Transcriber: MP3/MP4 to Text, SRT, VTT (Whisper) (`open-data-tools/audio-video-transcriber`) Actor

Transcribe audio and video files, podcast RSS feeds or another Actor's dataset to text with timestamps, SRT and VTT subtitles and JSON. Whisper runs on Apify, so your audio is not sent to outside AI services. Auto language detection. $0.003 per audio minute, no start fee.

- **URL**: https://apify.com/open-data-tools/audio-video-transcriber.md
- **Developed by:** [Open Data Tools](https://apify.com/open-data-tools) (community)
- **Categories:** AI, Videos, Developer tools
- **Features:** Limited permissions
- **Stats:** 4 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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 & Video Transcriber: MP3/MP4 to Text, SRT, VTT (Whisper)

Turn audio and video files into text with timestamps. Give it file links, podcast RSS feeds, or the results of another Actor, and get back one row per file with the full transcript, timestamped segments, and download links for **SRT** and **VTT** subtitles and a **JSON** transcript.

Speech recognition runs on Apify's own servers with OpenAI's open-source Whisper model (the faster-whisper build). Your audio is not sent to any outside transcription or AI service.

### Price

- **Whisper tiny (default): $0.003 per audio minute** ($0.18 per hour of audio)
- **Whisper base: $0.006 per audio minute** ($0.36 per hour of audio)
- **No start fee.** Failed files, refused links and skipped files cost nothing.
- Minutes are added up across the whole run and rounded up once at the end, so ten 30-second clips cost 5 minutes, not 10.
- You pay only for what is transcribed. If you cap a file with *Maximum minutes per file*, the rest is not charged.
- Users on the free Apify plan can transcribe up to 30 audio minutes per run.

### What you get for each file

- **text**: the full transcript
- **segments**: a list of `{start, end, text}` with times in seconds
- **srtUrl** and **vttUrl**: subtitle files ready for video editors, YouTube Studio uploads or web players
- **jsonUrl**: the transcript as JSON, with a time for every word when *Word-level timestamps* is on
- **language** (detected or given), **durationSec**, **transcribedSec**, **wordCount**
- **status**: `ok`, `failed` or `skipped`, with the reason in **error**
- For podcasts: the episode **title**, **published** date and **feed**

Example row (shortened):

```json
{
  "index": 4,
  "title": "Is this how the great international borrowing spree ends?",
  "source": "rss",
  "status": "ok",
  "language": "en",
  "durationSec": 1723.3,
  "transcribedSec": 600,
  "note": "transcribed the first 10.0 of 28.7 minutes (max minutes per file)",
  "wordCount": 1658,
  "text": "This message comes from ...",
  "segments": [{ "start": 0.0, "end": 5.08, "text": "This message comes from ..." }],
  "srtUrl": "https://api.apify.com/v2/key-value-stores/.../records/004-....srt?signature=...",
  "vttUrl": "https://api.apify.com/v2/key-value-stores/.../records/004-....vtt?signature=...",
  "jsonUrl": "https://api.apify.com/v2/key-value-stores/.../records/004-....json?signature=..."
}
```

### Input

| Field | What it does |
|---|---|
| Audio or video file links | One direct link per line. MP3, M4A, WAV, OGG, OPUS, FLAC, MP4, MOV, MKV, WEBM and most other formats. Dropbox and Google Drive share links are converted to downloads. |
| Podcast RSS feeds | Feed links. The newest episodes are taken from each (*Episodes per feed*, 3 by default). |
| Dataset from another Actor | Transcribe the media links in another Actor's results. The link field is detected (`audioUrl`, `videoUrl`, `mediaUrl`, `enclosureUrl`, `fileUrl`, `downloadUrl`, `recordingUrl`, `url`), or name it in *Link field*. In an integration use `{{resource.defaultDatasetId}}`. |
| Speech model | *tiny* (fast, cheaper) or *base* (fewer errors on names, accents and noisy audio). |
| Language | Leave empty to detect, or give a code such as `en`, `es`, `de`. |
| Translate to English | Whisper's built-in translation to English. |
| Word-level timestamps | Adds per-word times to the JSON file. Same price. |
| Maximum minutes per file | 180 by default. Longer files are cut at this point, with a note in the row. |

### What it is good for

- **Podcast transcripts and show notes.** Paste a feed, set how many episodes, and get text plus SRT/VTT for every episode.
- **Subtitles for your own videos.** Upload an MP4 to Dropbox or Google Drive and get SRT and VTT files.
- **Interviews, meetings and calls.** Make recordings searchable, or feed the text to an LLM for summaries.
- **After a scraper.** Chain it to an Actor that collects media links and transcribe everything in one go.

### Limits, honestly

- **Accuracy.** Whisper tiny is fast and cheap, and good on clear speech in English and other widely spoken languages. It makes more mistakes than larger models on names, technical terms, heavy accents, music and crosstalk, and it has no speaker labels (no diarization). Use *base* when accuracy matters more than price, and check important transcripts before you publish them.
- **No YouTube, TikTok or social media links.** Downloading media from those sites breaks their terms, so the Actor refuses them. Give a direct link to a file you have the right to use.
- **Speed.** On the default 2 GB of memory, tiny transcribes about 11 times faster than real time (a 1-hour episode takes about 6 minutes) and base about 4-5 times. More memory gives more CPU and finishes sooner; the price per audio minute stays the same.
- Files up to 4 GB. Video is downloaded in full, then only the sound is used.

### Using it from code

```bash
curl -X POST "https://api.apify.com/v2/acts/open-data-tools~audio-video-transcriber/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://example.com/episode.mp3"], "model": "tiny"}'
```

### Related Actors

- [SRT/VTT Transcript Cleaner](https://apify.com/open-data-tools/srt-vtt-transcript-cleaner): turn SRT or VTT files into clean text, paragraphs or RAG chunks.
- [Bulk Image & File Downloader](https://apify.com/open-data-tools/bulk-image-file-downloader): download files in bulk from links or a dataset.

Questions or a file that fails? Open an issue on the Actor's Issues tab and include the run link.

# Actor input Schema

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

One direct file link per line: MP3, M4A, WAV, OGG, OPUS, FLAC, MP4, MOV, MKV, WEBM and anything else ffmpeg reads. Dropbox and Google Drive share links work. YouTube, TikTok, Instagram and other social media page links are refused.

## `rssUrls` (type: `array`):

Optional. Podcast feed links. The newest episodes of each feed are transcribed (see 'Episodes per feed').

## `latestN` (type: `integer`):

How many of the newest episodes to take from each RSS feed.

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

Optional. Transcribe the media links in another Actor's results, for example a podcast, call-recording or video scraper. In an Actor-to-Actor integration set it to {{resource.defaultDatasetId}}.

## `urlField` (type: `string`):

Field in the dataset that holds the media link. Leave empty to detect it (audioUrl, audio, videoUrl, mediaUrl, enclosureUrl, fileUrl, downloadUrl, recordingUrl, url). Dots reach nested fields (media.0.url); separate several with commas.

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

Both run Whisper on Apify's servers; your audio is not sent to any outside service. Base makes fewer mistakes on names, accents and noisy audio, and costs twice as much.

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

Two-letter code such as en, es, de, fr, pt, it, nl, ja. Leave empty to detect it from the first minutes of each file.

## `translateToEnglish` (type: `boolean`):

Output an English translation instead of the original-language transcript (Whisper's built-in translation; quality is lower than the transcript).

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

Add a start and end time for every word to the JSON file. Takes a little longer; the price is the same.

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

Longer files are transcribed up to this point and noted in the output. You pay only for minutes transcribed.

## Actor input object example

```json
{
  "urls": [
    "https://archive.org/download/williamagain_1902_librivox/williamagain_02_crompton_64kb.mp3"
  ],
  "latestN": 3,
  "model": "tiny",
  "translateToEnglish": false,
  "wordTimestamps": false,
  "maxMinutesPerFile": 180
}
```

# Actor output Schema

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

One row per file: status, language, duration, full text, timestamped segments and links to the SRT, VTT and JSON files.

## `files` (type: `string`):

SRT, VTT and JSON transcript files in the key-value store.

# 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://archive.org/download/williamagain_1902_librivox/williamagain_02_crompton_64kb.mp3"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("open-data-tools/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://archive.org/download/williamagain_1902_librivox/williamagain_02_crompton_64kb.mp3"] }

# Run the Actor and wait for it to finish
run = client.actor("open-data-tools/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://archive.org/download/williamagain_1902_librivox/williamagain_02_crompton_64kb.mp3"
  ]
}' |
apify call open-data-tools/audio-video-transcriber --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,open-data-tools/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/JOtQnGwYXejP4gpHN/builds/0JBAuXrMFqkFVHEYb/openapi.json
