# Audio & Podcast Transcription: Timestamps, SRT and AI Chunks (`renzxlp/audio-transcription`) Actor

Transcribe audio and video files or the latest episodes of any podcast feed with Whisper: full text, timestamped segments, SRT and VTT subtitles, language detection and chunks ready for RAG. Pay only per minute of audio.

- **URL**: https://apify.com/renzxlp/audio-transcription.md
- **Developed by:** [Jhair](https://apify.com/renzxlp) (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 $10.00 / 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.

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 & Podcast Transcription: Timestamps, SRT and AI Chunks

Turn audio and video into text you can search, cite, and feed to AI. Give the actor file links or podcast feeds and get back the full transcript, timestamped segments, SRT and VTT subtitles, the detected language, and chunks ready for a vector database.

Transcription runs inside the actor with OpenAI's open Whisper model, so there are no API keys to manage and your audio isn't sent to another service. You pay only for the minutes that were transcribed.

### What you get

One item per file. For example, the first minute of President Kennedy's 1962 Rice University speech (public domain, Wikimedia Commons):

| Field | Example |
|---|---|
| `language`, `languageProbability` | en, 0.973 |
| `durationSeconds`, `sourceDurationSeconds`, `truncated` | 60, 1060.25, true (cut by `maxMinutesPerFile`) |
| `minutesCharged`, `wordCount` | 1, 123 |
| `text` | The whole transcript |
| `segments` | `[{"start": 11.53, "end": 20.57, "text": "Miller, Mr. Webb, Mr. Bell, ..."}, ...]` |
| `srt`, `vtt` | Ready-to-use subtitle files |
| `chunks` | Groups of segments with `start`, `end`, `text`, and `tokenEstimate`, for RAG |
| `title`, `feedTitle`, `publishedAt` | Filled in for podcast episodes |

### Input

```json
{
    "audioUrls": ["https://example.com/interview.mp3"],
    "podcastFeeds": ["https://example.com/podcast/feed.xml"],
    "episodesPerFeed": 3,
    "language": "",
    "model": "base",
    "maxMinutesPerFile": 120,
    "chunkSize": 500,
    "includeSubtitles": true
}
```

- **audioUrls**: direct links to MP3, M4A, WAV, OGG, FLAC, MP4, WEBM, and most other formats, up to 500 MB each.
- **podcastFeeds**: the actor reads each feed and transcribes its latest episodes.
- **language**: leave it empty to detect the language, or set it, for example `es`, for a small speedup.
- **model**: `base` for better accuracy, `tiny` for speed.
- **maxMinutesPerFile**: long files are cut here, and the item says so with `truncated`.

### Pricing

You pay per started minute of audio transcribed, plus a tiny fee when the run starts. If your maximum charge per run would be exceeded, the actor transcribes only the minutes it still covers and stops there. Failed downloads aren't charged.

### Good to know

- Whisper is accurate on clear speech, and names can come out slightly wrong. In the example, "President Pitzer" came out as "President Pippa".
- The actor reads robots.txt before downloading and skips anything a site disallows. Files must be public links. It doesn't download from YouTube or other platforms that forbid it.
- You're responsible for having the right to transcribe the audio you send.

# Actor input Schema

## `audioUrls` (type: `array`):

Direct public links to files: MP3, M4A, WAV, OGG, FLAC, MP4, WEBM and more. Up to 500 MB each.

## `podcastFeeds` (type: `array`):

Optional. The actor transcribes the latest episodes of each feed.

## `episodesPerFeed` (type: `integer`):

How many of the latest episodes to transcribe from each feed.

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

A code like en, es or pt. Leave it empty and the actor detects it.

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

Both models are already inside the actor, so runs start right away.

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

Longer files are cut here, and you only pay for what was transcribed.

## `chunkSize` (type: `integer`):

Approximate size of each transcript chunk for RAG, in tokens.

## `includeSubtitles` (type: `boolean`):

Add ready-to-use subtitle files to each item.

## Actor input object example

```json
{
  "audioUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/5/50/Jfk_rice_university_we_choose_to_go_to_the_moon.ogg"
  ],
  "episodesPerFeed": 1,
  "model": "base",
  "maxMinutesPerFile": 120,
  "chunkSize": 500,
  "includeSubtitles": true
}
```

# Actor output Schema

## `transcripts` (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 = {
    "audioUrls": [
        "https://upload.wikimedia.org/wikipedia/commons/5/50/Jfk_rice_university_we_choose_to_go_to_the_moon.ogg"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("renzxlp/audio-transcription").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 = { "audioUrls": ["https://upload.wikimedia.org/wikipedia/commons/5/50/Jfk_rice_university_we_choose_to_go_to_the_moon.ogg"] }

# Run the Actor and wait for it to finish
run = client.actor("renzxlp/audio-transcription").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 '{
  "audioUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/5/50/Jfk_rice_university_we_choose_to_go_to_the_moon.ogg"
  ]
}' |
apify call renzxlp/audio-transcription --silent --output-dataset

```

## MCP server setup

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

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/1t3mcyXux8cFCX31d/builds/kg1piSCM6ViebZnVo/openapi.json
