# Audio to Text & Video to Text - Whisper Transcriber, SRT & VTT (`practical_ophthalmologist_iuq/audio-to-text`) Actor

Speech to text transcription for audio and video (mp3, m4a, wav, mp4) and podcast RSS feeds, with Whisper. Speaker labels (diarization), timestamps, SRT and VTT subtitles, 28 languages. No API key. Words the model invented over silence are flagged, not hidden. Pay per minute; failed files are free.

- **URL**: https://apify.com/practical_ophthalmologist_iuq/audio-to-text.md
- **Developed by:** [Scrappeer](https://apify.com/practical_ophthalmologist_iuq) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% 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 to Text — Speech to Text Transcriber with Whisper

Turn audio and video files, or whole podcast feeds, into text, timestamped segments, **SRT** and **WebVTT** subtitles — optionally with **speaker labels** (who spoke when). Runs OpenAI's Whisper (via faster-whisper) inside the Actor, so there is **no API key** to bring and nothing is sent to a third-party AI service.

The one thing it does differently: **it tells you which parts of the transcript to doubt.**

### Why that matters

Whisper is excellent, and it has a well-known habit. Over silence, music, hold tones or background noise it sometimes writes words nobody said — very often *"Thank you for watching."* or *"Please subscribe."*, phrases it saw thousands of times in its training subtitles. Most transcription tools pass that text straight through. The transcript reads cleanly and is quietly wrong.

This Actor keeps every segment, scores it, and flags the doubtful ones:

```json
{
  "id": 14,
  "start": 312.4,
  "end": 315.0,
  "text": "Thank you for watching.",
  "noSpeechProb": 0.83,
  "avgLogprob": -0.94,
  "flagged": true,
  "flagReasons": [
    "probably silence or music - the words may be invented",
    "stock phrase Whisper tends to add over silence"
  ]
}
```

You get two versions of the text: `text` (everything the model produced) and `textWithoutFlagged` (the doubtful segments removed). Nothing is hidden and nothing is silently dropped — you decide.

### What you get per file

| Field | What it is |
|---|---|
| `text` | Full transcript |
| `textWithoutFlagged` | Transcript with doubtful segments left out |
| `language`, `languageProbability` | Detected (or chosen) language |
| `durationSeconds`, `transcribedSeconds`, `speechSeconds` | Length of the file, how much was transcribed, how much was actual speech |
| `segments` | Start/end time, text, confidence, no-speech probability, flags |
| `flaggedSegmentCount`, `flaggedSegments` | Which segments to double-check |
| `srt`, `vtt` | Ready-to-use subtitle files |
| `textWithSpeakers`, `speakers`, `speakerCount` | With speaker labels on: the transcript as *Speaker 1: … / Speaker 2: …*, and how long each person talked |
| `minutesBilled` | Exactly what this file cost you |
| `hint` | Plain-language notes: truncation, no speech found, flagged segments |

Optional **word-level timestamps** for karaoke-style captions, search indexing or precise editing.

### Input

- **Audio or video URLs** — direct links to mp3, m4a, wav, ogg, flac, aac, opus, mp4, mov, webm, mkv… anything ffmpeg can read. **Google Drive and Dropbox share links work as they are** — share the file as *Anyone with the link* and paste the link; it is converted to the download automatically.
- **Podcast RSS feeds** — paste the feed URL; the newest episodes are transcribed (set how many).
- **Language** — auto-detect, or pick one of 28 languages. Setting it helps on short or noisy clips.
- **Translate to English** — get English text and English SRT/VTT for speech in any supported language, in the same pass.
- **Model** — `tiny`, `base` (default) or `small`. Small is noticeably more accurate on accents, noise, old recordings and non-English speech, and uses about 8x the compute, so it has its own per-minute rate.
- **Max minutes per file** — a safety cap (default 120). You only pay for what is transcribed. `0` = whole file.
- **Strict doubt flagging** — flags more aggressively, for legal, medical or research transcripts where one wrong word matters.
- **Speaker labels** — label each segment *Speaker 1, Speaker 2…*. Optionally tell it how many people talk.

Not supported on purpose: YouTube, TikTok, Instagram and similar pages. Give the Actor a direct media file or a podcast feed.

### Speaker labels (who spoke when)

Turn on **Speaker labels** and every segment gets a `speaker`, words get one too when word timestamps are on, SRT lines start with the speaker and WebVTT uses the standard `<v Speaker 1>` voice tag. You also get `textWithSpeakers`:

```text
Speaker 1: Welcome to the official podcast of the NASA Johnson Space Center...
Speaker 3: Yeah, absolutely. So, I grew up in Boulder, Colorado...
```

It runs inside the Actor (voice prints from an open speaker-recognition model, then clustering), so there is still **no API key and no extra service**. Speakers are numbered in the order they first talk; the Actor cannot know their names.

How well it works, honestly: in our tests it separated a podcast host from her guest, and JFK from the Apollo 11 launch commentator in a 20-second clip. It is weaker when voices sound alike or people talk over each other, and a speaker change in the middle of a sentence can land a few words late. If you know how many people are in the recording, set **Number of speakers** — it helps most in exactly those cases.

Speaker labels cost nothing extra; you pay the same per-minute rate.

### Pricing

Pay per **minute of audio transcribed**, rounded up per file.

| Model | Event | Why |
|---|---|---|
| `tiny`, `base` | Audio minute | Fast; good on clear speech |
| `small` | Audio minute (accurate) | About 8x the compute; better on hard audio |

The exact prices are on the Pricing tab.

- **Not charged** for links that fail to download, files that are not audio, or files with no speech in them.
- Truncated files are charged only for the part that was transcribed, and the output says so.
- Your run's maximum charge is respected: the Actor stops transcribing before it would exceed it.

### Languages

Auto-detected, or set explicitly: **English, Spanish, French, German, Italian, Portuguese, Dutch, Polish, Russian, Ukrainian, Turkish, Arabic, Hindi, Japanese, Korean, Chinese, Indonesian, Vietnamese, Thai, Swedish, Danish, Norwegian, Finnish, Czech, Greek, Hebrew, Romanian and Hungarian.**

For non-English speech, use the `small` model. In our tests on public-domain readings, `base` turned La Fontaine's *"La Cigale et la Fourmi"* into *"La sigale est la fourmée"*; `small` got *"La Cigale"* and the narrator's name (Jean Lambert) right, though not every word. Neither model is perfect on old recordings — that is what the doubt flags are for. When `base` is used on non-English audio, the output includes a hint saying so.

### Translate to English

Turn on **Translate to English** and Spanish, French, German, Japanese… speech comes out as English text and English subtitles, with the same timestamps and doubt flags. `language` in the output still tells you what was spoken, and `task` says `translate`. This is Whisper's own speech translation, run locally — no translation API, no extra charge. Use the `small` model when the translation will be read by others; `base` gives the gist.

What to expect, from a real run: a Spanish reading of an Aesop fable (LibriVox, public domain) came out with `small` as *"Hey friend, we are the ones who carry the load. And are you the one who complains?"* — clear English — while a few rare words were left half-translated (*"the Boeys and the Eje of the Carreth"* for *the oxen and the cart's axle*). Good for understanding and search; have a person check anything you publish.

### Use cases

- **Podcast transcripts** for show notes, SEO pages and search
- **Subtitles** (SRT/VTT) for videos and courses — including English subtitles for foreign-language video
- **Meeting and interview recordings** to searchable text, with who said what
- **Voice notes and call recordings** to text for CRMs and support tools
- **Research interviews** — with strict flagging, so a made-up sentence never slips into your data
- **RAG and AI pipelines** — timestamped segments are ready for chunking

### Use from code

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("practical_ophthalmologist_iuq/audio-to-text").call(run_input={
    "mediaUrls": ["https://example.com/interview.mp3"],
    "language": "auto",
    "includeSrt": True,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["text"])
    print(item["flaggedSegmentCount"], "segments to double-check")
```

Also works from **n8n, Make, Zapier**, schedules, and as a tool for AI agents over **MCP**.

### Tips

- **Pick `small` for non-English, noisy or old recordings.** It costs more per minute, but on hard audio the difference is real: on a 1960s NASA clip `base` heard *"disdicate"* where `small` got *"in this decade"*.
- **Set the language** if you know it — auto-detection on the first seconds of a noisy clip can guess wrong.
- **Check `flaggedSegments` first.** In clean speech it is usually empty; when it is not, those are the only places worth listening to again.

### Limits

- Speaker labels number the voices (Speaker 1, 2…); they do not identify who the people are, and overlapping speech gets one label.
- Very long files take time: roughly minutes of processing per hour of audio with `base`, more with `small`.
- Accuracy depends on the recording. Clear speech is excellent; heavy music, crosstalk and phone-quality audio are harder, and that is exactly where the flags help.

### Related Actors

Same idea — keep the structure, flag what could not be read — for documents:

- [PDF Text Extractor & OCR](https://apify.com/practical_ophthalmologist_iuq/scanned-pdf-ocr) — scanned or digital PDFs to text and tables
- [PDF Table Extractor](https://apify.com/practical_ophthalmologist_iuq/pdf-table-extractor) — PDF tables to CSV, Excel, JSON and Markdown

# Actor input Schema

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

Links to audio or video files: mp3, m4a, wav, ogg, flac, mp4, webm, mov and anything else ffmpeg can read. Google Drive and Dropbox share links work too (share as 'Anyone with the link'). The link must lead to the file, not to a web page about it.

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

Podcast RSS URLs. The newest episodes are transcribed, up to 'Episodes per feed'.

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

How many of the newest episodes to take from each feed.

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

Leave on auto-detect unless the language is known; setting it helps short or noisy clips.

## `translateToEnglish` (type: `boolean`):

Get English text and English subtitles for speech in any supported language (Whisper's built-in speech translation). 'Language' still means the language that is spoken. Use the 'small' model for translations you will publish.

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

'base' is fast and good for clear speech. 'small' is noticeably more accurate on accents, noise, old recordings and non-English audio, but uses about 8x the compute, so it is billed at the separate 'accurate' per-minute rate.

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

Stop after this many minutes of each file. You are only charged for what is transcribed. 0 = the whole file.

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

Skip files larger than this.

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

Each segment with start/end time, confidence and any doubt flags.

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

SubRip subtitles, ready for YouTube, video editors and players.

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

WebVTT subtitles for HTML5 video players.

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

Start and end time of every word. Slower.

## `strictFlagging` (type: `boolean`):

Flag more segments as doubtful. Useful for legal, medical or research transcripts where a wrong word matters more than a noisy flag.

## `speakerLabels` (type: `boolean`):

Label each segment Speaker 1, Speaker 2... (speaker diarization). Adds 'speaker' to segments, 'textWithSpeakers', and speaker names in SRT/VTT. Runs locally, no extra API key. Good for interviews, meetings and podcasts.

## `numberOfSpeakers` (type: `integer`):

If you know how many people talk, set it - it helps when voices sound alike. 0 = detect automatically.

## Actor input object example

```json
{
  "mediaUrls": [
    "https://www.nasa.gov/wp-content/uploads/2015/01/590325main_ringtone_kennedy_WeChoose.mp3"
  ],
  "maxEpisodesPerFeed": 1,
  "language": "auto",
  "translateToEnglish": false,
  "model": "base",
  "maxMinutesPerFile": 120,
  "maxFileSizeMb": 500,
  "includeSegments": true,
  "includeSrt": true,
  "includeVtt": false,
  "wordTimestamps": false,
  "strictFlagging": false,
  "speakerLabels": true,
  "numberOfSpeakers": 0
}
```

# Actor output Schema

## `results` (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://www.nasa.gov/wp-content/uploads/2015/01/590325main_ringtone_kennedy_WeChoose.mp3"
    ],
    "speakerLabels": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("practical_ophthalmologist_iuq/audio-to-text").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://www.nasa.gov/wp-content/uploads/2015/01/590325main_ringtone_kennedy_WeChoose.mp3"],
    "speakerLabels": True,
}

# Run the Actor and wait for it to finish
run = client.actor("practical_ophthalmologist_iuq/audio-to-text").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://www.nasa.gov/wp-content/uploads/2015/01/590325main_ringtone_kennedy_WeChoose.mp3"
  ],
  "speakerLabels": true
}' |
apify call practical_ophthalmologist_iuq/audio-to-text --silent --output-dataset

```

## MCP server setup

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

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/7R2zSu4G5lfBrbiSQ/builds/7cIbn4ocdLeCKfymL/openapi.json
