# Audio & Video Transcriber: Speech to Text, SRT & VTT (`forgeloop/audio-transcriber`) Actor

Transcribe audio and video files to text, SRT and VTT subtitles with timestamps. The open source Whisper model runs inside the Actor, no third-party API. 99 languages with auto detection, translation to English. MP3, M4A, WAV, MP4, MOV, MKV and more. Pay per audio minute.

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

## Pricing

from $10.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 & Video Transcriber: Speech to Text, SRT & VTT

Turn audio and video files into text and subtitles. Give it direct links to your recordings, get back one item per file with the full transcript, timestamped segments, SRT and VTT subtitles and the detected language.

The speech recognition runs inside the Actor: an open source Whisper model (whisper.cpp) on the Actor's own CPU. Your recordings are not sent to any third-party transcription API, and you need no API key.

### What it does

- **Reads almost any audio or video file:** MP3, M4A, AAC, WAV, OGG, OPUS, FLAC, WMA, WEBM, MP4, MOV, MKV, AVI and more. ffmpeg takes the first audio track and converts it to 16 kHz mono.
- **99 languages.** The language is detected automatically, or you set it. The item shows the detected language and how sure the model is.
- **Transcribe or translate.** Write down what is said in the spoken language, or get an English translation.
- **Four output formats:** plain text with paragraphs, segments with start and end time, SRT and VTT subtitles. Text, SRT and VTT are also saved as files with download links in the item.
- **Word timestamps** on request, with a confidence value per word.
- **Two model sizes:** `base` (default) and `tiny`. Both are multilingual and baked into the Actor image, so nothing is downloaded at run time.
- **Long files work.** Files up to 3 hours by default (10 hours maximum). Files longer than 15 minutes are split at quiet points and joined again, so memory use stays flat.
- **Vocabulary hint.** Give names and terms that appear in the recording, for better spelling of names and jargon.
- **Refuses video platforms.** Links to YouTube, TikTok, Instagram, Facebook, X, Vimeo, Twitch, Spotify, SoundCloud and similar sites return an error item. The Actor only processes files you supply.

### Use cases

- **Meeting and interview recordings:** searchable minutes, quotes with timestamps, input for summaries.
- **Podcasts you own:** show notes, full transcripts for your website, SEO text.
- **Voice notes:** turn dictations and memos into text.
- **Subtitles for your own videos:** SRT and VTT files for YouTube uploads, video players and social clips.
- **Input for AI agents and RAG:** clean text with timestamps, ready to chunk, embed and cite.

### Input

| Field | Description | Default |
|---|---|---|
| Files | Direct http(s) links to audio or video files | |
| Language | `auto`, an ISO 639-1 code like `de`, or a name like `German` | `auto` |
| Task | `transcribe` or `translate` (to English) | `transcribe` |
| Model | `tiny` or `base` | `base` |
| Output formats | Any of `text`, `segments`, `srt`, `vtt` | all four |
| Word timestamps | Add a list of words with times | off |
| Beam search | 5 beams, more accurate. Off is about 30 percent faster | on |
| Vocabulary hint | Names and terms, for example `Apify, Crawlee, Kubernetes` | |
| Max duration per file | Minutes, 1 to 600. Longer files are skipped | 180 |
| Max file size | MB, 1 to 4096. Larger files are skipped | 2048 |
| Download timeout | Seconds, 30 to 3600 | 900 |

Example:

```json
{
  "files": [
    "https://example.com/recordings/team-meeting-2026-11-12.m4a",
    "https://example.com/podcast/episode-42.mp3"
  ],
  "language": "auto",
  "model": "base",
  "outputFormats": ["text", "segments", "srt", "vtt"],
  "wordTimestamps": false
}
```

**Where to put your files:** any link that downloads the file directly works, for example a file on your web server, a public or pre-signed S3, Google Cloud Storage or Azure Blob link, or a record in an Apify key-value store (`https://api.apify.com/v2/key-value-stores/<storeId>/records/<key>`). Records in your own private stores are read with the run's token. Share links that open a web page (Google Drive, Dropbox preview pages) do not work, use their direct download link.

### Output

One dataset item per file:

```json
{
  "url": "https://archive.org/download/sammlung_deutscher_gedichte_019_1510_librivox/deutschegedichte019_04_panther_phn_64kb.mp3",
  "fileName": "deutschegedichte019_04_panther_phn_64kb.mp3",
  "durationSeconds": 72.961,
  "detectedLanguage": "de",
  "languageProbability": 0.996,
  "language": "auto",
  "task": "transcribe",
  "model": "whisper-base (q8_0)",
  "text": "Der Panther, von einer Maria Rielke, gelesen für Libberwachs Punkt Orge. Sein Blick ist vom vorübergehende Stäber, so müde geworden, dass er nix mehr hält; ihm ist, als ob es tausend Stäbe gäbe, und hinter tausend Stäben, keine Welt. ...",
  "segments": [
    { "start": 0, "end": 8.6, "text": "Der Panther, von einer Maria Rielke, gelesen für Libberwachs Punkt Orge." },
    { "start": 8.6, "end": 24.96, "text": "Sein Blick ist vom vorübergehende Stäber, so müde geworden, dass er nix mehr hält; ..." }
  ],
  "words": null,
  "srt": "1\n00:00:00,000 --> 00:00:08,600\nDer Panther, von einer Maria Rielke, gelesen für Libberwachs Punkt Orge.\n\n2\n...",
  "vtt": "WEBVTT\n\n00:00:00.000 --> 00:00:08.600\nDer Panther, von einer Maria Rielke, gelesen für Libberwachs Punkt Orge.\n\n...",
  "textUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/001-deutschegedichte019_04_panther_phn_64kb.txt",
  "srtUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/001-deutschegedichte019_04_panther_phn_64kb.srt",
  "vttUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/001-deutschegedichte019_04_panther_phn_64kb.vtt",
  "segmentCount": 5,
  "chargedMinutes": 2,
  "downloadSeconds": 2.403,
  "processingSeconds": 9.817,
  "realtimeFactor": 0.135,
  "threads": 4,
  "note": null,
  "error": null,
  "transcribedAt": "2026-11-15T20:02:58.571Z"
}
```

- `text` joins all segments. A pause of 2 seconds or more starts a new paragraph.
- `segments` are the timestamped pieces as Whisper found them, in seconds from the start of the file.
- `words` is filled when **Word timestamps** is on: `{ "word": "Panther,", "start": 0.6, "end": 2.23, "probability": 0.81 }`. Punctuation stays with its word.
- `languageProbability` is the model's confidence in the detected language, from 0 to 1. It is `null` when you set the language yourself.
- `chargedMinutes` is the number of audio minutes charged for this file.
- `realtimeFactor` is processing time divided by audio duration. 0.25 means a 4 minute file took 1 minute.
- The sample above is real `base` output for a 1906 poem: names and rare words come out wrong, ordinary sentences are mostly right. Clear modern speech gives better results.
- Fields of formats you did not select are `null`. A file without speech returns an empty text and a `note`.
- Failed files return an item with `error` set, for example `Download failed: HTTP 404 Not Found. The file does not exist (any more) at this link. Not charged.`

The links in `textUrl`, `srtUrl` and `vttUrl` point to the run's key-value store. Export the dataset as JSON, CSV or Excel, or read it through the Apify API.

### Models and speed

| Model | Size | Accuracy | Seconds per audio minute, 1 CPU core | 4 CPU cores |
|---|---|---|---|---|
| `base` | 82 MB | good for clear speech, the default | 15.9 | 5.4 |
| `tiny` | 44 MB | rough, fine for clear English speech | 9.5 | 3.9 |

Measured on an AMD Ryzen 9 3900X in the Actor's Docker image, 9.7 minute English speech, beam search on. With beam search off, `base` needs 10.4 and `tiny` 6.8 seconds per audio minute on 1 core.

Apify gives an Actor 1 CPU core per 4 GB of memory. The default of 4096 MB is one full core. On Apify servers `base` needed about 29 seconds per audio minute on one core (November 2026), so a 1 hour recording takes about 30 minutes. Give the run 8192 or 16384 MB to finish faster. The price per audio minute is the same at any memory size.

Both models are the multilingual OpenAI Whisper models, quantized to 8 bit (q8_0) for whisper.cpp. Quantization makes them faster on CPUs with almost no loss in accuracy.

### Pricing

Pay per audio minute: 0.01 USD per started minute of audio that was transcribed, so 10.00 USD per 1,000 minutes. Both models cost the same. A 90 second file counts as 2 minutes, a 1 hour file as 60 minutes. You only pay after a file was transcribed. Failed downloads, refused links, files that are too long or too large and files without an audio track are free.

Before each file the Actor checks that its minutes fit into the maximum cost you set for the run. If they do not fit, the run stops with a clear status message and the file is not charged.

Each run also has a start fee of 0.00005 USD per GB of memory, which Apify shows as Actor Start.

### Limits

- Files must be reachable by a direct link. The Actor does not log in, solve captchas or read pages that embed a player.
- Video platforms, streaming and social media sites are refused on purpose, also their CDN links. Streaming playlists (`.m3u8`, `.mpd`) are not supported.
- Only the first audio track of a file is transcribed.
- Whisper does not tell speakers apart. There is no speaker diarization.
- Whisper can invent text in long silent parts or during music, for example "Thank you." Cut long silences or music from the file for the best result.
- Accuracy depends on the recording. Clear speech with one speaker works best. Strong accents, cross talk, phone quality and background noise lower it.
- Translation goes into English only and is rough with these model sizes.
- Word timestamps are estimates and can be off by a few hundred milliseconds.
- Files are processed one after another. Long files take time: plan about 16 minutes for a 1 hour recording with `base` at the default 4096 MB, and raise the run timeout for long files.

### Data source, permitted use and legal

- **Data source:** only the files you link in the input. The Actor downloads each file once, transcribes it inside the run and does not call any other service.
- **Model and license:** OpenAI Whisper model weights (MIT license), converted and quantized by the whisper.cpp project (MIT license). ffmpeg 8.1.3 is built from the unmodified official source (ffmpeg.org) under the LGPL 2.1. The build steps are in the Actor's Dockerfile. We send you the exact source on request. The transcription runs on the Apify server that runs your Actor, not at a third-party API.
- **Your files, your rights:** Only submit files that you own or that you are allowed to process, for example your own meetings, interviews with consent, your own podcast or videos, or material under a license that permits it. Links to video platforms, streaming and social media sites are refused.
- **Personal data:** Recordings often contain personal data, such as voices, names and what people say. You are the controller of that data and need a legal basis, for example the consent of the people recorded. We process it on your behalf only to deliver the transcript, as described in the [Terms of Use](https://devhem.github.io/forgeloop-legal/terms.html).
- **Storage:** The downloaded file and the decoded audio exist only in the run's temporary disk and are deleted when the file is done. Transcripts are stored only in the run's own dataset and key-value store, under your Apify account and your retention settings. We do not keep copies and do not use your files or transcripts to train models.
- **Accuracy:** Machine transcripts contain errors. Check them before you publish or rely on them, especially for names, numbers, legal or medical content.
- **For business use:** This Actor is offered to businesses only, not to consumers.
- **Your responsibility:** You choose the files and decide what happens with the transcripts. Respect copyright, recording laws and the rights of the people recorded.
- **No circumvention:** The Actor downloads plain file links only. It does not bypass logins, paywalls, DRM or access restrictions.
- **Provider:** forgeloop, Markus Heiss, Austria. [Imprint](https://devhem.github.io/forgeloop-legal/imprint.html), [Privacy Notice](https://devhem.github.io/forgeloop-legal/privacy.html), [Terms of Use](https://devhem.github.io/forgeloop-legal/terms.html).

### Questions and issues

Open an issue on the Actor page.

# Actor input Schema

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

Direct http(s) links to audio or video files you are allowed to use: MP3, M4A, AAC, WAV, OGG, OPUS, FLAC, WEBM, MP4, MOV, MKV, AVI, WMA and more. Links to records in your Apify key-value stores (https://api.apify.com/v2/key-value-stores/.../records/...) work too. Links to YouTube, TikTok, Instagram, Facebook, X, Vimeo, Twitch, Spotify, SoundCloud and other platforms are refused. Format: a list of strings like \["https://example.com/meeting.m4a"].

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

Spoken language. "auto" detects it from the first 30 seconds. Set it when you know it: detection is skipped and short or noisy files get better results. Use an ISO 639-1 code like "en", "de", "fr", "es", "it" or "pt", or an English name like "German". Whisper knows 99 languages.

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

"transcribe" writes down what is said in the spoken language. "translate" writes an English translation instead. Translation with these model sizes is rough and best for getting the gist.

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

Whisper model size. base is more accurate, tiny is about 1.7 times faster. Both are multilingual, quantized (q8_0) and cost the same.

## `outputFormats` (type: `array`):

What goes into each dataset item. "text" is the full transcript, "segments" the list of timestamped segments, "srt" and "vtt" are subtitle files. Text, SRT and VTT are also saved as files in the key-value store, with links in the item.

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

Add a list of words with start and end time and a confidence value. Word times are estimates, accurate to a few hundred milliseconds.

## `beamSearch` (type: `boolean`):

Decode with beam search (5 beams). More accurate, especially for names and numbers. Turn it off for about 30 percent faster greedy decoding.

## `prompt` (type: `string`):

Optional text that helps with names, product names and jargon, for example "Apify, Crawlee, Markus, Kubernetes". Whisper uses it as context for the start of each part. Keep it short.

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

Longer files are skipped with an error item and are not charged.

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

Larger files are skipped with an error item and are not charged.

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

Give up on a download that takes longer than this. A download also stops after 60 seconds without data.

## Actor input object example

```json
{
  "files": [
    "https://upload.wikimedia.org/wikipedia/commons/e/e9/Remarks_by_President_Ronald_Reagan_after_speech_to_the_Republican_National_Convention._Superdome%2C_New_Orleans%2C_Louisiana_-_DPLA_-_9a5ddb1aca2805a7f389e33abd040063.mp3"
  ],
  "language": "auto",
  "task": "transcribe",
  "model": "base",
  "outputFormats": [
    "text",
    "segments",
    "srt",
    "vtt"
  ],
  "wordTimestamps": false,
  "beamSearch": true,
  "maxDurationMinutes": 180,
  "maxFileSizeMb": 2048,
  "downloadTimeoutSecs": 900
}
```

# Actor output Schema

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

No description

## `files` (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 = {
    "files": [
        "https://upload.wikimedia.org/wikipedia/commons/e/e9/Remarks_by_President_Ronald_Reagan_after_speech_to_the_Republican_National_Convention._Superdome%2C_New_Orleans%2C_Louisiana_-_DPLA_-_9a5ddb1aca2805a7f389e33abd040063.mp3"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("forgeloop/audio-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 = { "files": ["https://upload.wikimedia.org/wikipedia/commons/e/e9/Remarks_by_President_Ronald_Reagan_after_speech_to_the_Republican_National_Convention._Superdome%2C_New_Orleans%2C_Louisiana_-_DPLA_-_9a5ddb1aca2805a7f389e33abd040063.mp3"] }

# Run the Actor and wait for it to finish
run = client.actor("forgeloop/audio-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 '{
  "files": [
    "https://upload.wikimedia.org/wikipedia/commons/e/e9/Remarks_by_President_Ronald_Reagan_after_speech_to_the_Republican_National_Convention._Superdome%2C_New_Orleans%2C_Louisiana_-_DPLA_-_9a5ddb1aca2805a7f389e33abd040063.mp3"
  ]
}' |
apify call forgeloop/audio-transcriber --silent --output-dataset

```

## MCP server setup

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