# Speech to Text – Audio to Text Transcription API (Whisper) (`gazidev/speech-to-text`) Actor

Audio transcription API: speech to text and audio to text with Whisper, 99 languages, auto language detection, timestamps. MP3, WAV, M4A, MP4 and more from direct links, Dropbox or Google Drive. Plain text, JSON segments, SRT and VTT. No API key. $0.006 per minute.

- **URL**: https://apify.com/gazidev/speech-to-text.md
- **Developed by:** [Cemal Atakli](https://apify.com/gazidev) (community)
- **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 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

## Speech to Text – Audio to Text Transcription API (Whisper)

**Turn an audio or video file into clean transcript text.** Paste direct links to your recordings, or Dropbox and Google Drive share links. You get the full text, paragraphs split at pauses, timed segments, optional LLM-ready chunks and optional SRT and VTT files.

Whisper runs inside the Actor (faster-whisper on CPU), so you need **no OpenAI API key, no account elsewhere and no subscription**. You pay **$0.006 per started minute** (or $0.003 with the `fast` quality) **plus $0.002 per file**, and failed files are free.

### What it does

- **Text first.** Each file gives one row with `text` (the whole transcript, with blank lines between paragraphs) and `paragraphs[]` with start and end times.
- **Timed segments.** `segments[]` holds Whisper's `{start, end, text}` segments. Turn on `wordTimestamps` to add per-word times and confidence.
- **Chunks for LLM and RAG.** Set `chunkChars` (for example 2000) to also get `chunks[]`: pieces of at most that many characters, cut between segments, each with start and end times. Ready for embeddings or a prompt.
- **Subtitles if you want them.** Add `srt` or `vtt` to `outputs` for subtitle files with download links.
- **99 languages.** The language is detected automatically, or you can force one. Set `task` to `translate` for English text from any spoken language, at the same price.
- **Two quality levels.** `standard` (Whisper base) for most clear speech, `fast` (Whisper tiny) at half the price for clean single-speaker English.
- **Many formats:** mp3, m4a, wav, ogg, opus, flac, aac, mp4, mov, mkv, webm and anything else ffmpeg can read. Only the audio track of a video is used.
- **Clear failures.** Downloads are retried, and a bad link, private file or silent file becomes a free error row. One bad file does not stop the run.
- **Respects your budget.** It never transcribes more minutes than your *Maximum cost per run* allows.

### What it does not do

- **YouTube, TikTok, Instagram, Spotify, Facebook, X, Vimeo and SoundCloud links are rejected** with a clear error, because their terms of service do not allow downloading. Use a direct link to a file you have the rights to.
- **No speaker labels.** See [Related Actors](#related-actors).
- **It is not perfect.** The `base` and `tiny` models suit clear speech. Names and rare words are often misheard: in the sample below the author "Mary Howitt" comes out as "Mary Howett" and "LibriVox" as "libravox", and a local test run wrote "Mary Howard". Noise, music, overlapping speakers and heavy accents lower the quality. These are smaller models than the large Whisper models some paid APIs use, so check important transcripts.
- **No live or streaming audio.** Files only.

### Who it is for

- **n8n, Make, Zapier and AI-agent workflows** that need transcript text from a file link.
- **Teams with meeting, interview, lecture or call recordings** they own.
- **RAG and search pipelines** that want timed chunks of a recording.

### Input

```json
{
  "urls": [
    "https://archive.org/download/spc141_1503_librivox/spc141_spiderandfly_lcw_64kb.mp3",
    "https://www.dropbox.com/scl/fi/abc123/interview.m4a?rlkey=xyz&dl=0"
  ],
  "quality": "standard",
  "language": "auto",
  "task": "transcribe",
  "outputs": ["text", "segments"],
  "chunkChars": 0,
  "wordTimestamps": false,
  "maxDurationMinutes": 120,
  "maxFileMb": 500
}
```

| Field | Default | Notes |
|---|---|---|
| `urls` | 4-minute sample | Direct file links. Dropbox, Google Drive and OneDrive share links are converted to direct downloads |
| `quality` | `standard` | `standard` = Whisper base ($0.006/min), `fast` = Whisper tiny ($0.003/min) |
| `language` | `auto` | Or a Whisper code such as `en`, `de`, `es`, `fr`, `tr` |
| `task` | `transcribe` | `translate` gives English text |
| `outputs` | `text`, `segments` | Add `srt` and/or `vtt` for subtitle files |
| `chunkChars` | 0 (off) | Max characters per chunk in `chunks[]` (minimum 200) |
| `wordTimestamps` | false | Per-word times and confidence inside each segment. About 15% slower in our test, same price |
| `maxDurationMinutes` | 120 | Longer files are cut at this length, and only the minutes transcribed are billed. The Console prefill uses 1 for a quick, cheap first try |
| `maxFileMb` | 500 | Larger downloads are stopped (free) |

The sample is a public-domain LibriVox reading of Mary Howitt's "The Spider and the Fly", from the Internet Archive.

### Output

One dataset row per file. Sample from the cloud test (prefill: first minute only; text and `segments` shortened):

```json
{
  "sourceUrl": "https://archive.org/download/spc141_1503_librivox/spc141_spiderandfly_lcw_64kb.mp3",
  "fileName": "spc141_spiderandfly_lcw_64kb.mp3",
  "status": "ok",
  "durationSeconds": 244.92,
  "transcribedSeconds": 60,
  "truncated": true,
  "truncatedReason": "maxDurationMinutes",
  "language": "en",
  "languageProbability": 0.999,
  "task": "transcribe",
  "quality": "standard",
  "model": "base",
  "text": "The Spider and the Fly by Mary Howett, read for libravox.org by Larry Wilson. An epilogue, a new version of an old story. Will you walk into my parlour, said the spider to the fly, …",
  "wordCount": 141,
  "characterCount": 702,
  "paragraphs": [{"start": 0.24, "end": 59.65, "text": "The Spider and the Fly by Mary Howett, …"}],
  "segments": [
    {"start": 0.24, "end": 9.12, "text": "The Spider and the Fly by Mary Howett, read for libravox.org by Larry Wilson."},
    {"start": 9.12, "end": 12.16, "text": "An epilogue, a new version of an old story."}
  ],
  "chunks": null,
  "srtUrl": null,
  "vttUrl": null,
  "billedMinutes": 1,
  "fileSizeBytes": 1960448,
  "hasVideo": false,
  "processingSeconds": 3.6,
  "cpuSecondsPerAudioMinute": 3.99,
  "note": null,
  "error": null,
  "processedAt": "2026-11-07T12:33:35Z"
}
```

- `paragraphs` start a new paragraph after a pause of more than 2 seconds, or at a sentence end once a paragraph passes about 900 characters.
- `chunks` (when `chunkChars` > 0): `{index, start, end, text, charCount}`.
- With `wordTimestamps`, each segment has `words: [{start, end, word, probability}]`.
- `truncated: true` with `truncatedReason` (`maxDurationMinutes` or `maxTotalCharge`) means only the first `transcribedSeconds` were transcribed and billed.
- Very long files whose row would pass Apify's ~9 MB item limit get `textUrl` and `segmentsUrl` links to files in the key-value store instead of the inline arrays.
- Failed files have `status: "error"` and an `error` message. They are free.
- The `OUTPUT` record in the key-value store holds the run summary.

### Pricing

| Event | Price | When |
|---|---|---|
| `minute-transcribed` | **$0.006** | Each started minute with `standard` quality (60.4 s counts as 1 minute) |
| `minute-transcribed-fast` | $0.003 | Each started minute with `fast` quality |
| `file-processed` | $0.002 | Each file transcribed successfully |
| Actor start | $0.00005 | Each run |

**Examples:** a 10-minute recording costs $0.062 (`standard`) or $0.032 (`fast`). A 60-minute meeting costs $0.362 or $0.182.

**Free:** rejected links, download errors, web pages instead of media, files over the size limit, files without an audio track, files with no speech detected, and minutes cut off by `maxDurationMinutes`.

### Memory and speed

The default of 2 GB handles long files, because they are processed in 10-minute pieces (4-minute pieces below 2 GB), each ending in the quietest moment near the cut. 1 GB worked for the 1-minute cloud test (peak 409 MB, 17 s run); long files have not been run on Apify at 1 GB, so use 2 GB for them. In that test one minute of audio took 3.6 s, but a single short run is only a rough guide. Apify gives 1 vCPU per 4 GB, so 4 GB can be faster. Your price does not change with memory.

### Related Actors

- [Audio & Video Transcription](https://apify.com/gazidev/media-transcriber): podcast RSS feeds, speaker labels and a more accurate `small` model.
- [Video to SRT](https://apify.com/gazidev/video-to-srt): subtitle files with layout controls (characters per line, lines per cue).

### FAQ

**Can I use YouTube links?** No. Their terms of service do not allow downloading. Use a file from your own account on Dropbox, Google Drive or S3.

**Why was my Google Drive link rejected?** The file must be shared as "Anyone with the link". Very large Drive files can still return a confirmation page, which is reported as a free error. In that case, use another host.

**Is my file stored?** It is deleted from the run's disk once it is processed. Results stay in your run's dataset and key-value store for as long as your Apify retention lasts.

**Do I need rights to the recording?** Yes. Only submit recordings you own or may transcribe, and follow the consent rules for recorded calls and meetings where you are.

Whisper model weights: OpenAI Whisper (MIT), run through faster-whisper (MIT) and CTranslate2. This Actor is not affiliated with OpenAI.

# Actor input Schema

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

Direct links to audio or video files: mp3, m4a, wav, ogg, opus, flac, aac, mp4, mov, mkv, webm and more. S3 and CDN links work, and Dropbox, Google Drive (shared as 'Anyone with the link') and OneDrive share links are converted to direct downloads. **YouTube, TikTok, Instagram, Spotify, Facebook, X, Vimeo and SoundCloud page links are rejected**: their terms of service do not allow downloading. Only submit recordings you have the right to transcribe.

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

`standard` (Whisper base, default): good for clear speech, $0.006 per minute. `fast` (Whisper tiny): faster and cheaper ($0.003 per minute), for clean single-speaker English. Neither is as accurate as large Whisper models on noisy audio or accents.

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

`auto` detects the spoken language from the first 30 seconds. Or force a Whisper code to avoid mistakes on short or noisy clips: `en`, `es`, `de`, `fr`, `pt`, `it`, `nl`, `pl`, `tr`, `ru`, `uk`, `ar`, `hi`, `ja`, `ko`, `zh`...

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

`transcribe`: text in the spoken language. `translate`: Whisper translates the speech into English text, at the same price.

## `outputs` (type: `array`):

`text`: the full transcript plus `paragraphs` (split at pauses). `segments`: timed segments `{start, end, text}`. `srt` / `vtt`: subtitle files saved in the run's key-value store, with download links in the results.

## `chunkChars` (type: `integer`):

0 = off. Otherwise the transcript is also split into `chunks` of at most this many characters, each with start and end times, ready for embeddings or an LLM prompt. 1,500–4,000 is typical. Values from 1 to 199 are raised to 200.

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

Adds `words[]` with start, end and confidence to each segment. Made transcription about 15% slower in our test; the price stays the same.

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

Longer files are cut at this length, and you pay only for the minutes transcribed.

## `maxFileMb` (type: `integer`):

Larger downloads are stopped and reported as a free error row.

## Actor input object example

```json
{
  "urls": [
    "https://archive.org/download/spc141_1503_librivox/spc141_spiderandfly_lcw_64kb.mp3"
  ],
  "quality": "standard",
  "language": "auto",
  "task": "transcribe",
  "outputs": [
    "text",
    "segments"
  ],
  "chunkChars": 0,
  "wordTimestamps": false,
  "maxDurationMinutes": 1,
  "maxFileMb": 500
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `full` (type: `string`):

No description

## `files` (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 = {
    "urls": [
        "https://archive.org/download/spc141_1503_librivox/spc141_spiderandfly_lcw_64kb.mp3"
    ],
    "language": "auto",
    "maxDurationMinutes": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/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://archive.org/download/spc141_1503_librivox/spc141_spiderandfly_lcw_64kb.mp3"],
    "language": "auto",
    "maxDurationMinutes": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("gazidev/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://archive.org/download/spc141_1503_librivox/spc141_spiderandfly_lcw_64kb.mp3"
  ],
  "language": "auto",
  "maxDurationMinutes": 1
}' |
apify call gazidev/speech-to-text --silent --output-dataset

```

## MCP server setup

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