# Audio & Video Transcriber: Speech to Text, SRT Subtitles (`picdev/audio-video-transcriber-speech-to-text`) Actor

Transcribe audio and video files by URL with Whisper: MP3, MP4, WAV, M4A, OGG, podcasts and recordings to text with timestamps, SRT and VTT subtitles. 99 languages, auto language detection. Pay per audio minute, failed files are free.

- **URL**: https://apify.com/picdev/audio-video-transcriber-speech-to-text.md
- **Developed by:** [PIC DEV](https://apify.com/picdev) (community)
- **Categories:** AI, Videos, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 audio minute (fast)s

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 Subtitles (Whisper)

Transcribe audio and video files by URL. Paste direct links to MP3, MP4, WAV, M4A, OGG, FLAC, WEBM or MOV files and get the full transcript, timestamps, and ready-to-use SRT or VTT subtitles. Runs OpenAI's Whisper models, detects the language automatically and supports 99 languages. No API keys to set up.

### What is it for?

- **Podcast transcription**: turn episodes into searchable text, show notes and blog posts.
- **Video to text**: transcribe recorded meetings, webinars, lectures, interviews and screen recordings.
- **Subtitles**: generate SRT and VTT subtitle files for any video.
- **Audio to text at scale**: send hundreds of file URLs in one run and get one clean record per file.
- **AI pipelines and agents**: feed transcripts to an LLM for summaries, search or RAG through the API or the Apify MCP server.

### What you get per file

| Field | Example |
|---|---|
| `text` | the full transcript |
| `segments[]` | `{ "start": 12.4, "end": 17.9, "text": "..." }` |
| `srt`, `vtt` | subtitle files as text (optional) |
| `language`, `languageProbability` | `en`, `0.98` |
| `durationSec`, `billedMinutes` | `330.5`, `6` |
| `status`, `error` | `ok`, or `error` with the reason |

### Input examples

Transcribe two files with automatic language detection:

```json
{
  "urls": [
    "https://example.com/podcast-episode-42.mp3",
    "https://example.com/webinar-recording.mp4"
  ]
}
```

Accurate mode with SRT subtitles for a German video:

```json
{
  "urls": ["https://example.com/interview.mp4"],
  "quality": "accurate",
  "language": "de",
  "includeSrt": true
}
```

### Fast or Accurate?

- **Fast** (Whisper base): best price, good for clear speech in English and other major languages.
- **Accurate** (Whisper small): better with accents, background noise, names and less common languages. Takes about three times longer.

### Pricing

- **Fast: $0.006 per audio minute** ($0.36 per hour of audio).
- **Accurate: $0.015 per audio minute** ($0.90 per hour of audio).

Each file is rounded up to a full minute. Platform usage is included. Files that fail to download or are not media are **not charged**. Set a maximum charge per run and the Actor stops before starting a file that would exceed it.

### FAQ

**Which formats are supported?** Anything FFmpeg can decode: MP3, MP4, M4A, WAV, OGG, OGA, FLAC, AAC, WEBM, MOV, MKV, AVI and more. For video files only the audio track is used.

**Does it work with YouTube, TikTok or Instagram links?** No. It needs a direct link to the media file. A page URL is skipped with a clear error and is not charged.

**How long does it take?** Fast mode processes an hour of audio in about 5 minutes on the default 4 GB of memory. Give the run 8 or 16 GB and it uses more CPU cores and finishes two to four times faster for the same price per minute.

**How long can a file be?** Up to 12 hours; the default limit is 4 hours per file and 500 MB, both adjustable in the input.

**Which languages?** The 99 languages Whisper supports, including English, Spanish, German, French, Portuguese, Russian, Chinese, Japanese, Hindi and Arabic. Leave `language` empty for auto-detection.

**Is my audio stored?** No. The file is downloaded, transcribed and deleted within the run. Only the transcript is saved to your dataset.

# Actor input Schema

## `urls` (type: `array`):

Direct links to audio or video files (MP3, MP4, WAV, M4A, OGG, FLAC, WEBM, MOV...).

## `quality` (type: `string`):

Fast is good for clear speech. Accurate handles accents, noise and non-English audio better and takes about three times longer.

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

Two-letter language code such as `en`, `de`, `es`, `ru`. Leave empty to detect the language automatically.

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

Add segments with start and end time to each record.

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

Add ready-to-use SRT subtitles.

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

Add ready-to-use WebVTT subtitles.

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

Longer files are skipped and not charged.

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

Larger files are skipped and not charged.

## Actor input object example

```json
{
  "urls": [
    "https://github.com/openai/whisper/raw/main/tests/jfk.flac"
  ],
  "quality": "fast",
  "includeSegments": true,
  "includeSrt": false,
  "includeVtt": false,
  "maxDurationMinutes": 240,
  "maxFileSizeMb": 500
}
```

# Actor output Schema

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

One record per media file.

## `summary` (type: `string`):

Files transcribed, files skipped and billed minutes.

# 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 = {
    "urls": [
        "https://github.com/openai/whisper/raw/main/tests/jfk.flac"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("picdev/audio-video-transcriber-speech-to-text").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 = { "urls": ["https://github.com/openai/whisper/raw/main/tests/jfk.flac"] }

# Run the Actor and wait for it to finish
run = client.actor("picdev/audio-video-transcriber-speech-to-text").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 '{
  "urls": [
    "https://github.com/openai/whisper/raw/main/tests/jfk.flac"
  ]
}' |
apify call picdev/audio-video-transcriber-speech-to-text --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,picdev/audio-video-transcriber-speech-to-text"
        }
    }
}
```

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/kz145SKdmFR0eSayo/builds/maQos5N4ajSTyVMIG/openapi.json
