# Audio & Podcast RSS Transcriber — Whisper JSON, SRT & RAG (`structmint/audio-podcast-transcriber`) Actor

Transcribe public audio/video URLs, voice notes, meetings, and Podcast RSS feeds locally with Whisper INT8 into timestamped JSON, SRT/VTT captions, Markdown, and RAG chunks.

- **URL**: https://apify.com/structmint/audio-podcast-transcriber.md
- **Developed by:** [StructMint](https://apify.com/structmint) (community)
- **Categories:** AI, Videos, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 audio minutes transcribed (tiny/base)

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/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 RSS & Voice-Note Transcriber (Whisper JSON/SRT/RAG)

Transcribe **public audio/video URLs**, **voice notes**, **meetings**, **webinars**, and **Podcast RSS 2.0 / Atom feeds** into clean timestamped **JSON**, **SRT**, **WebVTT**, **Markdown**, and **token-bounded RAG chunks** — 100% self-contained on local CTranslate2 INT8 CPU with **no external API keys** and **pre-baked Whisper models** for `< 2s` container startup.

### Supported Inputs & Media Formats

- **Direct Audio & Video URLs (`mediaUrls`):** `MP3`, `MP4`, `WAV`, `M4A`, `OGG` / `Opus` voice notes, `WebM`, `FLAC`, and `AAC` (automatically normalized via FFmpeg to 16 kHz mono PCM).
- **Podcast Feeds (`rssFeedUrls`):** Standard **Podcast RSS 2.0** (`<enclosure>`) and **Atom** (`<link rel="enclosure">`) feeds, parsed safely with XML entity protection and sorted newest-first.
- **Voice Activity Detection:** Built-in Silero VAD strips dead silence before decoding to prevent Whisper repetition hallucinations and accelerate CPU throughput.

### Key Features

- **Instant Local Execution:** Both `tiny` and `base` INT8 Whisper models are pre-baked inside the Docker image (`/app/models`), removing model download wait times on every run.
- **Multi-Format Exports:** Every transcribed item can emit plain `text`, timestamped `segments[]`, SubRip `srt`, WebVTT `vtt`, paragraph-grouped `markdown` with `[MM:SS]` headings, and overlapping `ragChunks[]`.
- **Downloadable Caption Artifacts:** When `saveFilesToKvs: true`, ready-to-download `.srt`, `.vtt`, and `.md` files are saved in the run's default Key-Value Store and linked under `kvsArtifacts`.
- **Zero-Duplicate Podcast Watch Mode:** Enable `watchMode: true` and `onlyNew: true` on scheduled RSS runs to track processed episode GUIDs, canonical URLs, and SHA-256 content hashes in a persistent user-scoped Named Key-Value Store (`structmint-audio-watch-v1`). Already-transcribed episodes are skipped at **$0** transcription cost.
- **Strict Network & Billing Safety:** Public HTTP/HTTPS URLs only; private, loopback, link-local, CGNAT, and cloud metadata IPs are blocked on the initial URL and every redirect hop. Unreachable, oversized, undecodable, or completely silent (`0` spoken words) files are **never billed** for transcription minutes.

### Pricing (Pay-Per-Event)

Transparent per-minute pricing with zero monthly subscriptions and zero external API markups:

| Event | Description | FREE | BRONZE | SILVER | GOLD | PLATINUM | DIAMOND |
| :--- | :--- | ---: | ---: | ---: | ---: | ---: | ---: |
| `apify-actor-start` | One-time run initialization | `$0.00005` | `$0.00005` | `$0.00005` | `$0.00005` | `$0.00005` | `$0.00005` |
| `audio-minute-transcribed` | Per started audio minute (`tiny` or `base` model) | `$0.0140` | `$0.0130` | `$0.0120` | `$0.0100` | `$0.0100` | `$0.0100` |
| `audio-minute-hq` | Per started audio minute (`small` high-accuracy model) | `$0.0240` | `$0.0220` | `$0.0200` | `$0.0180` | `$0.0180` | `$0.0180` |
| `rag-pack-generated` | Per transcribed file when `includeRagChunks` or `saveFilesToKvs` is enabled | `$0.0100` | `$0.0090` | `$0.0085` | `$0.0080` | `$0.0080` | `$0.0080` |

- **Fair $0 guarantee:** Failed downloads, unsupported codecs, silent files with `0` recognized words, and already-processed Watch Mode episodes incur **zero** transcription or RAG-pack events.
- **Free-tier compute safeguard:** Non-paying accounts selecting the heavier `small` model are automatically capped at `10` minutes per file to keep compute predictable.

### Example Input

#### Direct Audio / Voice-Note URL

```json
{
  "mediaUrls": [
    "https://raw.githubusercontent.com/stqnbapxao-source/structmint-b2b-automation-kit/main/samples/sample-podcast-clip.mp3"
  ],
  "modelSize": "base",
  "includeSrt": true,
  "includeVtt": true,
  "includeMarkdown": true,
  "includeRagChunks": true,
  "saveFilesToKvs": true,
  "watchMode": false
}
```

#### Scheduled Podcast RSS Watch Mode

```json
{
  "rssFeedUrls": [
    "https://raw.githubusercontent.com/stqnbapxao-source/structmint-b2b-automation-kit/main/samples/sample-podcast-feed.xml"
  ],
  "maxEpisodesPerFeed": 5,
  "modelSize": "base",
  "includeSrt": true,
  "includeVtt": true,
  "includeMarkdown": true,
  "includeRagChunks": true,
  "saveFilesToKvs": true,
  "watchMode": true,
  "onlyNew": true,
  "watchStateKey": "weekly-podcast-briefings"
}
```

### Example Output Item (Abbreviated)

```json
{
  "itemId": "7a4e1c9d8b2f0e11",
  "status": "transcribed",
  "sourceType": "podcast_rss",
  "sourceUrl": "https://raw.githubusercontent.com/stqnbapxao-source/structmint-b2b-automation-kit/main/samples/sample-podcast-clip.mp3",
  "feedUrl": "https://raw.githubusercontent.com/stqnbapxao-source/structmint-b2b-automation-kit/main/samples/sample-podcast-feed.xml",
  "showTitle": "StructMint Automation Briefing Sample Feed",
  "title": "Episode 1: Benchmarking Structured Audio Transcription Pipelines",
  "episodeGuid": "structmint-sample-ep-001",
  "durationSec": 11.91,
  "billedMinutes": 1,
  "modelSize": "base",
  "detectedLanguage": "en",
  "languageProbability": 0.99,
  "wordCount": 29,
  "segmentCount": 2,
  "text": "Welcome to StructMint audio automation...",
  "segments": [
    {
      "index": 1,
      "startSec": 0.0,
      "endSec": 5.4,
      "text": "Welcome to StructMint audio automation..."
    }
  ],
  "srt": "1\n00:00:00,000 --> 00:00:05,400\nWelcome to StructMint audio automation...\n",
  "vtt": "WEBVTT\n\n00:00:00.000 --> 00:00:05.400\nWelcome to StructMint audio automation...\n",
  "ragChunks": [
    {
      "chunkIndex": 0,
      "startSec": 0.0,
      "endSec": 11.91,
      "estimatedTokens": 38,
      "text": "Welcome to StructMint audio automation...",
      "sourceUrl": "https://raw.githubusercontent.com/stqnbapxao-source/structmint-b2b-automation-kit/main/samples/sample-podcast-clip.mp3",
      "title": "Episode 1: Benchmarking Structured Audio Transcription Pipelines"
    }
  ],
  "kvsArtifacts": {
    "srtKey": "7a4e1c9d8b2f0e11.srt",
    "vttKey": "7a4e1c9d8b2f0e11.vtt",
    "markdownKey": "7a4e1c9d8b2f0e11.md"
  },
  "billedEvents": {
    "audio-minute-transcribed": 1,
    "rag-pack-generated": 1
  }
}
```

### Integrations: n8n, Make & AI Agents (MCP)

#### n8n / Make Synchronous Webhook

Call the synchronous dataset endpoint from an **n8n HTTP Request** node or **Make HTTP** module with your Apify Bearer token in credentials:

```text
POST https://api.apify.com/v2/actors/structmint~audio-podcast-transcriber/run-sync-get-dataset-items?maxTotalChargeUsd=0.25
```

When running on a schedule with `watchMode: true` and `onlyNew: true`, runs with no newly published episodes return an empty array `[]`, allowing downstream filter nodes to exit cleanly before calling vector ingestion or notification steps.

#### Model Context Protocol (MCP)

Connect `https://mcp.apify.com` in your AI agent client and add `structmint/audio-podcast-transcriber` to let agents transcribe podcast RSS feeds, voice notes, meetings, and webinars directly into structured JSON and RAG chunks.

# Actor input Schema

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

List of public HTTP/HTTPS URLs pointing directly to audio or video files (MP3, MP4, WAV, M4A, OGG/Opus voice notes, WebM, FLAC, AAC) such as podcasts, meetings, webinars, or voice memos. Private, loopback, and metadata IP addresses are blocked across initial requests and redirects.

## `rssFeedUrls` (type: `array`):

Optional list of public Podcast RSS 2.0 or Atom feed URLs. The Actor extracts episode metadata and audio enclosures, sorts episodes newest-first, and transcribes up to `maxEpisodesPerFeed` episodes per feed. Combine with `watchMode=true` and `onlyNew=true` for zero-duplicate scheduled monitoring.

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

Maximum number of newest episodes to process from each RSS or Atom feed URL (1 to 50).

## `modelSize` (type: `string`):

Local CTranslate2 INT8 Whisper model used for transcription. `tiny` and `base` are pre-baked into the container image for instant startup (<2s) and billed at the standard `audio-minute-transcribed` rate. `small` provides higher multilingual accuracy and is billed at the `audio-minute-hq` rate.

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

Optional two-letter ISO-639-1 language code (e.g. `en`, `es`, `de`, `fr`, `pt`, `ja`, `vi`). Leave empty for automatic language detection.

## `initialPrompt` (type: `string`):

Optional hints listing brand names, speaker names, acronyms, or domain terminology to guide Whisper spelling and punctuation (for example: `StructMint, CTranslate2, WebVTT, PostgreSQL`).

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

Include formatted SubRip (`.srt`) subtitle text directly in each dataset output item.

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

Include formatted WebVTT (`.vtt`) subtitle text directly in each dataset output item.

## `includeMarkdown` (type: `boolean`):

Include clean paragraph-grouped Markdown with `[MM:SS]` timestamp headings suitable for docs, summaries, and knowledge bases.

## `includeRagChunks` (type: `boolean`):

Split each transcript into overlapping, token-bounded chunks (`chunkIndex`, `startSec`, `endSec`, `estimatedTokens`, `text`, `sourceUrl`, `title`) ready for vector databases and AI agent pipelines. Enables the `rag-pack-generated` add-on event per transcribed file.

## `ragMaxTokens` (type: `integer`):

Soft estimated token ceiling per generated RAG chunk (50 to 2000) when `includeRagChunks` is enabled.

## `saveFilesToKvs` (type: `boolean`):

Persist downloadable `.srt`, `.vtt`, and `.md` files into the run's default Key-Value Store and expose direct keys/URLs in `kvsArtifacts`. Enables the `rag-pack-generated` add-on event per transcribed file.

## `watchMode` (type: `boolean`):

Persist processed episode GUIDs, canonical URLs, and SHA-256 content fingerprints in a user-scoped Named Key-Value Store (`structmint-audio-watch-v1`) across scheduled runs.

## `onlyNew` (type: `boolean`):

Used when `watchMode=true`. Skips episodes and audio files already recorded in watch history at $0 transcription cost and emits no duplicate dataset items.

## `watchStateKey` (type: `string`):

Stable namespace key isolating processed episode history for a specific scheduled feed or workflow (for example: `daily-podcast-briefings`).

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

Maximum allowed remote download size per audio or video file in megabytes (1 to 500). Oversized files are rejected safely at $0 transcription cost.

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

Maximum allowed audio length per file in minutes (1 to 180). Files exceeding this duration are rejected safely before decoding at $0 transcription cost. On free-tier accounts using the `small` model, duration is automatically capped at 10 minutes per file.

## `vadFilter` (type: `boolean`):

Apply Silero Voice Activity Detection to remove non-speech silence before decoding, preventing Whisper repetition hallucinations and speeding up CPU transcription.

## Actor input object example

```json
{
  "mediaUrls": [
    "https://raw.githubusercontent.com/stqnbapxao-source/structmint-b2b-automation-kit/main/samples/sample-podcast-clip.mp3"
  ],
  "maxEpisodesPerFeed": 5,
  "modelSize": "base",
  "language": "",
  "initialPrompt": "",
  "includeSrt": true,
  "includeVtt": true,
  "includeMarkdown": true,
  "includeRagChunks": true,
  "ragMaxTokens": 300,
  "saveFilesToKvs": true,
  "watchMode": false,
  "onlyNew": true,
  "watchStateKey": "default-audio-watch",
  "maxFileSizeMb": 150,
  "maxDurationMinutes": 60,
  "vadFilter": true
}
```

# Actor output Schema

## `dataset` (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 = {
    "mediaUrls": [
        "https://raw.githubusercontent.com/stqnbapxao-source/structmint-b2b-automation-kit/main/samples/sample-podcast-clip.mp3"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("structmint/audio-podcast-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://raw.githubusercontent.com/stqnbapxao-source/structmint-b2b-automation-kit/main/samples/sample-podcast-clip.mp3"] }

# Run the Actor and wait for it to finish
run = client.actor("structmint/audio-podcast-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 '{
  "mediaUrls": [
    "https://raw.githubusercontent.com/stqnbapxao-source/structmint-b2b-automation-kit/main/samples/sample-podcast-clip.mp3"
  ]
}' |
apify call structmint/audio-podcast-transcriber --silent --output-dataset

```

## MCP server setup

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