# Audio & Video Transcription (Whisper): MP3, MP4 to Text, SRT (`squarish_altruism/transcribe`) Actor

Transcribe audio and video files, podcast RSS feeds and Apple Podcasts shows to text with timestamps, SRT and VTT subtitles using OpenAI's open-source Whisper model. Optional: bring your own Groq/OpenAI key for faster, cheaper large-model transcription.

- **URL**: https://apify.com/squarish_altruism/transcribe.md
- **Developed by:** [John Joseph Wheatley](https://apify.com/squarish_altruism) (community)
- **Categories:** AI, Videos
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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 Transcription (Whisper): Podcasts, MP3, MP4 to Text, SRT, VTT

Turn **audio and video into text**, with timestamps and ready-made **SRT and VTT subtitles**. It works with:

- **Direct media links:** MP3, M4A, WAV, OGG, OPUS, FLAC, MP4, WEBM, MOV and more.
- **Podcast RSS feeds:** transcribes the newest *N* episodes, with titles and publish dates.
- **Apple Podcasts show links,** which are resolved to the show's public RSS feed automatically.

There are two engines:

| Engine | What it is | Needs | Price |
|---|---|---|---|
| **Built-in Whisper** (default) | OpenAI's open-source Whisper model (tiny / base / small) running inside the Actor | Nothing; no account required | $0.01 per audio minute |
| **Your own API key** | Any OpenAI-compatible transcription API, such as **Groq** (whisper-large-v3-turbo, very fast and cheap) or OpenAI | Your API key (usage is billed to you by that provider) | $0.002 per audio minute |

Long files are processed in 10-minute segments, so a 3-hour podcast works as well as a 30-second clip.

### Use cases

- **Podcasters:** get show notes, blog posts and searchable archives from every episode, automatically and on a schedule.
- **Content teams:** add subtitles (SRT/VTT) to videos, and repurpose talks and webinars into articles.
- **Researchers and journalists:** transcribe interviews and meetings, and search across many episodes.
- **AI and RAG pipelines:** feed spoken content to LLMs as text with timestamps.
- **Translation:** choose *Translate to English* to turn foreign-language speech into English text.

### Input example

```json
{
  "sources": [
    "https://feeds.npr.org/510289/podcast.xml",
    "https://podcasts.apple.com/us/podcast/the-daily/id1200361736",
    "https://example.com/media/interview.mp4"
  ],
  "maxEpisodesPerFeed": 2,
  "language": "en",
  "engine": "local",
  "model": "whisper-base"
}
```

### Output

One row per file:

```json
{
  "title": "Is this how the great international borrowing spree ends?",
  "feedTitle": "Planet Money",
  "publishedAt": "2026-11-02T22:00:00.000Z",
  "url": "https://…/episode.mp3",
  "durationSeconds": 1740,
  "billedMinutes": 29,
  "engine": "local:whisper-base",
  "text": "We will learn something on election night, but not everything…",
  "segments": [{ "start": 0, "end": 4.2, "text": "We will learn something on election night, but not everything." }],
  "srtUrl": "https://api.apify.com/v2/key-value-stores/…/records/0002-2dd8f7c8.srt",
  "vttUrl": "https://api.apify.com/v2/key-value-stores/…/records/0002-2dd8f7c8.vtt",
  "txtUrl": "https://api.apify.com/v2/key-value-stores/…/records/0002-2dd8f7c8.txt"
}
```

### Pricing

- **Built-in Whisper:** $0.01 per audio minute. A 30-minute episode costs $0.30.
- **Your own API key:** $0.002 per audio minute, plus whatever your provider charges (Groq is a few cents per hour of audio).

Each 10-minute segment is billed by the started minute. Files that fail to download, links without audio, and minutes beyond *Max minutes per file* are free.

### Notes

- **Supported links:** YouTube, TikTok, Spotify and other platform links aren't supported. Use direct media file links or a podcast's RSS feed.
- **Accuracy:** the built-in *base* model is accurate on clear speech. Choose *small* for harder audio, or your own Groq key for large-model quality at the best speed.
- **Speed:** the built-in *base* model transcribes about 6 minutes of audio per minute of run time, and *small* about 3. Silence and music are skipped automatically.
- **Rights:** only transcribe media you have the right to process.

### Use with AI agents (MCP)

This Actor works as a tool for AI assistants such as Claude, ChatGPT and Cursor, through [Apify's MCP server](https://mcp.apify.com).

1. Add the server to your MCP client, with this Actor selected:

```json
{
  "mcpServers": {
    "apify": { "url": "https://mcp.apify.com?tools=squarish_altruism/transcribe" }
  }
}
```

In Claude Code: `claude mcp add apify "https://mcp.apify.com?tools=squarish_altruism/transcribe" -t http`

2. Sign in with your Apify account when your client asks. If it can't use OAuth, send your Apify API token in an `Authorization: Bearer` header.
3. Ask in plain language, for example: *"Transcribe the latest episode of this podcast feed and give me five key points: https://feeds.npr.org/510289/podcast.xml"*

Runs started by an agent are billed to your Apify account at the same prices as above.

# Actor input Schema

## `sources` (type: `array`):

Direct audio/video file URLs (MP3, M4A, WAV, OGG, OPUS, FLAC, MP4, WEBM, MOV…), podcast RSS feed URLs, or Apple Podcasts show links. YouTube and social-media links are not supported.

## `engine` (type: `string`):

Built-in: open-source Whisper runs inside this Actor (no account needed). Your own API key: uses any OpenAI-compatible transcription API (Groq, OpenAI…) billed to your key — faster, large-model quality, lower Actor price.

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

Larger models are more accurate but slower. Base is a good default.

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

Spoken language as an ISO code (en, de, fr, es, …) or auto to detect. Setting it improves accuracy.

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

Transcribe in the original language, or translate the speech into English.

## `maxEpisodesPerFeed` (type: `integer`):

Newest episodes to transcribe from each podcast feed.

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

Only the first N minutes of each file are transcribed (and paid for).

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

Add start/end times for each phrase.

## `saveSubtitles` (type: `boolean`):

Save subtitle and text files and add download links.

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

Larger downloads are skipped (not charged).

## `apiKey` (type: `string`):

Your Groq or OpenAI-compatible API key. Stored encrypted; only used to call the API below.

## `apiBaseUrl` (type: `string`):

OpenAI-compatible base URL. Groq: https://api.groq.com/openai/v1 — OpenAI: https://api.openai.com/v1

## `apiModel` (type: `string`):

Groq: whisper-large-v3-turbo or whisper-large-v3. OpenAI: whisper-1.

## Actor input object example

```json
{
  "sources": [
    "https://feeds.npr.org/510289/podcast.xml"
  ],
  "engine": "local",
  "model": "whisper-base",
  "language": "auto",
  "task": "transcribe",
  "maxEpisodesPerFeed": 3,
  "maxMinutesPerFile": 180,
  "includeSegments": true,
  "saveSubtitles": true,
  "maxFileSizeMb": 500,
  "apiBaseUrl": "https://api.groq.com/openai/v1",
  "apiModel": "whisper-large-v3-turbo"
}
```

# Actor output Schema

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

One item per audio or video file.

## `files` (type: `string`):

Files saved to the run's default key-value store.

# 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 = {
    "sources": [
        "https://feeds.npr.org/510289/podcast.xml"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("squarish_altruism/transcribe").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 = { "sources": ["https://feeds.npr.org/510289/podcast.xml"] }

# Run the Actor and wait for it to finish
run = client.actor("squarish_altruism/transcribe").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 '{
  "sources": [
    "https://feeds.npr.org/510289/podcast.xml"
  ]
}' |
apify call squarish_altruism/transcribe --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,squarish_altruism/transcribe"
        }
    }
}
```

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/4RMHXT3L8rjKk3XJM/builds/7gdgzBHTY0li6M8Ar/openapi.json
