# Audio to Text Transcriber: Whisper Speech to Text (`publicrecords/audio-file-transcriber`) Actor

Transcribe audio and video files to text with timestamps, SRT and VTT subtitles. Whisper runs inside the Actor, so there is no outside speech API.

- **URL**: https://apify.com/publicrecords/audio-file-transcriber.md
- **Developed by:** [Public Records](https://apify.com/publicrecords) (community)
- **Categories:** AI, Videos, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.00 / 1,000 audio minute transcribeds

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 to Text Transcriber: Whisper Speech to Text

Give it links to audio or video files. It returns the transcript, timed segments, and SRT and VTT subtitles. OpenAI's open Whisper model runs inside the Actor, so your audio is not sent to an outside speech API.

### Who it is for

- Podcasters, researchers and journalists who need audio to text for recordings, interviews and meetings.
- AI agents and workflows that need the words in an mp3 or wav link.
- Anyone turning video files into subtitles (SRT or VTT).

This Actor transcribes files you link to. It does not download Instagram, TikTok or YouTube posts.

### What you get for each file

| Field | What it is |
|---|---|
| `text` | The full transcript |
| `segments` | Timed lines with `start`, `end` and `text` (plus word times when Word timestamps is on) |
| `srt`, `vtt` | Ready-made subtitle files |
| `language`, `languageProbability` | Detected language and its confidence |
| `durationSeconds`, `billedMinutes` | Audio length and the minutes charged |
| `model`, `engine`, `realTimeFactor` | Which Whisper model ran and how fast |
| `hasSpeech`, `wordCount` | Whether any speech was found, and how many words |

### Sample input

```json
{
  "audioUrls": [
    "https://raw.githubusercontent.com/ggerganov/whisper.cpp/master/samples/jfk.wav"
  ],
  "model": "base",
  "translateToEnglish": false,
  "wordTimestamps": false,
  "skipSilence": true,
  "maxMinutesPerFile": 60
}
```

### Sample output (from a real run, AsYnLnYLdlLHqF1aO)

```json
{
  "url": "https://raw.githubusercontent.com/ggerganov/whisper.cpp/master/samples/jfk.wav",
  "fileName": "jfk.wav",
  "durationSeconds": 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.",
  "language": "en",
  "languageProbability": 0.929,
  "segments": [
    {
      "start": 0,
      "end": 7.6,
      "text": "And so my fellow Americans ask not what your country can do for you,"
    },
    {
      "start": 7.6,
      "end": 10.6,
      "text": "ask what you can do for your country."
    }
  ],
  "srt": "1\n00:00:00,000 --> 00:00:07,600\nAnd so my fellow Americans ask not what your country can do for you,\n\n2\n00:00:07,600 --> 00:00:10,600\nask what you can do for your country.\n",
  "vtt": "WEBVTT\n\n00:00:00.000 --> 00:00:07.600\nAnd so my fellow Americans ask not what your country can do for you,\n\n00:00:07.600 --> 00:00:10.600\nask what you can do for your country.\n",
  "wordCount": 22,
  "task": "transcribe",
  "model": "whisper-base",
  "engine": "faster-whisper (CTranslate2, int8, CPU)",
  "hasSpeech": true,
  "secondsToTranscribe": 1.93,
  "realTimeFactor": 0.175
}
```

### Price

Pay per event.

| Event | Price |
|---|---|
| Actor start (per GB of memory, once per run; default 4 GB = $0.01) | $0.0025 |
| Audio minute transcribed (each started minute, any model) | $0.008 |

Examples at the default 4 GB: an 11-second clip costs $0.018 ($0.01 start + 1 minute); a 15.7-minute podcast episode costs $0.138; a 38.2-minute recording (39 started minutes) costs $0.322. Skipped files add no charge; the run's start fee still applies.

### Speech to text in 99 languages

Whisper detects the language by itself, or you can set it (en, fr, es, de and so on). Turn on **Translate to English** to get an English transcript of speech in another language.

### Choosing a Whisper model

| Model | Speed and accuracy |
|---|---|
| Tiny | Fastest: a 15.7-minute file took 38 s at 4 GB. Good for clear speech; more spelling slips on names. |
| Base (default) | 15.7 minutes in 91 s at 4 GB (57 s at 8 GB). Good balance. |
| Small | Most accurate of the three (names and punctuation), 15.7 minutes in 282 s at 4 GB. |

The price per minute is the same for every model.

### Limits

- Files up to 300 MB and up to 180 minutes (default limit 60 minutes per file; longer files are skipped and not charged).
- Formats: anything ffmpeg can read, such as mp3, wav, m4a, aac, ogg, opus, flac, webm, mp4, mov.
- No speaker labels (diarization).
- Runs time out after 60 minutes by default. Very long files with the Small model (about 18 seconds per audio minute at 4 GB) need more memory or a longer run timeout.
- Accuracy drops with heavy background noise, music or many overlapping voices. Smaller models make more mistakes on names and rare words.
- A link that is not an audio or video file, a private address, or a site that is down is skipped: the run still ends SUCCEEDED, the file gets no row, the reason is in the status message and the `RUN_SUMMARY` record, and the file adds no charge. The run's start fee still applies.

### Engines and licences

| Part | Engine | Licence |
|---|---|---|
| Speech to text | faster-whisper on CTranslate2 (int8, CPU) | MIT |
| Models | OpenAI Whisper tiny, base, small, converted by Systran (faster-whisper-tiny/base/small) | MIT |
| Silence detection | Silero VAD (bundled with faster-whisper) | MIT |
| Audio decoding | PyAV with bundled FFmpeg libraries | BSD-3-Clause (PyAV), LGPL-2.1+ (FFmpeg) |

### FAQ

**Is my audio sent to OpenAI or another API?** No. The model runs inside the Actor on Apify.

**Can it make subtitles?** Yes. Every row has `srt` and `vtt` fields.

**Why did a file give no row?** Open the run's status message or the `RUN_SUMMARY` record: it names each skipped URL and the reason.

**How long does it take?** At the default 4 GB with the Base model, about 6 seconds per minute of audio plus 10 to 20 seconds to start (measured: 15.7 minutes in 91 s, 38 minutes in 226 s). Give the run 8 GB to go about 1.6 times faster; the start fee is per GB.

**Can an AI agent call it?** Yes, through the Apify API or Apify's MCP server, with a list of URLs in `audioUrls`.

# Actor input Schema

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

Direct links to audio or video files (mp3, wav, m4a, ogg, flac, webm, mp4 and other formats ffmpeg reads). Up to 300 MB per file. Not for Instagram, TikTok or YouTube page links.

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

Bigger models are more accurate and slower. The price per minute is the same for every model.

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

Spoken language as a two-letter code (en, fr, es, de ...). Leave empty to detect it automatically.

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

Output an English translation instead of the original-language transcript.

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

Add start and end times for each word inside each segment.

## `skipSilence` (type: `boolean`):

Skip long silent stretches before transcribing (voice activity detection). Faster and fewer made-up lines on music or silence.

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

Files longer than this are skipped with a reason and not charged.

## Actor input object example

```json
{
  "audioUrls": [
    "https://raw.githubusercontent.com/ggerganov/whisper.cpp/master/samples/jfk.wav"
  ],
  "model": "base",
  "translateToEnglish": false,
  "wordTimestamps": false,
  "skipSilence": true,
  "maxMinutesPerFile": 60
}
```

# Actor output Schema

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

No description

## `subtitles` (type: `string`):

No description

## `runSummary` (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/ggerganov/whisper.cpp/master/samples/jfk.wav"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("publicrecords/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/ggerganov/whisper.cpp/master/samples/jfk.wav"] }

# Run the Actor and wait for it to finish
run = client.actor("publicrecords/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/ggerganov/whisper.cpp/master/samples/jfk.wav"
  ]
}' |
apify call publicrecords/audio-file-transcriber --silent --output-dataset

```

## MCP server setup

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