# Audio File Transcriber: speech to text with SRT/VTT subtitles (`fecklesspleb/audio-file-transcriber`) Actor

Transcribe audio or video files from direct URLs with open-source Whisper (faster-whisper) inside the Actor: no external speech API, no API key. Text, timestamped segments, SRT/VTT subtitles, language detection, optional English translation. from $0.0075 per audio minute (base), $0.013 (small).

- **URL**: https://apify.com/fecklesspleb/audio-file-transcriber.md
- **Developed by:** [fecklesspleb](https://apify.com/fecklesspleb) (community)
- **Categories:** AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 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 File Transcriber: speech to text and subtitles (SRT/VTT)

Turn audio and video files into text, timestamped segments and subtitles. Give the Actor **direct links to files
you have the right to transcribe** (mp3, m4a, wav, flac, ogg, opus, webm, mp4, ...). It runs the open-source
Whisper speech-recognition models (via faster-whisper) **inside the Actor**: no external speech API, no API key,
your audio is not sent to any third-party AI service.

- 99 languages, automatic language detection, optional translation into English
- Plain text, timestamped segments, optional word-level timestamps, SRT and WebVTT subtitles
- Three models: `tiny` (fastest), `base` (default, balanced), `small` (most accurate, slowest)
- Silence skipping (voice activity detection) and long files handled in 5-minute chunks, so memory stays flat
- Pay only for audio that was transcribed; failed and skipped files are free

> Not affiliated with or endorsed by OpenAI. "Whisper" names the open-source model family the Actor runs.

### What it does not do

- It does **not** download from YouTube, TikTok, Spotify, Instagram, Facebook, X, Vimeo, SoundCloud, Twitch,
  Apple Podcasts and similar platforms: their pages are refused without being fetched. Use a direct file URL.
- It does not crawl, search or scrape: it downloads exactly the URLs you give, one by one.
- It does not log in or send cookies. Each download obeys the site's `robots.txt` (tokens
  `AudioFileTranscriberBot` / `AudioFileTranscriber`; an unreadable robots.txt means the file is not fetched)
  and only goes to public internet addresses. Redirects are followed by hand and every hop is checked again.
- Speaker labels (diarization) are not included.

### Input

| Field | Default | Notes |
|---|---|---|
| `audioUrls` | (prefilled with an 11 s public-domain clip) | Direct file URLs, up to 1,000; duplicates removed |
| `model` | `base` | `tiny`, `base` or `small` |
| `language` | empty = detect | Whisper code such as `en`, `de`, `es`, `zh`; detection uses the first 30 s of each file |
| `task` | `transcribe` | or `translate` (into English) |
| `initialPrompt` | empty | Names or terms to help spelling (500 characters max) |
| `vadFilter` | `true` | Skip long silences (faster; billing still counts the whole audio) |
| `wordTimestamps` | `false` | Per-word times inside each segment |
| `includeSegments` / `includeSrt` / `includeVtt` | `true` / `true` / `false` | Output parts |
| `transcribeFirstSeconds` | `0` (whole file) | Only the first N seconds are transcribed and billed (cheap preview) |
| `maxFiles` | 20 (1-500) | Extra URLs are left out, not charged |
| `maxFileSizeMb` | 300 (1-1,000) | Bigger downloads are stopped, not charged |
| `maxAudioMinutesPerFile` | 60 (1-120) | Longer files are skipped unless `transcribeFirstSeconds` is set |
| `maxTotalAudioMinutes` | 180 (1-1,000) | The run stops before a file that would pass this total |

Memory: 4,096 MB by default (1 CPU core on Apify); 2,048 MB is enough for `tiny` and `base`. The Actor uses one
thread per whole CPU core Apify gives the run (1 per 4,096 MB of memory), at most 4, so more memory mainly speeds up
long files.

### Supported files

Audio is decoded by an audio-only FFmpeg build. Supported containers include MP3, M4A/MP4/MOV/3GP, WAV, FLAC,
OGG (Vorbis, Opus, Speex), Opus, WebM/MKV, WMA/ASF, AAC, AC-3/E-AC-3, AIFF, CAF, AMR, APE, WavPack, AVI, FLV and
MPEG-TS/PS; every audio codec FFmpeg decodes natively is built in. Only the audio track is read; video is never
decoded. Not supported: codecs that need an external library (for example Codec2). Such a file, or a file
without an audio track, gets a `failed` row (free) with a clear message such as
`its audio codec (codec2) is not supported by this Actor's audio decoder`.

### Output

One dataset row per URL. Example from a real local run of the default input (2026-11-11, model `base`, one CPU core;
unabridged except that the `cpuSeconds`, `downloadSeconds`, `decodeSeconds`, `finalUrl`, `clippedToFirstSeconds` and
`checkedAt` fields are left out here):

```json
{
  "url": "https://raw.githubusercontent.com/SYSTRAN/faster-whisper/master/tests/data/jfk.flac",
  "fileName": "jfk.flac",
  "model": "base",
  "status": "ok",
  "fileBytes": 1152693,
  "contentType": "audio/flac",
  "durationSeconds": 11.0,
  "language": "en",
  "languageProbability": 0.943,
  "task": "transcribe",
  "text": "And so my fellow Americans, ask not what your country can do for you, ask what you can do for your country.",
  "wordCount": 22,
  "segmentCount": 1,
  "segments": [{"start": 0.0, "end": 11.0, "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 can do for you, ask what you can do for your country.\n\n",
  "vtt": null,
  "billableMinutes": 1,
  "chargedMinutes": 0,
  "computeSeconds": 1.94,
  "computeSecondsPerAudioMinute": 10.57,
  "modelLoadSeconds": 0.55,
  "peakRssMb": 423.4,
  "cpuThreads": 1,
  "error": null
}
```

(`chargedMinutes` is 0 because the local run had no pricing configured.) A 300-second excerpt of the same speech
with `base` gave 33 segments starting `00:00:00,340 --> 00:00:07,340 Vice President Johnson, Mr. Speaker, Mr. Chief
Justice,` in 20.5 s of compute on one core (bench/local-runs-2026-11-11/).

Rows with `status` `skipped` (robots.txt, platform link, size or length limit, private address) or `failed`
(not audio, HTTP error) carry an `error` text and are never charged. If nothing at all could be processed, the
dataset holds one free status row. A `RUN_SUMMARY` record in the key-value store totals the run (files, audio
minutes, compute seconds, peak memory, CPU cores, whether a limit stopped the run).

### Pricing

Pay per event, per **started minute of transcribed audio** (an 11 s clip = 1 minute; a 61 s file = 2):

| Event | When | Price |
|---|---|---|
| `audio-minute` | models `tiny` and `base` | **$0.006** per audio minute ($6 per 1,000 minutes) |
| `audio-minute-small` | model `small` | **$0.0103** per audio minute ($10.30 per 1,000 minutes) |
| `apify-actor-start` (Apify synthetic) | each run, once per GB of memory | **$0.00005** per GB ($0.0002 per run at the default 4 GB) |

Charged only after a file is transcribed. Before each file the Actor checks that all of its minutes fit under your
maximum cost per run; a file that does not fit is skipped and the run stops, so you are never charged for a partial
file.

### Licences

Whisper code and weights: MIT (OpenAI); faster-whisper, CTranslate2, Silero VAD, ONNX Runtime: MIT; FFmpeg
(audio decoding only, built from the official source): LGPL-2.1-or-later; see THIRD_PARTY_NOTICES.md. You are responsible for having the right to transcribe the audio you submit.

# Actor input Schema

## `audioUrls` (type: `array`):

Direct links to audio or video files (mp3, m4a, wav, flac, ogg, opus, webm, mp4, ...) that you have the right to transcribe. Pages of YouTube, TikTok, Spotify, Instagram and similar platforms are refused: this Actor does not download from them. Each download obeys the site's robots.txt and only goes to public internet addresses.

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

Open-source Whisper model (faster-whisper, int8 on CPU) used for every file in the run. Larger models are more accurate but take longer.

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

Spoken language as a Whisper code (en, de, es, fr, zh, ja, ...). Leave empty to detect it from the first 30 seconds of each file.

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

Transcribe in the spoken language, or translate the speech into English text.

## `initialPrompt` (type: `string`):

Optional text that primes the model with names or terms that appear in the audio (up to 500 characters).

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

Use voice activity detection (Silero VAD) to skip long silences. Faster and fewer made-up lines on silent parts. Billing still counts the whole audio length.

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

Add start/end times for each word to the segments (slower).

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

Timestamped segments (start, end, text) in each row.

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

An .srt subtitle text in each row.

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

A WebVTT subtitle text in each row.

## `transcribeFirstSeconds` (type: `integer`):

0 = whole file. Otherwise only the first N seconds of each file are transcribed (and billed); useful for a cheap preview.

## `maxFiles` (type: `integer`):

Files beyond this number are left out of the run (not downloaded, not charged).

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

Larger files are not downloaded (free skipped row).

## `maxAudioMinutesPerFile` (type: `integer`):

Files whose audio is longer are skipped unbilled (unless 'Transcribe only the first N seconds' is set).

## `maxTotalAudioMinutes` (type: `integer`):

The run stops before a file that would push the transcribed audio past this total.

## Actor input object example

```json
{
  "audioUrls": [
    "https://raw.githubusercontent.com/SYSTRAN/faster-whisper/master/tests/data/jfk.flac"
  ],
  "model": "base",
  "language": "",
  "task": "transcribe",
  "initialPrompt": "",
  "vadFilter": true,
  "wordTimestamps": false,
  "includeSegments": true,
  "includeSrt": true,
  "includeVtt": false,
  "transcribeFirstSeconds": 0,
  "maxFiles": 20,
  "maxFileSizeMb": 300,
  "maxAudioMinutesPerFile": 60,
  "maxTotalAudioMinutes": 180
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "audioUrls": [
        "https://raw.githubusercontent.com/SYSTRAN/faster-whisper/master/tests/data/jfk.flac"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fecklesspleb/audio-file-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 = { "audioUrls": ["https://raw.githubusercontent.com/SYSTRAN/faster-whisper/master/tests/data/jfk.flac"] }

# Run the Actor and wait for it to finish
run = client.actor("fecklesspleb/audio-file-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 '{
  "audioUrls": [
    "https://raw.githubusercontent.com/SYSTRAN/faster-whisper/master/tests/data/jfk.flac"
  ]
}' |
apify call fecklesspleb/audio-file-transcriber --silent --output-dataset

```

## MCP server setup

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