# Audio & Video Transcriber — Whisper, SRT/VTT, per minute (`docflow-tools/audio-transcriber-whisper-local`) Actor

Transcribe audio and video files (MP3, M4A, WAV, OGG, MP4, WebM...) from direct URLs with Whisper running locally — no API keys. Text, timestamps, SRT and VTT subtitles, 99 languages auto-detected. Billed per audio minute; files with no speech are free.

- **URL**: https://apify.com/docflow-tools/audio-transcriber-whisper-local.md
- **Developed by:** [DocFlow Tools](https://apify.com/docflow-tools) (community)
- **Categories:** AI, Videos, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.80 / 1,000 audio minute (base model)s

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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, SRT/VTT, per minute

Turn audio and video files into text, timestamps and subtitles. Give the Actor direct links to your files (MP3, M4A,
WAV, OGG, FLAC, MP4, WebM...) and it transcribes them with **Whisper running inside the Actor** (the open-source
`faster-whisper` engine on CPU). No OpenAI key, no third-party transcription API, nothing to configure. The language is
detected automatically, or you can set it. You pay per audio minute, and files that fail or contain no speech cost
nothing.

### What you get

One dataset item per file:

| Field | Type | Description |
|---|---|---|
| `url` | string | The file URL you submitted |
| `status` | string | `ok`, `no_speech` or `error` |
| `model` | string | `base` or `small` (only on `ok` items) |
| `language` | string | Detected (or forced) language code, e.g. `en`, `es` |
| `languageProbability` | number | Whisper's confidence in the detected language, 0-1 |
| `durationSeconds` | number | Length of the audio, in seconds |
| `text` | string | Full transcript; a pause longer than 2 seconds starts a new paragraph |
| `segments` | array | `[{ "start", "end", "text" }]`, times in seconds (2 decimals) |
| `srt` | string | SubRip subtitles, ready to save as `.srt` |
| `vtt` | string | WebVTT subtitles, ready to save as `.vtt` |
| `error` | string | Reason, only on `error` items |

`text`, `segments`, `srt` and `vtt` appear only if you keep them in **Output formats** (all four by default).
`no_speech` items carry `url`, `status`, `language` and `durationSeconds`.

### Use cases

- **Podcasts and interviews**: get a searchable transcript and paragraph text for show notes or articles.
- **Video subtitles**: download the `srt` or `vtt` field and upload it to your video player or editor.
- **Meeting and lecture recordings**: turn recordings you own into text you can search, summarize or feed to an LLM.
- **Voice notes and call recordings**: bulk-transcribe a list of files stored on your own server, S3 or CDN.
- **RAG and AI pipelines**: `segments` with timestamps let you link answers back to the exact moment in the audio.

### How to use

1. Open the Actor in Apify Console and paste one or more **direct file URLs** into *Audio or video file URLs*.
2. Choose the **Model**: `base` (faster, cheaper) or `small` (more accurate on noisy audio and accents).
3. Optional: set **Language** (ISO code such as `en`, `es`, `fr`, `de`) if you already know it; leave it empty to
   detect it.
4. Optional: choose the **Output formats** you want: `text`, `segments`, `srt`, `vtt`.
5. Click **Start**. Results appear in the *Output* tab and can be exported as JSON, CSV, Excel and more.

Input example:

```json
{
  "audioUrls": [
    "https://www.nasa.gov/wp-content/uploads/2015/01/590331main_ringtone_smallStep.mp3",
    "https://example.com/podcast/episode-42.mp3"
  ],
  "model": "base",
  "language": "",
  "outputFormats": ["text", "segments", "srt", "vtt"]
}
```

### Output example

Real output of the `base` model for the prefilled NASA clip (Apollo 11, 1969, noisy radio audio), run locally with
the Actor's code. Note the mistakes in the second sentence: on old or noisy recordings, try the `small` model.

```json
{
  "url": "https://www.nasa.gov/wp-content/uploads/2015/01/590331main_ringtone_smallStep.mp3",
  "status": "ok",
  "model": "base",
  "language": "en",
  "languageProbability": 0.877,
  "durationSeconds": 12.98,
  "text": "I'm gonna step off the land now. It's one small step for man, one by a lead for man.",
  "segments": [
    { "start": 0.0, "end": 2.0, "text": "I'm gonna step off the land now." },
    { "start": 2.0, "end": 11.94, "text": "It's one small step for man, one by a lead for man." }
  ],
  "srt": "1\n00:00:00,000 --> 00:00:02,000\nI'm gonna step off the land now.\n\n2\n00:00:02,000 --> 00:00:11,940\nIt's one small step for man, one by a lead for man.\n",
  "vtt": "WEBVTT\n\n00:00:00.000 --> 00:00:02.000\nI'm gonna step off the land now.\n\n00:00:02.000 --> 00:00:11.940\nIt's one small step for man, one by a lead for man.\n"
}
```

This 13-second file is billed as 1 audio minute.

An item that could not be processed:

```json
{ "url": "https://www.youtube.com/watch?v=xyz", "status": "error",
  "error": "use a direct audio/video file URL (platform links are not supported)" }
```

### Pricing

> **Prices by Apify discount tier:** the prices below are for the Bronze tier. **Free plan: 50 % off.** Silver: 10 % off. Gold and higher: 20 % off. Apify applies the right price automatically.

Pay per event, in USD:

| Event | Price | When it is charged |
|---|---|---|
| Actor start | $0.00005 | Charged by Apify when a run starts, per GB of run memory (default memory: 2 GB) |
| `audio-minute` | $0.006 | Per audio minute of each file transcribed with the **base** model |
| `audio-minute-small` | $0.016 | Per audio minute of each file transcribed with the **small** model |

How minutes are counted:

- Minutes are the **full duration of the file**, rounded **up** per file (a 61-second file is 2 minutes; any file
  shorter than a minute counts as 1).
- **Not charged**: files that fail to download, can't be decoded, are over the size or length limits, use a platform
  link, or contain no speech (`no_speech`).

Worked examples (2 GB run, start = $0.0001):

- One 45-minute podcast, base model: 45 × $0.006 = $0.27, plus start = **$0.2701**.
- Ten voice notes of 3 min 20 s each, base model: each rounds up to 4 min, 40 × $0.006 = $0.24, plus start =
  **$0.2401**.
- One 60-minute interview, small model: 60 × $0.016 = $0.96, plus start = **$0.9601**.

You can cap the spend with Apify's *maximum cost per run* setting: the Actor stops when the limit is reached.

### Use it from code, AI agents and integrations

Run it and get the results in one call with the Apify API (best for short files; this endpoint waits up to 5 minutes,
use the regular run endpoint for long batches):

```bash
curl -X POST "https://api.apify.com/v2/acts/docflow-tools~audio-transcriber-whisper-local/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"audioUrls": ["https://example.com/podcast/episode-42.mp3"], "model": "base", "outputFormats": ["text", "srt"]}'
```

Python with `apify-client`:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("docflow-tools/audio-transcriber-whisper-local").call(run_input={
    "audioUrls": ["https://example.com/podcast/episode-42.mp3"],
    "model": "small",
    "language": "en",
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["status"], item.get("durationSeconds"), item.get("text", "")[:200])
```

- **AI agents**: the Actor can be found and called by AI agents through the Apify MCP server at https://mcp.apify.com.
- **No-code**: connect it to Make, Zapier or n8n through Apify's integrations, or trigger it from webhooks and
  schedules in Apify Console.

### Limits and notes

- **Direct file links only.** Links to YouTube, youtu.be, TikTok, Instagram, Facebook, fb.watch, Twitter/X, Vimeo,
  Spotify and SoundCloud are refused (their terms forbid automated downloads). Only `http` and `https` URLs are
  accepted.
- **Up to 500 MB and 3 hours per file.** Larger downloads are stopped; longer audio returns an `error` item and is not
  charged.
- Download timeout: 300 seconds per request. Redirects are followed.
- Files are processed one after another, in the order you give them.
- Voice activity detection is on: long silences and music without speech are skipped, which is why a file can come
  back as `no_speech`. Billing still uses the full file duration when speech is found.
- Whisper runs on CPU with int8 precision and greedy decoding (beam size 1). Both models are bundled in the Actor
  image, so nothing is downloaded at run time.
- **Privacy**: each file is saved only to a temporary file during transcription and deleted right after. Only the
  transcript is stored, in your run's dataset. You are responsible for having the right to transcribe what you submit.

### FAQ

**Which model should I pick?**
Start with `base` for clear speech (podcasts, lectures, dictation). Switch to `small` for background noise, strong
accents or several speakers talking over each other; it costs more per minute and runs slower.

**Can I transcribe a YouTube video?**
No. Platform page links are refused. Use a direct link to an audio or video file you are allowed to process.

**Do I need an OpenAI or other API key?**
No. The Whisper model runs inside the Actor.

**What if I set the wrong language?**
Whisper will transcribe as if the audio were in that language, which usually gives poor text. Leave the field empty
unless you are sure; an invalid code returns an `error` item that is not charged.

**Does it identify speakers?**
No. There is no speaker diarization; you get the text with start and end times.

**How do I get an .srt file?**
Take the `srt` field of the item and save it as a file with the `.srt` extension (same for `vtt`).

### Related tools

- [Document to Markdown for RAG](https://apify.com/docflow-tools/document-to-markdown-rag) — PDF, DOCX, XLSX, PPTX and HTML to clean Markdown with RAG chunks.
- [Feed Reader — only new items](https://apify.com/docflow-tools/feed-reader-only-new) — RSS, Atom and JSON Feed, returning only items you haven't seen.
- [PageSpeed Bulk Regression Monitor](https://apify.com/docflow-tools/pagespeed-bulk-regression-monitor) — PageSpeed Insights and Core Web Vitals for many URLs, flags regressions.
- [Image OCR](https://apify.com/docflow-tools/image-ocr-own-engine) — extract text from images with an own OCR engine.
- [Merge, Deduplicate & Convert Datasets](https://apify.com/docflow-tools/merge-dedupe-transform-data) — merge datasets and CSV/JSON/Excel files, remove duplicates, export.
- [Website Screenshot & Visual Change Monitor](https://apify.com/docflow-tools/website-screenshot-monitor) — bulk screenshots and visual change detection.
- [Bulk Image Converter & Compressor](https://apify.com/docflow-tools/bulk-image-converter-compressor) — convert to WebP, AVIF, JPEG or PNG with a target size.
- [Sitemap URL Extractor](https://apify.com/docflow-tools/sitemap-url-extractor-reliable) — every URL of a website from its sitemaps.
- [SEO Audit Crawler](https://apify.com/docflow-tools/seo-audit-crawler-cheap) — on-page SEO score and issues per page.
- [Website to Markdown & llms.txt](https://apify.com/docflow-tools/website-to-markdown-llms-txt) — websites to clean Markdown and llms.txt for LLMs.

# Actor input Schema

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

Direct links to audio/video files (MP3, M4A, WAV, OGG, FLAC, MP4, WebM...), up to 500 MB and 3 hours each. Platform page links (YouTube, TikTok, Instagram...) are not supported.

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

Whisper model: base is faster and cheaper; small is more accurate on noisy audio and accents.

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

ISO code like en, es, fr, de. Leave empty to detect it automatically.

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

Any of: text (paragraphs), segments (timestamps), srt, vtt.

## Actor input object example

```json
{
  "audioUrls": [
    "https://www.nasa.gov/wp-content/uploads/2015/01/590331main_ringtone_smallStep.mp3"
  ],
  "model": "base",
  "outputFormats": [
    "text",
    "segments",
    "srt",
    "vtt"
  ]
}
```

# Actor output Schema

## `results` (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://www.nasa.gov/wp-content/uploads/2015/01/590331main_ringtone_smallStep.mp3"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("docflow-tools/audio-transcriber-whisper-local").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://www.nasa.gov/wp-content/uploads/2015/01/590331main_ringtone_smallStep.mp3"] }

# Run the Actor and wait for it to finish
run = client.actor("docflow-tools/audio-transcriber-whisper-local").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://www.nasa.gov/wp-content/uploads/2015/01/590331main_ringtone_smallStep.mp3"
  ]
}' |
apify call docflow-tools/audio-transcriber-whisper-local --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,docflow-tools/audio-transcriber-whisper-local"
        }
    }
}
```

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/Wazrh2q4vu7kO4sfG/builds/a1qJBAP41buxMGJks/openapi.json
