# Audio to Text: Transcribe MP3 & Video Files (`ucchiii/audio-transcriber`) Actor

Transcribe audio and video files to text with Whisper running inside the Actor, no external API: MP3, M4A, WAV, OGG, MP4, WebM and more. Full text, detected language, duration, timestamped segments and SRT/VTT subtitles. Direct file links only. Empty input = free demo.

- **URL**: https://apify.com/ucchiii/audio-transcriber.md
- **Developed by:** [Actor Factory](https://apify.com/ucchiii) (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 $23.10 / 1,000 audio minutes

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 to text for your own files: give it links to MP3, M4A, WAV or video files (or records in an Apify key-value store) and it transcribes each one with the open-source Whisper speech recognition model, running inside the Actor. One row per file: the full transcript, the detected language, the duration, timestamped segments and ready-made SRT subtitles. No external transcription API, no API key.**

| url | status | language | durationSeconds | billedMinutes | text |
|---|---|---|---|---|---|
| https://upload.wikimedia.org/…/Armstrong_Small_Step.ogg | transcribed | en | 24.11 | 1 | That's one small step for man, one giant leap for mankind. |
| https://example.com/team-call.m4a | transcribed | de | 1834.6 | 31 | Guten Morgen zusammen, wir fangen mit dem Quartalsbericht an… |
| https://www.youtube.com/watch?v=… | refused_platform | | | 0 | |

*(illustrative rows: the exact wording of a transcript depends on the recording)*

**For anyone with recordings to turn into text:** podcast episodes and interviews for show notes or search, meeting and
call recordings for minutes, lectures and webinars for study notes, voice memos, customer calls for analysis, or the audio
track of your own videos for subtitles. The text is ready for summaries, search indexes and RAG pipelines.

**Try it:** press **Start** with the prefilled example: one 24-second public-domain NASA recording (Apollo 11, from
Wikimedia Commons), charged as 1 audio minute. Clear the URL list and press Start for a **free demo** of the same clip
(the row carries `_demo: true` and is not charged).

### What you get

- **Full transcript** (`text`) of each file, plus a `wordCount`.
- **Detected language** (`language`, e.g. `en`, `es`, `ja`) with a confidence, or the language you choose. 99 languages.
- **Duration** of the audio (`durationSeconds`) and the minutes billed for it (`billedMinutes`).
- **Timestamped segments**: the transcript split into phrases with start and end times in seconds. Optional **word-level
  timestamps** with a confidence per word.
- **Subtitles**: SRT (on by default) and WebVTT, as text in the row. Optionally saved as `.txt`, `.srt` and `.vtt` files
  in the key-value store, with download links.
- **Translate to English**: Whisper's built-in translation turns non-English speech into English text (same price).
- **Vocabulary hint**: give names and jargon (product names, people, places) to help the model spell them right.
- **Skip silence**: voice activity detection finds the parts with speech first, so music, pauses and dead air are skipped
  quickly and do not produce made-up text.
- **Clear, free error rows** for every file that could not be transcribed, with the reason in `error`.

### Supported files

Anything FFmpeg can read: **MP3, M4A/AAC, WAV, OGG/Vorbis, Opus, FLAC, WMA, AMR** audio and **MP4, MOV, MKV, WebM, AVI**
video (the first audio track is used; the picture is ignored). Stereo and any sample rate are fine.

**Where the files can come from**

- **Direct file links** (`urls`): the link must download the file itself, such as a podcast's enclosure URL, a file on your
  own server or CDN, a public S3/GCS object or a signed link. A link to a web page (HTML) gives `not_a_media_file: text/html`.
- **A dataset** (`datasetId`): the output of another Actor, for example
  [Podcast Episodes from RSS](https://apify.com/ucchiii/podcast-rss-episodes), whose `audioUrl` field is used by default.
  Set **URL field in dataset** for other fields (`url`, `enclosure.url`, a list of links…).
- **A key-value store** (`keyValueStoreId`): files you uploaded in Apify Console or saved with another Actor. Pick record
  keys, or leave them empty to take every record.

**Not supported:** YouTube, TikTok, Instagram, Facebook, X/Twitter, Vimeo, SoundCloud, Spotify, Twitch and similar platform
links (also their CDN links and redirects to them). Their terms do not allow downloading, so these links get
`refused_platform` and are free. Live streams and HLS/DASH playlists (`.m3u8`, `.mpd`) are not supported either.

### How to use

1. **Audio or video file URLs**: one direct link per line (up to 500 per run; duplicates are removed). Or choose a
   **Dataset with file URLs** or a **Key-value store with files**.
2. Optional: **Language**, **Task** (transcribe or translate to English), **Include timestamped segments**, **Include SRT
   subtitles**, **Include WebVTT subtitles**, **Word-level timestamps**, **Skip silence**, **Vocabulary hint**, **Save .txt,
   .srt and .vtt files**, **Max minutes per file**, **Max audio minutes per run**, **Max file size**, **Download timeout**.
3. Press **Start**. Open the **Output** tab: the **Transcripts** view has the text, the **Subtitles** view has SRT and VTT.

```json
{
  "urls": ["https://example.com/podcast/episode-42.mp3", "https://example.com/videos/demo.mp4"],
  "language": "en",
  "includeVtt": true,
  "vocabularyHint": "Apify, Kubernetes, Dr. Nakamura",
  "maxTotalMinutes": 120
}
```

From the API (wait for the run and get the rows in one call):

```bash
curl -X POST "https://api.apify.com/v2/acts/ucchiii~audio-transcriber/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://example.com/interview.m4a"], "includeSrt": true}'
```

### Output

```json
{
  "url": "https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",
  "status": "transcribed",
  "fileName": "Armstrong_Small_Step.ogg",
  "contentType": "application/ogg",
  "durationSeconds": 24.11,
  "billedMinutes": 1,
  "language": "en",
  "languageProbability": 0.98,
  "task": "transcribe",
  "text": "That's one small step for man, one giant leap for mankind.",
  "wordCount": 11,
  "segmentCount": 1,
  "segments": [{ "start": 2.1, "end": 10.4, "text": " That's one small step for man, one giant leap for mankind." }],
  "srt": "1\n00:00:02,100 --> 00:00:10,400\nThat's one small step for man, one giant leap for mankind.\n",
  "vtt": null,
  "speechSeconds": 9.2,
  "processingSeconds": 3.1,
  "model": "whisper-base",
  "error": null,
  "transcribedAt": "2026-11-15T09:00:00+00:00"
}
```

*(illustrative row; times and wording are examples)*

- `status`: `transcribed` (charged), `no_speech` (no speech found, free), `error`, `too_large` (over **Max file size**),
  `too_long` (over **Max minutes per file**), `skipped_total_limit` (over **Max audio minutes per run**),
  `skipped_charge_limit` (over the run's maximum charge), `refused_platform` or `invalid_input`. Only `transcribed` is charged.
- `error`: e.g. `http_404`, `http_403`, `timeout`, `dns_failure`, `blocked_private_address`, `unsupported_platform_url`,
  `not_a_media_file: text/html`, `streaming_playlist_not_supported`, `file_too_large`, `audio_too_long`, `no_audio_stream`,
  `cannot_decode: …`, `no_speech_detected`, `record_not_found`; `invalid_url` for input that is not an http(s) link.
- **SUMMARY** record: files processed, `transcribed`, `errors`, `refusedPlatform`, `tooLarge`, `tooLong`, `noSpeech`,
  `skippedTotalLimit`, `skippedChargeLimit`, `audioMinutes`, `chargedMinutes`, `model`, `stoppedByChargeLimit`.

### Pricing

Pay per event: **$0.033 per audio minute** ($33.00 per 1,000 audio minutes). No start fee, no monthly fee.

**How minutes are counted:** each transcribed file is charged for its duration **rounded up to whole minutes, per file**.
A 24-second clip is 1 minute, a 61-second file is 2, a 45 min 10 s podcast episode is 46. The full duration of the file
counts, including silence that **Skip silence** jumps over.

| Example | Audio minutes | Total |
|---|---|---|
| 1 podcast episode of 45 min 10 s | 46 | $1.52 |
| 20 voice memos of 40 s each | 20 × 1 | $0.66 |
| 10 one-hour lectures | 600 | $19.80 |

**Not charged:** failed downloads, refused platform links, blocked addresses, web pages instead of files, unreadable or
corrupt files, files without an audio track, files over your size or length limits, files with no speech, retries, and
the free demo (empty input). Set **Max audio minutes per run** and the run's **maximum charge** to cap spend; the run stops
cleanly before a file that would go over, and that file is not charged.

### Accuracy, speed and limits

- **Model:** Whisper **base** (OpenAI's open-source model, MIT licence), run with faster-whisper (CTranslate2, 8-bit) on
  the Actor's CPU. It is fast and cheap and handles clear speech well. Expect mistakes on heavy accents, crosstalk, poor
  microphones, music under speech and rare names (use **Vocabulary hint**). It does not tell speakers apart (no diarization)
  and does not add speaker names.
- **Speed:** transcription runs on the CPU. With the default 4 GB of memory (1 CPU core), expect very roughly 5–20 seconds
  of processing per minute of audio (an estimate, not yet measured on Apify; more memory gives more CPU and finishes sooner).
- **Limits:** up to 500 files per run, up to 1,000 MB per file, up to 180 minutes per file (default 60). For files over 90
  minutes, give the run 4 GB of memory or more.
- **Safe by design:** only the links you give are downloaded, one at a time with a look-ahead of one file. Addresses that
  resolve to internal networks (localhost, private ranges, cloud metadata such as 169.254.169.254) are never contacted, and
  every redirect is checked the same way. Downloaded files are deleted as soon as they are transcribed.
- **Your files and rights:** transcribe only recordings you are allowed to process. If a recording contains other people's
  voices or personal data, make sure you have their consent or another legal basis. The transcript is stored only in your
  own run's dataset.

### FAQ

**Can I transcribe a YouTube video?** No. Downloading from YouTube and other video or social platforms is against their
terms, so these links are refused (free). If the video is your own, use the original file or a direct link to it.

**Is the audio sent to OpenAI or another API?** No. The model runs inside the Actor's container; nothing is sent to an
outside transcription service.

**Why did my 10-second clip cost a full minute?** Billing is per file, rounded up to whole minutes. Many very short clips
cost more than one long file with the same total length.

**The language was detected wrong.** Detection uses the first 30 seconds. Choose the **Language** in the input; it also
makes short clips more accurate.

**Can I get the subtitles as files?** Turn on **Save .txt, .srt and .vtt files**; the row's `files` field has the links.

If this Actor saved you time, a rating on the Store helps others find it.

### More tools from the same developer

- [Podcast Episodes from RSS](https://apify.com/ucchiii/podcast-rss-episodes) — find podcasts and list their episodes (audio URL, duration, date) from RSS
- [Bulk File Downloader](https://apify.com/ucchiii/bulk-file-downloader) — download files from URL lists or dataset fields into storage, with links, SHA-256 and an optional ZIP
- [RAG Chunker](https://apify.com/ucchiii/rag-chunker) — split scraped pages into chunks for RAG and vector stores
- [Tesseract OCR](https://apify.com/ucchiii/ocr-image-text) — OCR for image URLs and scanned PDFs with built-in Tesseract: text, confidence and line boxes in 8 languages
- [PDF to Text Converter](https://apify.com/ucchiii/pdf-to-text) — plain text per page from public PDF URLs, plus one .txt file per PDF

# Actor input Schema

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

Direct links to audio or video files, one per line, e.g. 'https://example.com/podcast-episode-12.mp3'. Most formats work: MP3, M4A, AAC, WAV, OGG, Opus, FLAC, WMA, MP4, MOV, MKV, WebM, AVI (the first audio track is used). The link must return the file itself, not a web page. YouTube and other video or social media platform links are refused. Duplicates are removed; up to 500 files per run. Leave empty (and no key-value store) for a free demo.

## `datasetId` (type: `string`):

Optional. ID of a dataset whose items hold audio or video URLs, for example the output of Podcast Episodes from RSS (field 'audioUrl') or of a scraper. The URLs are added after the list above; the 500-file cap applies to the total.

## `datasetUrlField` (type: `string`):

Field of each dataset item that holds the file URL. Use dots for nested fields, e.g. 'enclosure.url'. The field may also hold a list of URLs. Leave empty to use 'audioUrl', or 'url' when an item has no 'audioUrl'.

## `keyValueStoreId` (type: `string`):

Optional. ID or name of a key-value store that holds audio or video files as records (for example files you uploaded in Apify Console, or files saved by another Actor). Its files are transcribed after the URLs above.

## `keyValueStoreKeys` (type: `array`):

Optional. Keys of the records to transcribe from the key-value store above, e.g. 'meeting-2026-11-10.m4a'. Leave empty to use every record in the store (except INPUT); records that are not audio or video become free error rows.

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

Spoken language of the files. 'Detect automatically' guesses it from the first 30 seconds of each file (the result is in 'language'). Choose the language when you know it: detection on short or noisy clips can be wrong, and a wrong language gives a poor transcript.

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

'Transcribe' writes the text in the language that is spoken. 'Translate to English' writes an English translation of non-English speech (Whisper's built-in translation; quality is lower than the transcript). Same price.

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

Add 'segments': the transcript split into phrases, each with start and end time in seconds. Turn off for smaller rows when you only need the text.

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

Add 'srt': the transcript as SRT subtitles (numbered cues with HH:MM:SS,mmm times), ready to paste into a .srt file or a video editor.

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

Add 'vtt': the transcript as WebVTT subtitles (for HTML5 video players).

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

Add start and end times and a confidence for every word inside each segment. Makes transcription slower and the rows larger; same price.

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

Detect speech first (Silero voice activity detection) and only transcribe the parts with speech. Faster on recordings with pauses and music, and avoids made-up text in silent parts. Turn off if quiet speech is being skipped. Billing always uses the full file duration.

## `vocabularyHint` (type: `string`):

Optional. Names, product terms or jargon that appear in the audio, written as you want them spelled. Given to the model as context for the first window; it improves spelling of rare words but is not a strict dictionary. Up to 800 characters.

## `saveFiles` (type: `boolean`):

Also save each transcript as .txt, .srt and .vtt files in the run's key-value store, with download links in 'files'. No extra charge.

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

Files longer than this are not transcribed (status too_long, free). 1 to 180 minutes, default 60. For files over 90 minutes, give the run 4 GB of memory or more.

## `maxTotalMinutes` (type: `integer`):

Stop charging once this many audio minutes have been transcribed in the run; files that would go over the limit get status skipped_total_limit (free). 1 to 5,000, default 300. Keeps the cost of a run predictable together with the run's maximum charge.

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

Files larger than this are not downloaded (status too_large, free). Checked from the Content-Length header and again while downloading. 1 to 1,000 MB, default 300. Video files are large: a 1-hour 720p MP4 is often 500 MB or more, while its audio as MP3 is about 60 MB.

## `timeoutSecs` (type: `integer`):

Timeout for connecting and for each read while downloading a file, in seconds (5 to 600, default 120). Downloads are retried twice after timeouts and HTTP 429/5xx errors.

## Actor input object example

```json
{
  "urls": [
    "https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"
  ],
  "datasetUrlField": "audioUrl",
  "language": "auto",
  "task": "transcribe",
  "includeSegments": true,
  "includeSrt": true,
  "includeVtt": false,
  "wordTimestamps": false,
  "skipSilence": true,
  "vocabularyHint": "Apify, Kubernetes, Dr. Nakamura, Q3 roadmap",
  "saveFiles": false,
  "maxMinutesPerFile": 60,
  "maxTotalMinutes": 300,
  "maxFileSizeMb": 300,
  "timeoutSecs": 120
}
```

# Actor output Schema

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

One row per file: status, text, language, durationSeconds, billedMinutes, segments, srt, vtt, error and file details.

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

Record SUMMARY: files processed, transcribed, errors, refused platform links, too large, too long, no speech, skipped by limits, audio minutes, charged minutes, model and whether this was the free demo.

# 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://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"
    ],
    "maxMinutesPerFile": 60,
    "maxTotalMinutes": 300,
    "maxFileSizeMb": 300,
    "timeoutSecs": 120
};

// Run the Actor and wait for it to finish
const run = await client.actor("ucchiii/audio-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 = {
    "urls": ["https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"],
    "maxMinutesPerFile": 60,
    "maxTotalMinutes": 300,
    "maxFileSizeMb": 300,
    "timeoutSecs": 120,
}

# Run the Actor and wait for it to finish
run = client.actor("ucchiii/audio-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 '{
  "urls": [
    "https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"
  ],
  "maxMinutesPerFile": 60,
  "maxTotalMinutes": 300,
  "maxFileSizeMb": 300,
  "timeoutSecs": 120
}' |
apify call ucchiii/audio-transcriber --silent --output-dataset

```

## MCP server setup

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