# Audio Transcriber — Speech to Text (Whisper) (`viralanalyzer/audio-transcriber`) Actor

Transcribe audio to text with Whisper running locally — no API key. Give any media URL (podcast, TikTok, Instagram, YouTube, or a direct audio file) and get text, timestamped segments, SRT subtitles and auto-detected language. Pay per minute transcribed.

- **URL**: https://apify.com/viralanalyzer/audio-transcriber.md
- **Developed by:** [viralanalyzer](https://apify.com/viralanalyzer) (community)
- **Categories:** AI, Videos
- **Stats:** 3 total users, 2 monthly users, 78.6% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$20.00 / 1,000 minute of audio 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## 🎧 Audio Transcriber — Speech to Text (Whisper) for Podcasts, Social & Uploads

> **$0.02 per minute transcribed** · 🔒 no API key needed · 🌍 any language (auto-detect) · 📝 text + SRT + timestamps
> 🔗 [View on Apify Store](https://apify.com/viralanalyzer/audio-transcriber) · 🇺🇸 English · [🇧🇷 Português](#-português)

Transcribe **audio to text** using OpenAI **Whisper running locally inside the Actor** (faster-whisper) — **no external API, no key, no rate limits**. Just give any media URL — a podcast, TikTok, Instagram, YouTube, SoundCloud, or a direct link to an audio file — and get accurate **text, timestamped segments, SRT subtitles and auto-detected language**. Audio is extracted automatically from video links too.

**Who it's for:** podcasters & content teams, journalists, researchers, accessibility/SEO teams, and developers building search or summarization on top of spoken audio.

▶️ Click **Try for free** — your first run returns a real transcript in seconds.

### ✨ Features

- 🎯 **Real Whisper transcription** (not just captions) — works on audio that has no subtitles.
- 🌍 **99+ languages**, auto-detected (or force one with the `language` field).
- 🔗 **Any source** — social networks, podcast hosts, or a direct audio-file link (mp3/wav/m4a/…).
- 📝 **Rich output** — full text, timestamped segments, ready-to-use **SRT**, word count, language.
- 🔒 **Self-contained** — Whisper runs in the container; you never need an API key.
- 💸 **Fair pricing** — pay per minute of audio actually transcribed.

### 📥 Input

| Field | Type | Required | Description |
|---|---|---|---|
| `mediaUrls` | array | ✅ | Audio/media URLs (social/podcast link or direct audio file) |
| `language` | string | ❌ | ISO code (`en`, `pt`, `es`…). Empty = auto-detect |
| `model` | string | ❌ | `tiny` \| `base` (default) \| `small` — speed vs. accuracy |
| `maxMinutesPerItem` | integer | ❌ | Safety cap on minutes per URL (default 120) |
| `proxyConfiguration` | object | ❌ | Datacenter by default; use RESIDENTIAL if a network blocks the download |

### 📤 Output (per item)

```json
{
  "url": "https://…",
  "title": "Episode 12 — …",
  "language": "en",
  "durationSeconds": 612.4,
  "billedMinutes": 11,
  "text": "Full transcript text …",
  "segments": [{ "start": 0.0, "end": 4.2, "text": "…" }],
  "srt": "1\n00:00:00,000 --> 00:00:04,200\n…",
  "wordCount": 1840
}
````

### 🎯 Use cases

- Turn podcasts/interviews into searchable, quotable text.
- Generate SRT subtitles for social clips.
- Feed spoken audio into summarization / RAG / analytics.
- Accessibility transcripts for compliance.

### ❓ FAQ

**Q: Do I need an API key (OpenAI, etc.)?** A: No. Whisper runs inside the Actor — you only provide URLs.

**Q: Which sources work?** A: Anything yt-dlp supports (1800+ sites) plus direct audio-file links. If a network blocks the download, enable RESIDENTIAL proxy.

**Q: How is it billed?** A: **$0.02 per minute** of audio transcribed (rounded up per item). A 10-minute podcast = $0.20.

**Q: What about accuracy?** A: `base` is a good default; switch to `small` for higher accuracy on tough audio.

### 💰 Pricing

**Pay-per-event: $0.02 per minute transcribed.** No platform-usage charges — a fixed price per minute of real audio. Examples: 5 min = $0.10 · 30 min = $0.60 · 60 min = $1.20.

### 🔗 Related actors

- [Video Transcriber](https://apify.com/viralanalyzer/video-transcriber) — transcribe video from any network.
- [YouTube Fast Scraper](https://apify.com/viralanalyzer/youtube-fast-scraper) — metadata + captions.

### 📝 Changelog

- **v1.0** — local Whisper (faster-whisper) transcription; text + segments + SRT; per-minute pricing.

***

## 🇧🇷 Português

> **$0.02 por minuto transcrito** · 🔒 sem chave de API · 🌍 qualquer idioma (detecção automática) · 📝 texto + SRT + timestamps
> [🇺🇸 English](#-audio-transcriber--speech-to-text-whisper-for-podcasts-social--uploads) · 🇧🇷 Português

Transcreva **áudio em texto** com o **Whisper rodando localmente no Actor** (faster-whisper) — **sem API externa, sem chave, sem rate limit**. Passe qualquer URL de mídia — podcast, TikTok, Instagram, YouTube, SoundCloud ou um link direto de arquivo de áudio — e receba **texto, segmentos com timestamps, legendas SRT e idioma detectado**. O áudio é extraído automaticamente também de links de vídeo.

**Para quem é:** podcasters e times de conteúdo, jornalistas, pesquisadores, times de acessibilidade/SEO e desenvolvedores que constroem busca ou resumo sobre áudio falado.

▶️ Clique em **Testar grátis** — sua primeira execução retorna uma transcrição real em segundos.

### ✨ Recursos

- 🎯 **Transcrição Whisper real** (não só legendas) — funciona em áudio sem legendas.
- 🌍 **99+ idiomas**, detectados automaticamente (ou force com `language`).
- 🔗 **Qualquer origem** — redes sociais, hosts de podcast ou link direto de arquivo.
- 📝 **Saída rica** — texto completo, segmentos com tempo, **SRT** pronto, contagem de palavras, idioma.
- 🔒 **Autossuficiente** — o Whisper roda no container; você nunca precisa de chave de API.
- 💸 **Preço justo** — pague por minuto de áudio realmente transcrito.

### 💰 Preço

**Pay-per-event: $0.02 por minuto transcrito.** Sem cobrança de uso de plataforma — preço fixo por minuto de áudio real. Exemplos: 5 min = $0.10 · 30 min = $0.60 · 60 min = $1.20.

### ❓ FAQ

**P: Preciso de chave de API?** R: Não. O Whisper roda dentro do Actor — você só fornece URLs.

**P: Como é cobrado?** R: **$0.02 por minuto** de áudio transcrito (arredondado por item). Um podcast de 10 min = $0.20.

### 📝 Changelog

- **v1.0** — transcrição local com Whisper (faster-whisper); texto + segmentos + SRT; preço por minuto.

# Actor input Schema

## `mediaUrls` (type: `array`):

Audio/media URLs to transcribe — a podcast/social/video link (audio is extracted automatically) or a direct link to an audio file (mp3, wav, m4a, ...).

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

ISO code (e.g. 'en', 'pt', 'es'). Leave empty to auto-detect.

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

Accuracy vs. speed. 'small' (default, more accurate), 'base' (faster) or 'tiny' (fastest). Larger models cost a bit more compute time.

## `maxMinutesPerItem` (type: `integer`):

Safety cap on how many minutes of audio to transcribe per URL.

## `youtubeCookies` (type: `string`):

Paste the contents of a Netscape cookies.txt exported from a logged-in YouTube session to reliably download YouTube (avoids the 'Sign in to confirm you're not a bot' gate). Leave empty for other networks / direct files.

## `proxyConfiguration` (type: `object`):

Residential proxy by default — social networks (YouTube/TikTok/Instagram) block datacenter IPs when downloading media. Keep RESIDENTIAL unless your source is a plain audio file that accepts datacenter.

## Actor input object example

```json
{
  "mediaUrls": [
    "https://github.com/openai/whisper/raw/main/tests/jfk.flac"
  ],
  "language": "",
  "model": "small",
  "maxMinutesPerItem": 120,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Dataset with one transcript per input URL (text, segments, SRT, language).

# 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 = {
    "mediaUrls": [
        "https://github.com/openai/whisper/raw/main/tests/jfk.flac"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("viralanalyzer/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 = {
    "mediaUrls": ["https://github.com/openai/whisper/raw/main/tests/jfk.flac"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("viralanalyzer/audio-transcriber").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mediaUrls": [
    "https://github.com/openai/whisper/raw/main/tests/jfk.flac"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call viralanalyzer/audio-transcriber --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=viralanalyzer/audio-transcriber",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Audio Transcriber — Speech to Text (Whisper)",
        "description": "Transcribe audio to text with Whisper running locally — no API key. Give any media URL (podcast, TikTok, Instagram, YouTube, or a direct audio file) and get text, timestamped segments, SRT subtitles and auto-detected language. Pay per minute transcribed.",
        "version": "1.0",
        "x-build-id": "5E9Z6TQFSTQd1IYf6"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/viralanalyzer~audio-transcriber/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-viralanalyzer-audio-transcriber",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/viralanalyzer~audio-transcriber/runs": {
            "post": {
                "operationId": "runs-sync-viralanalyzer-audio-transcriber",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/viralanalyzer~audio-transcriber/run-sync": {
            "post": {
                "operationId": "run-sync-viralanalyzer-audio-transcriber",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mediaUrls"
                ],
                "properties": {
                    "mediaUrls": {
                        "title": "Media URLs",
                        "minItems": 1,
                        "maxItems": 50,
                        "type": "array",
                        "description": "Audio/media URLs to transcribe — a podcast/social/video link (audio is extracted automatically) or a direct link to an audio file (mp3, wav, m4a, ...).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "language": {
                        "title": "Language (optional)",
                        "type": "string",
                        "description": "ISO code (e.g. 'en', 'pt', 'es'). Leave empty to auto-detect.",
                        "default": ""
                    },
                    "model": {
                        "title": "Whisper model",
                        "enum": [
                            "tiny",
                            "base",
                            "small"
                        ],
                        "type": "string",
                        "description": "Accuracy vs. speed. 'small' (default, more accurate), 'base' (faster) or 'tiny' (fastest). Larger models cost a bit more compute time.",
                        "default": "small"
                    },
                    "maxMinutesPerItem": {
                        "title": "Max minutes per item",
                        "minimum": 1,
                        "maximum": 600,
                        "type": "integer",
                        "description": "Safety cap on how many minutes of audio to transcribe per URL.",
                        "default": 120
                    },
                    "youtubeCookies": {
                        "title": "YouTube cookies (optional)",
                        "type": "string",
                        "description": "Paste the contents of a Netscape cookies.txt exported from a logged-in YouTube session to reliably download YouTube (avoids the 'Sign in to confirm you're not a bot' gate). Leave empty for other networks / direct files."
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Residential proxy by default — social networks (YouTube/TikTok/Instagram) block datacenter IPs when downloading media. Keep RESIDENTIAL unless your source is a plain audio file that accepts datacenter.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
