# Audio & Video Subtitles with Speaker Labels (`myagizm/video-subtitle-service`) Actor

Create timestamped SRT, WebVTT, TXT and JSON transcripts with consistent speaker labels. Add a soft-subtitled MP4 for video.

- **URL**: https://apify.com/myagizm/video-subtitle-service.md
- **Developed by:** [MYM](https://apify.com/myagizm) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 57.1% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 audio minute transcribeds

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/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 and Video Subtitles with Speaker Labels

Submit one audio or video file. Get timestamped subtitles with consistent speaker labels, plus an optional MP4 with a selectable subtitle track.

### Output

- SRT and WebVTT files
- Timestamped TXT and JSON segments
- Speaker labels such as `Speaker 1` and `Speaker 2`
- Automatic language detection, with an optional language hint
- Optional soft-subtitled MP4; optional burned-in subtitles

Speaker labels describe voice turns, not a person’s identity. Short interruptions and overlapping speech can be assigned imperfectly. Translation is not available.

### Input

Use one public HTTPS media URL. The file must contain audio, be no larger than 250 MiB, and be at most three hours long. A URL must lead to a downloadable media file; the Actor does not sign in to websites.

### Pricing

- Transcription and speaker labels: **$0.010 per started audio minute**.
- Burned-in subtitles: **$0.004 per started video minute** in addition to transcription.
- Soft-subtitled MP4, SRT, VTT, TXT, and JSON are included in the audio-minute event.
- Failed or empty transcriptions are not charged for audio minutes.

### Free-plan limit

Free-plan users may process up to 40 files per day with this Actor. Paid Apify plans are not limited by this quota. Only an explicit free-daily/no-identity quota signal finishes SUCCEEDED without a result charge; upstream 429/rate-limit failures remain FAILED.

### Privacy and retention

The dataset contains result metadata and expiring download links, not transcript text. SRT, VTT, TXT, JSON, and optional MP4 links are short links that expire after 24 hours. The Actor removes temporary copies and files after processing; direct-URL source files remain on their original host.

The media URL appears in the Apify run input under your account’s retention settings. Never put credentials or private tokens in a URL.

### 中文

## 带说话人标签的音视频字幕

提交一个音频或视频文件，即可获取带时间戳和说话人标签的字幕，也可选择生成带可切换字幕轨道的 MP4。

### 输出

- SRT 和 WebVTT 文件
- 带时间戳的 TXT 和 JSON 片段
- `Speaker 1`、`Speaker 2` 等说话人标签
- 自动检测语言，也可提供语言提示
- 可选软字幕 MP4，也可选择将字幕烧录到画面中

说话人标签代表语音轮次，不代表说话人的真实身份。短暂插话和多人重叠可能被误分。本版本不提供翻译。

### 输入

提交一个公开 HTTPS 媒体链接。文件必须包含音轨，大小不超过 250 MiB，时长不超过三小时。链接必须直接指向可下载的媒体文件；本 Actor 不会登录网站。

### 价格

- 转录与说话人标签：每个开始处理的音频分钟 **$0.010**。
- 烧录字幕：每个开始处理的视频分钟另收 **$0.004**。
- 软字幕 MP4、SRT、VTT、TXT 和 JSON 已包含在音频分钟费用中。
- 转录失败或结果为空时，不收取音频分钟费用。
- 免费套餐每天最多处理 40 个文件。只有明确的 free-daily/no-identity 配额信号才会以 SUCCEEDED 结束且不产生结果费用；上游 429/限速仍以 FAILED 结束，付费套餐不受此配额限制。

### 隐私与保留期限

数据集只保存结果信息和短时下载链接，不保存转录文本。SRT、VTT、TXT、JSON 和可选 MP4 均为短链接，24 小时后失效。处理后会删除临时副本与文件；直接链接的源文件仍由原站托管。

媒体 URL 会保存在 Apify 运行输入中，并遵循账户的保留设置。请勿在 URL 中放入凭据或私密令牌。

### Errors & billing

Input errors finish with status SUCCEEDED, no results and no charge; see the OUTPUT record for the reason.

### 错误与计费

输入错误会以 SUCCEEDED 状态结束，不返回结果且不收费；原因请查看 OUTPUT 记录。

# Actor input Schema

## `action` (type: `string`):

Process transcribes the media file at the public URL.

## `sourceUrl` (type: `string`):

HTTPS link to one public audio/video file. The URL is recorded in the Apify run input; do not use links that contain credentials or private tokens.

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

Use auto for detection or enter a language code such as en or tr.

## `numSpeakers` (type: `integer`):

Optional hint from 1 to 10. Leave empty to let the diarizer estimate the number of speakers.

## `includeSubtitledVideo` (type: `boolean`):

For video input, return an MP4 with a selectable soft subtitle stream. This is on by default and does not burn text into the picture.

## `burnIn` (type: `boolean`):

For video input, also render visible subtitles into every frame. Adds a separate hardsub-minute charge. Leave off for the faster, smaller soft-subtitle MP4.

## Actor input object example

```json
{
  "action": "process",
  "sourceUrl": "https://upload.wikimedia.org/wikipedia/commons/7/70/Namibia%27s_Deputy_Prime_Minister_Speaks_to_VOA.webm",
  "language": "auto",
  "includeSubtitledVideo": true,
  "burnIn": false
}
```

# Actor output Schema

## `deliverables` (type: `string`):

Successful transcriptions and their expiring file links.

## `fullJson` (type: `string`):

All result records in JSON format.

# 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 = {
    "action": "process",
    "sourceUrl": "https://upload.wikimedia.org/wikipedia/commons/7/70/Namibia%27s_Deputy_Prime_Minister_Speaks_to_VOA.webm",
    "language": "auto",
    "includeSubtitledVideo": true,
    "burnIn": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("myagizm/video-subtitle-service").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 = {
    "action": "process",
    "sourceUrl": "https://upload.wikimedia.org/wikipedia/commons/7/70/Namibia%27s_Deputy_Prime_Minister_Speaks_to_VOA.webm",
    "language": "auto",
    "includeSubtitledVideo": True,
    "burnIn": False,
}

# Run the Actor and wait for it to finish
run = client.actor("myagizm/video-subtitle-service").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 '{
  "action": "process",
  "sourceUrl": "https://upload.wikimedia.org/wikipedia/commons/7/70/Namibia%27s_Deputy_Prime_Minister_Speaks_to_VOA.webm",
  "language": "auto",
  "includeSubtitledVideo": true,
  "burnIn": false
}' |
apify call myagizm/video-subtitle-service --silent --output-dataset

```

## MCP server setup

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

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/zclCfPBtQ1fb1x0z9/builds/dYfPTUIGMxcDnai2B/openapi.json
