# Audio & Video Transcriber (Whisper) - Text, SRT, VTT (`freecamp008/media-transcriber`) Actor

Transcribe or translate audio and video files from URLs with self-hosted OpenAI Whisper on CPU. Get full text, timestamped segments, word timestamps and SRT/VTT subtitles in 99 languages. No external APIs.

- **URL**: https://apify.com/freecamp008/media-transcriber.md
- **Developed by:** [Camp8 fr0](https://apify.com/freecamp008) (community)
- **Categories:** AI, For creators, Developer tools
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 audio minutes

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 (Whisper): Speech to Text, SRT and VTT Subtitles

Transcribe audio and video files from any URL with **OpenAI Whisper running inside the Actor** (self-hosted, CPU). Paste links to MP3, WAV, M4A, MP4, MOV, WEBM or other media files and get the full transcript, timestamped segments, optional word-level timestamps, and ready-to-use **SRT and WebVTT subtitle files**. You can also **translate speech in 99 languages into English**. No OpenAI API key and no third-party transcription service is involved, so your media is never sent anywhere else.

### What does Audio & Video Transcriber do?

- Downloads each audio or video file from its URL, extracts the audio track with ffmpeg and resamples it to 16 kHz mono
- Runs **Whisper tiny, base or small** (ONNX, int8-optimized decoder) on CPU to turn the speech into text
- Detects the spoken language automatically, or uses the language you choose
- Returns a clean transcript plus a timestamped segment for each sentence or phrase
- Builds **SRT and VTT captions** and saves them as downloadable files in the run's key-value store
- Optionally returns **word-level timestamps**, useful for karaoke-style captions, precise video editing and search

### Key features

- **Speech-to-text for audio and video**: MP3, WAV, M4A, AAC, OGG, OPUS, FLAC, MP4, MOV, MKV, WEBM, AVI and anything else ffmpeg can read over HTTP
- **99 languages** with automatic language detection (English, Spanish, German, French, Portuguese, Italian, Dutch, Polish, Russian, Japanese, Chinese, Korean, Hindi, Arabic, Turkish and more)
- **Translate to English** from any supported language in the same step
- **Subtitles out of the box**: SRT and WebVTT text in every result, plus public download links (`srtUrl`, `vttUrl`)
- **Word timestamps** (optional) with start and end time for every word
- **Private by design**: the Whisper model runs inside the Actor container, and no audio is sent to OpenAI or any other API
- **Fair billing**: you pay per audio minute that is actually transcribed. Failed downloads are free, and the **Max duration** and **Maximum cost per run** settings cap what you spend.
- **HTTP API (Standby mode)**: call the Actor like a REST endpoint and get the transcript in the response

### Use cases

- **Podcast transcription**: show notes, blog posts and SEO text from episodes
- **YouTube and social video captions**: generate SRT/VTT subtitles for MP4 files you own
- **Meeting, interview and lecture notes**: searchable transcripts of recordings
- **Content repurposing for AI pipelines**: feed transcripts to LLMs for summaries, chapters, quotes or Q\&A
- **Media monitoring and research**: transcribe radio clips, speeches and public-domain archives at scale
- **Accessibility**: add captions to training videos and webinars
- **Translation**: get English subtitles for foreign-language videos

### How to use Audio & Video Transcriber

#### In Apify Console

1. Click **Try for free** or **Start**.
2. Paste one or more **direct links to audio or video files** into *Audio / video URLs*. The link has to return the media file itself, not a web page with a player.
3. Pick the **Whisper model**. *Base* is a good default for clear speech. Use *Small* for accents, noisy audio or non-English speech.
4. Leave *Spoken language* on **Auto-detect**, or choose the language yourself for short or noisy clips.
5. Click **Start**. Each file appears in the **Transcripts** table. The SRT and VTT files are listed under **Subtitle files**.

#### Via the Apify API

```bash
curl -X POST "https://api.apify.com/v2/acts/freecamp008~media-transcriber/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"],
    "model": "base",
    "language": "auto",
    "includeSrt": true
  }'
```

Or use the [apify-client](https://docs.apify.com/api/client/js/) for JavaScript or Python and read the results from the run's default dataset.

#### Standby mode (instant HTTP endpoint)

The Actor also runs as a persistent web server, which saves the start-up time on every call. Send the input fields as query parameters (arrays comma-separated) or as a JSON body. The response is `{ "count": n, "items": [...] }`.

```bash
## GET
curl "https://freecamp008--media-transcriber.apify.actor/?token=YOUR_API_TOKEN&mediaUrls=https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav&model=base&includeVtt=false"

## POST
curl -X POST "https://freecamp008--media-transcriber.apify.actor/?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mediaUrls": ["https://example.com/podcast-episode.mp3"], "task": "translate", "wordTimestamps": true}'
```

**AI agents** can call this Actor and pay per use with **x402** through Apify. No Apify account or subscription is needed: the agent pays for each call.

### Input example

```json
{
  "mediaUrls": [
    "https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav",
    "https://upload.wikimedia.org/wikipedia/commons/a/a6/NASA_Minute_May_8%2C_2026.webm"
  ],
  "model": "base",
  "language": "auto",
  "task": "transcribe",
  "maxDurationMinutes": 120,
  "wordTimestamps": false,
  "includeSrt": true,
  "includeVtt": true
}
```

| Field | Description | Default |
|---|---|---|
| `mediaUrls` | Direct links to audio/video files | required |
| `model` | `tiny`, `base` or `small` | `base` |
| `language` | `auto` or an ISO 639-1 code (`en`, `es`, `de`, `fr`, `ja`...) | `auto` |
| `task` | `transcribe` (original language) or `translate` (to English) | `transcribe` |
| `maxDurationMinutes` | Transcribe and bill at most this many minutes per file | `120` |
| `wordTimestamps` | Add a `words` array with per-word timing | `false` |
| `includeSrt` / `includeVtt` | Add subtitles and save `.srt` / `.vtt` files | `true` |

### Output example

One dataset item per file:

```json
{
  "mediaUrl": "https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav",
  "language": "en",
  "languageName": "English",
  "languageProbability": 0.93,
  "task": "transcribe",
  "model": "base",
  "durationSec": 11,
  "transcribedSec": 11,
  "billedMinutes": 1,
  "text": "And so my fellow Americans ask not what your country can do for you, ask what you can do for your country.",
  "segments": [
    { "start": 0, "end": 11, "text": "And so my fellow Americans ask not what your country can do for you, ask what you can do for your country." }
  ],
  "srt": "1\n00:00:00,000 --> 00:00:11,000\nAnd so my fellow Americans ask not what your country\ncan do for you, ask what you can do for your country.\n",
  "vtt": "WEBVTT\n\n00:00:00.000 --> 00:00:11.000\nAnd so my fellow Americans ask not what your country\ncan do for you, ask what you can do for your country.\n",
  "srtUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/transcript-0588eb03532403a9.srt",
  "vttUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/transcript-0588eb03532403a9.vtt",
  "processingSec": 3.95,
  "realTimeFactor": 0.36,
  "truncated": false,
  "truncatedReason": null
}
```

With `wordTimestamps: true`, every item also has `"words": [{ "start": 0.52, "end": 0.82, "word": "And" }, ...]`.

When a file is longer than `maxDurationMinutes`, or the remaining run budget doesn't cover the whole file, the Actor transcribes only the beginning. The item then has `truncated: true` and `truncatedReason` set to `maxDurationMinutes` or `maxCostPerRun`. When a file can't be downloaded or decoded, the Actor returns `{ "mediaUrl", "error", "isError": true }` for it, and that item is free.

### Pricing

This Actor uses **pay-per-event** pricing, so you only pay for audio that is actually transcribed:

| Event | Price | Per 1,000 |
|---|---|---|
| `audio-minute`: one minute of transcribed audio (rounded up per file) | $0.006 | **$6 per 1,000 minutes** |
| `file-transcribed`: one successfully transcribed file | $0.002 | **$2 per 1,000 files** |

Examples: a 1-hour podcast costs 60 × $0.006 + $0.002 = **$0.362**. 100 voice notes of 30 seconds each cost 100 × ($0.006 + $0.002) = **$0.80**. Hosted transcription APIs typically charge about $0.008–0.015 per minute.

Failed downloads and unreadable files are not charged. Apify platform usage (compute units) is billed separately, according to the memory you choose and how long the run takes.

### FAQ

**How accurate is it?**
On clear speech, Whisper *base* produces near-perfect transcripts with punctuation and capitalization. For heavy accents, background noise, music, or languages other than English, use *small*, which is noticeably more accurate and roughly 3x slower. *Tiny* is the fastest and works for quick drafts.

**How fast is it, and are there limits?**
On a single CPU core, *base* runs about 5x faster than real time and *small* about 1.7x (measured on an Apple M1 Pro core; Apify server cores may be somewhat slower). With more memory you get more CPU cores and faster runs. Each file is capped at `maxDurationMinutes` (default 120, up to 600). For files over an hour with the *small* model, use at least 4 GB of memory.

**Which languages are supported?**
All 99 Whisper languages. Auto-detection listens to the first 30 seconds of each file. If detection produces a garbled transcript (this happens with some accents), the Actor automatically retries with the next most likely language. For short, noisy or mixed-language clips, set the language yourself.

**Can it transcribe YouTube, Spotify or social media links?**
No. The Actor needs a direct link to a media file (for example, a URL ending in `.mp3` or `.mp4`, or a podcast RSS enclosure URL). Web pages that embed a player don't work. Use another Actor to get the direct file URL first, and only for content you have the right to process.

**Is my audio private?**
Yes. Transcription runs entirely inside the Actor container with open-source Whisper weights. Your audio is never sent to OpenAI or any other third-party API. Transcripts and subtitle files are stored only in your own Apify storage.

**How do I get subtitles for my video?**
Leave *SRT subtitles* and/or *WebVTT subtitles* on. Each result contains the subtitle text plus `srtUrl` / `vttUrl` download links that you can upload to YouTube, Vimeo or any HTML5 `<track>` element.

**Is it legal to transcribe audio and video?**
Transcribing media is legal when you own the content, have permission, or the content is public domain or openly licensed. Respect copyright and privacy laws, including consent rules for recorded conversations in your jurisdiction. You are responsible for how you use the media you submit and the transcripts you get.

**What happens when I set a maximum cost per run?**
Before each file, the Actor checks how many audio minutes your remaining budget covers (keeping enough for the per-file event). It transcribes only that many minutes, marks the result `truncated: true`, and stops cleanly once the budget is used up.

# Actor input Schema

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

Direct links to audio or video files (MP3, WAV, M4A, AAC, OGG, OPUS, FLAC, MP4, MOV, MKV, WEBM, ...). Each file becomes one result with full text, timestamped segments and SRT/VTT subtitles. The link must point to the media file itself, not to a web page that embeds a player.

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

<b>tiny</b>: fastest, lowest accuracy. <b>base</b>: good balance for clear speech (recommended). <b>small</b>: most accurate, about 2-3x slower; best for accents, noisy audio and non-English languages.

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

Language spoken in the media. <b>Auto-detect</b> listens to the first 30 seconds of each file. Setting it explicitly is slightly faster and avoids mis-detection on short or noisy clips.

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

<b>Transcribe</b>: text in the original language. <b>Translate to English</b>: English text and subtitles from speech in any supported language.

## `maxDurationMinutes` (type: `integer`):

Only the first N minutes of each file are transcribed (and billed). Longer files are marked <code>truncated: true</code>.

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

Add a <code>words</code> array with start/end time for every word (karaoke captions, precise editing). Segments are then built from words. Slightly slower.

## `includeSrt` (type: `boolean`):

Add SRT subtitles to each result and save a downloadable .srt file to the key-value store (<code>srtUrl</code>).

## `includeVtt` (type: `boolean`):

Add WebVTT subtitles to each result and save a downloadable .vtt file to the key-value store (<code>vttUrl</code>).

## Actor input object example

```json
{
  "mediaUrls": [
    "https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav"
  ],
  "model": "base",
  "language": "auto",
  "task": "transcribe",
  "maxDurationMinutes": 120,
  "wordTimestamps": false,
  "includeSrt": true,
  "includeVtt": true
}
```

# Actor output Schema

## `transcripts` (type: `string`):

No description

## `subtitleFiles` (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 = {
    "mediaUrls": [
        "https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("freecamp008/media-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://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav"] }

# Run the Actor and wait for it to finish
run = client.actor("freecamp008/media-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://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav"
  ]
}' |
apify call freecamp008/media-transcriber --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,freecamp008/media-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/7DYBNLy9p2agWjmiP/builds/csqFvJpr5YctBWUWD/openapi.json
