# Audio & Video Transcriber - Speech to Text, SRT & VTT Subtitles (`karimel/audio-video-transcriber`) Actor

Transcribe audio and video files to text with timestamps. Get the transcript plus ready-made SRT, VTT and TXT files. 100 languages, long files supported, pay per audio minute.

- **URL**: https://apify.com/karimel/audio-video-transcriber.md
- **Developed by:** [Karim EL ALLAME](https://apify.com/karimel) (community)
- **Categories:** AI, Videos, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 92.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.50 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Transcriber — transcripts and subtitles from any media file

Turn audio and video files, or whole podcast feeds, into text. Give the Actor direct links to your files (or a podcast's RSS or Apple Podcasts link) and get back, for each one:

- the full transcript, split into readable paragraphs
- timed segments (start, end, text) for search, clipping or captions
- ready-to-use **SRT**, **VTT** and **TXT** files
- the detected language

You pay per minute of audio. Files that fail are not charged.

### What it handles

- **Formats:** MP3, WAV, M4A, AAC, FLAC, OGG, MP4, MOV, MKV, WEBM and anything else FFmpeg can read. Video files are fine; only the audio track is used.
- **Length:** long recordings are split at natural pauses and stitched back together, so multi-hour files work and words are not cut in half.
- **Languages:** around 100 languages, detected automatically. You can also set the language yourself.
- **Word-level timestamps:** optional start and end time for every word.

### Input

```json
{
  "urls": [
    "https://www.archive.org/download/gettysburg_johng_librivox/gettysburg_address_64kb.mp3"
  ]
}
```

To transcribe a podcast, give its RSS feed or its Apple Podcasts link instead; the latest episodes are picked up automatically:

```json
{
  "podcastFeeds": ["https://podcasts.apple.com/us/podcast/the-daily/id1200361736"],
  "maxEpisodesPerFeed": 3
}
```

Each result then also carries `podcast`, `episodeTitle` and `publishedAt`.

Links must point directly at a media file. A link to a web page that merely contains a player will be reported as an error. To transcribe a file from your computer, upload it to any storage that gives you a direct link (an Apify key-value store works) and paste that link.

Options:

| Field | What it does |
|---|---|
| `podcastFeeds` | Podcast RSS feeds or Apple Podcasts links to transcribe. |
| `maxEpisodesPerFeed` | How many recent episodes per podcast (default 1). |
| `episodeTitleContains` | Only episodes whose title contains this text. |
| `language` | Force the spoken language (for example `fr`). Default: automatic. |
| `subtitleFiles` | Create SRT, VTT and TXT files (on by default). |
| `wordTimestamps` | Add timestamps for every word. |
| `maxMinutesPerFile` | Only transcribe the first N minutes of each file. |

### Output

One item per file:

```json
{
  "url": "https://www.archive.org/download/gettysburg_johng_librivox/gettysburg_address_64kb.mp3",
  "fileName": "gettysburg_address_64kb.mp3",
  "status": "succeeded",
  "language": "en",
  "durationSeconds": 157.9,
  "transcribedSeconds": 157.9,
  "truncated": false,
  "text": "The Gettysburg Address by Abraham Lincoln November 19, 1863 Four score and seven years ago our fathers brought forth on this continent a new nation...",
  "segments": [
    { "start": 23.72, "end": 31.38, "text": "Four score and seven years ago our fathers brought forth on this continent a new nation," }
  ],
  "srtUrl": "https://api.apify.com/v2/key-value-stores/.../records/001-gettysburg_address_64kb.srt",
  "vttUrl": "https://api.apify.com/v2/key-value-stores/.../records/001-gettysburg_address_64kb.vtt",
  "txtUrl": "https://api.apify.com/v2/key-value-stores/.../records/001-gettysburg_address_64kb.txt",
  "billedMinutes": 3
}
```

A file that could not be processed comes back with `"status": "failed"` and a plain-language `error`, and is not billed.

### Pricing

You are charged per started minute of audio that was transcribed: a 2 min 38 s file counts as 3 minutes. Set a maximum cost per run in the run options; the Actor stops (or shortens the last file and marks it `truncated`) before going over.

### How it works, and where your audio goes

The Actor downloads each file, converts the audio with FFmpeg and sends it to Groq's hosted Whisper large-v3 models for recognition. That means **your audio is processed by a third party (Groq)**; do not submit recordings you are not allowed to share with a processor. Downloaded files are deleted from the Actor's disk as soon as each file is done. Transcripts stay in your own Apify storage.

### Limits

- Files up to 2 GB.
- Speaker labels (who said what) and translation are not provided.
- Accuracy depends on audio quality; heavy background music, crosstalk and very strong accents reduce it.
- Like every Whisper-based service, it can occasionally leave out a short passage, most often boilerplate intros, music or long silences.
- Links to streaming platforms' watch pages are not supported; use direct file links.

### Use it from code

```bash
curl -X POST "https://api.apify.com/v2/acts/karimel~audio-video-transcriber/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://example.com/episode.mp3"]}'
```

# Actor input Schema

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

Direct links to audio or video files (MP3, WAV, M4A, MP4, MOV, WEBM, OGG, FLAC and anything else FFmpeg reads). One result per file. Leave empty if you only use podcast feeds.

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

Podcast RSS feed URLs or Apple Podcasts show links. The most recent episodes of each show are transcribed.

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

How many of the most recent episodes to transcribe for each podcast feed.

## `episodeTitleContains` (type: `string`):

Optional. Transcribe only episodes with this text in the title.

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

Leave on automatic unless detection picks the wrong language.

## `subtitleFiles` (type: `boolean`):

Saves ready-to-use subtitle and text files and returns their links.

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

Adds start and end times for every word. Slower.

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

Only transcribe the first N minutes of each file. Leave empty for the whole file.

## Actor input object example

```json
{
  "urls": [
    "https://www.archive.org/download/gettysburg_johng_librivox/gettysburg_address_64kb.mp3"
  ],
  "maxEpisodesPerFeed": 1,
  "language": "",
  "subtitleFiles": true,
  "wordTimestamps": false
}
```

# Actor output Schema

## `transcripts` (type: `string`):

One item per file: status, language, full text, timed segments and links to SRT, VTT and TXT files.

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

SRT, VTT and TXT files for every transcribed file.

## `summary` (type: `string`):

Files processed and minutes billed.

# 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://www.archive.org/download/gettysburg_johng_librivox/gettysburg_address_64kb.mp3"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("karimel/audio-video-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 = { "urls": ["https://www.archive.org/download/gettysburg_johng_librivox/gettysburg_address_64kb.mp3"] }

# Run the Actor and wait for it to finish
run = client.actor("karimel/audio-video-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 '{
  "urls": [
    "https://www.archive.org/download/gettysburg_johng_librivox/gettysburg_address_64kb.mp3"
  ]
}' |
apify call karimel/audio-video-transcriber --silent --output-dataset

```

## MCP server setup

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