# Audio & Video Transcriber (SRT, VTT, timestamps) (`gramsesh/transcriber`) Actor

Transcribe your own audio and video files into text, SRT and VTT, with timestamps and language detection. Open-source Whisper runs in the Actor — no third-party speech API. From $0.003/min plus a $0.0025 start fee at 4 GB. Silent, failed and rejected files are free. No YouTube or platform downloads.

- **URL**: https://apify.com/gramsesh/transcriber.md
- **Developed by:** [Gramsesh](https://apify.com/gramsesh) (community)
- **Categories:** Videos, AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 audio minute transcribed

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/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 (SRT, VTT, timestamps)

Turn **your own** audio and video files into text, timestamped segments, and SRT / VTT subtitles. Language is detected automatically; word-level timings are optional.

The Actor runs open-source **Whisper** (faster-whisper, int8, on this run's CPU) inside the container. No third-party speech API sees your audio. Media is deleted from disk after it is decoded.

If you want the same large-v3-turbo model at a lower per-minute price, with audio sent to Cloudflare Workers AI, use the companion Actor **transcriber-cloud** (listed by the same developer once it is published).

### What it does

- Accepts direct file URLs and files you upload to a key-value store.
- Decodes audio or the audio track of a video with ffmpeg.
- Runs a cheap speech pre-check so silent files are not transcribed.
- Transcribes with the Whisper model you choose (`small` by default).
- Writes one dataset row per file, plus optional `.srt`, `.vtt` and `.txt` files.

### Input

| Field | Default | Notes |
|---|---|---|
| `mediaUrls` | (empty; a short public-domain sample is prefilled) | Direct links to **your** media (mp3, m4a, wav, ogg, flac, mp4, mov, webm and other formats ffmpeg can decode). |
| `keyValueStoreRecords` | (empty) | `KEY`, `store-name/KEY` or `storeId/KEY`. |
| `model` | `small` | `small` ($0.008/min, default, more accurate), `base` or `tiny` ($0.003/min), `large-v3-turbo` ($0.016/min). |
| `language` | auto-detect | ISO 639-1 code such as `en`, `es`, `de`. |
| `wordTimestamps` | off | Adds per-word start/end times and confidence. Slightly slower. |
| `vadFilter` | on | Skips non-speech parts. |
| `minSpeechSeconds` | 1 | Below this, the file is returned free as `no_speech`. |
| `maxNonSpeechMinutes` | 10 | If VAD is off and non-speech exceeds this, VAD is turned back on for that file. |
| `saveSubtitleFiles` | on | Writes `transcript-NNN.srt/.vtt/.txt` to the run's key-value store. |
| `maxDurationMinutes` | 180 | Longer files are rejected without charge. |
| `maxFileSizeMb` | 1024 | Larger downloads are aborted without charge. |

Provide at least one URL or uploaded file.

#### Example input

```json
{
  "mediaUrls": ["https://upload.wikimedia.org/wikipedia/commons/e/e0/Phrase_de_Neil_Armstrong.oga"],
  "model": "small"
}
```

That URL is a 7.7-second public-domain NASA recording (Neil Armstrong, 1969). A 1-minute charge plus the start fee applies if speech is detected: $0.008 + $0.0025 = **$0.0105** on `small`.

### Output

One dataset row per file:

| Field | Meaning |
|---|---|
| `status` | `ok` (transcribed and billed), `no_speech`, `failed`, or `rejected` (the last three are free) |
| `text`, `segments`, `srt`, `vtt` | Transcript and subtitles when status is `ok` |
| `words` | Present when `wordTimestamps` is on |
| `language`, `languageProbability` | Detected or requested language |
| `durationSeconds`, `billableMinutes` | Length, and started minutes billed (minimum 1) when status is `ok` |
| `model`, `speechCheck`, `realTimeFactor` | Model used, pre-check measurements, wall time / audio duration |
| `error` | Why a file was rejected, failed, or skipped |

A `SUMMARY` record in the key-value store has counts for the run.

### Pricing

Pay per **started minute** of audio, only for files that were actually transcribed (`status: ok`). A 90-second file counts as 2 minutes.

| Model | Price per audio minute |
|---|---:|
| `small` (default, more accurate) | **$0.008** |
| `base` or `tiny` | **$0.003** |
| `large-v3-turbo` (premium) | **$0.016** |

**Free:** rejected URLs, download or decode failures, and files with no speech. There is no per-row fee.

Each run also has Apify's automatic Actor-start fee of **$0.000625 per GB of run memory**. The default (and minimum) is 4 GB, so the start fee is **$0.0025 per run**. At 8 GB it is $0.005. To save on start fees, put many files in one run.

Examples at the default 4 GB, one file per run:

| File | `base` | `small` | `large-v3-turbo` |
|---|---:|---:|---:|
| 1 minute | $0.0055 | $0.0105 | $0.0185 |
| 5 minutes | $0.0175 | $0.0425 | $0.0825 |
| 30 minutes | $0.0925 | $0.2425 | $0.4825 |

Prices take effect when they are entered in Apify Console at publish time. This README matches `pricing/pay-per-event.json`.

### Memory and limits

- **Default and minimum: 4 GB** (1 CPU core). This is required so `large-v3-turbo` always fits (measured peak about 2,040 MiB, which is too tight for a 2 GB run). You can choose 8 GB for more CPU; transcription is faster, the start fee doubles, and the price per audio minute stays the same.
- Maximum duration per file: 180 minutes by default (configurable up to 600).
- Maximum download size: 1 GB by default (configurable up to 4 GB).

### What is not supported

Pages on **YouTube, TikTok, Instagram, Facebook, X, Vimeo, Twitch, Spotify, SoundCloud, Apple Podcasts** and similar platforms are rejected without charge. Their terms restrict downloading, and the media is usually someone else's content. HTML web pages and private-network addresses are also rejected. Give the Actor a direct, reachable media-file URL (or an uploaded file), not a page link.

### Accuracy and speed

Measured on this development box, 27 November 2026, with the same settings the Actor uses (CPU, int8, 1 core). Clips: a 169-word self-generated English recording, a 303-word LibriSpeech excerpt (CC BY 4.0), and an 11-word noisy 1969 archive recording. Figures are from `docs/turbo-benchmark.md`. This is a small test set, not a general accuracy rating.

| Model | Normalized word error rate (clean / read speech) | Noisy 11-word archive clip | Real-time factor (1 core, longer clips) |
|---|---|---:|---:|
| `base` | 4.7% / 8.9% | 72.7% (unusable) | 0.043–0.053 |
| `small` | 1.2% / 6.6% | 27.3% | 0.174–0.210 |
| `large-v3-turbo` | 1.2% / 3.0% | 9.1% | 0.546–0.628 |

`small` is about 4× slower than `base`; `large-v3-turbo` is about 12× slower than `base`. Expect more errors on noisy, accented or overlapping speech. Automated transcripts need review before anything important depends on them.

### Privacy

- Your file is downloaded to a temporary folder that is deleted before transcription starts. Decoded audio exists only in memory during the run.
- Logs never contain transcript text or full URLs (query strings, which often carry access tokens, are stripped).
- Transcripts are stored only in the run's own dataset and key-value store, under your Apify account's retention settings.
- You must have the right to process the recordings you submit. For recordings of other people, this Actor acts as your processor.

### FAQ

**Can I transcribe a YouTube (or TikTok, Instagram, …) link?** No. The Actor rejects platform pages without charge. Download or export your own file first, then pass a direct URL or upload.

**Why wasn't I charged for a file?** It was rejected, it failed to download or decode, it had no speech, or the model produced no text. Only `status: ok` rows are billed.

**How is a minute counted?** Per file, per started minute, minimum 1, using the decoded duration. A 1-second clip and a 60-second clip both bill 1 minute; 60.1 seconds bills 2.

**A file is mostly silence with a few words. Do you charge for the silence?** If the pre-check finds enough speech, the whole file is transcribed and billed by its full duration. Silence is skipped in the decode when VAD is on, but billing is still by file length.

**How long does a run take?** On a 4 GB run (1 core), expect roughly 3 seconds of work per minute of audio on `base`, 12 seconds on `small`, and 37 seconds on `large-v3-turbo`, plus a few seconds to load the model. These are measurements from a development machine, not from Apify's hardware.

**Where does the audio go?** Nowhere outside this Actor's container. Weights are baked into the image (MIT-licensed faster-whisper conversions). Nothing is sent to a third-party speech API.

**How do I keep costs down?** Batch many files in one run so you pay the start fee once. Use `base` when speed and price matter more than accuracy. Set a spending limit on the run if you are automating.

**What about the cloud Actor?** **transcriber-cloud** (same developer) runs Whisper large-v3-turbo on Cloudflare Workers AI at $0.004/min plus a $0.000625 start fee at 1 GB. It is faster and cheaper for that model, and your audio is sent to Cloudflare.

### Credits

- Whisper models by OpenAI (MIT licence). `tiny` / `base` / `small` use the CTranslate2 conversions `Systran/faster-whisper-*` (MIT).
- `large-v3-turbo` uses `deepdml/faster-whisper-large-v3-turbo-ct2` (MIT), revision `4df90f7`, run with faster-whisper (MIT).

# Actor input Schema

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

Direct links to YOUR audio or video files (mp3, m4a, wav, ogg, flac, mp4, mov, webm and other formats ffmpeg can decode), for example from your own storage, CDN or a podcast RSS enclosure. A public-domain sample (Neil Armstrong, 1969, NASA) is prefilled so you can try a short run. Pages on YouTube, TikTok, Instagram, Facebook, X, Vimeo, Spotify, SoundCloud and similar platforms are rejected without charge.

## `keyValueStoreRecords` (type: `array`):

Keys of media files you uploaded to a key-value store: KEY (this run's default store), store-name/KEY, or storeId/KEY. Use this or Media file URLs, or both.

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

Open-source Whisper model, run on this Actor's CPU. small is the default: more accurate than base, about 4× slower. base is faster and cheapest; large-v3-turbo is the most accurate, about 12× slower than base. tiny is fastest and least accurate, at the same price as base. Every model needs the default 4 GB of run memory (the Actor will not start below 4 GB).

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

ISO 639-1 code such as en, es, de, fr, zh. Leave empty to auto-detect.

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

Also output each word with start/end time and confidence (slower).

## `vadFilter` (type: `boolean`):

Skip non-speech parts with voice activity detection. Recommended; leave on unless you have a reason to turn it off.

## `minSpeechSeconds` (type: `integer`):

A quick energy-then-VAD check runs before transcription. Files with less detected speech than this are not transcribed and come back free as status no_speech.

## `maxNonSpeechMinutes` (type: `integer`):

If Skip silence is turned off and a file has more non-speech audio than this, silence skipping is turned back on for that file.

## `saveSubtitleFiles` (type: `boolean`):

Also write each transcript as transcript-NNN.srt, .vtt and .txt in the run's key-value store.

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

Longer files are rejected without charge.

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

Downloads larger than this are aborted without charge.

## Actor input object example

```json
{
  "mediaUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/e/e0/Phrase_de_Neil_Armstrong.oga"
  ],
  "model": "small",
  "wordTimestamps": false,
  "vadFilter": true,
  "minSpeechSeconds": 1,
  "maxNonSpeechMinutes": 10,
  "saveSubtitleFiles": true,
  "maxDurationMinutes": 180,
  "maxFileSizeMb": 1024
}
```

# Actor output Schema

## `transcripts` (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://upload.wikimedia.org/wikipedia/commons/e/e0/Phrase_de_Neil_Armstrong.oga"
    ],
    "model": "small"
};

// Run the Actor and wait for it to finish
const run = await client.actor("gramsesh/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://upload.wikimedia.org/wikipedia/commons/e/e0/Phrase_de_Neil_Armstrong.oga"],
    "model": "small",
}

# Run the Actor and wait for it to finish
run = client.actor("gramsesh/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://upload.wikimedia.org/wikipedia/commons/e/e0/Phrase_de_Neil_Armstrong.oga"
  ],
  "model": "small"
}' |
apify call gramsesh/transcriber --silent --output-dataset

```

## MCP server setup

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