# Audio to WebVTT subtitles and timestamped JSON segments

**Use case:** 

Transcribe audio or video files to WebVTT (.vtt) subtitles for HTML5 players, plus timestamped JSON segments ({start, end, text} in seconds) for chapters, search or RAG. Files come from direct links, your Apify key-value store or uploads; long recordings are cut at pauses and merged into one timeline. Run it as it is on a built-in 9-second sample (no AI call, no audio-minute charge).

## Input

```json
{
  "fileUrls": [],
  "language": "auto",
  "outputFormats": [
    "vtt",
    "segments"
  ],
  "japaneseCleanup": true,
  "maxMinutesPerFile": 60
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "string"
  },
  "fileName": {
    "label": "File name",
    "format": "string"
  },
  "linkNumber": {
    "label": "Link number",
    "format": "integer"
  },
  "durationSec": {
    "label": "Length (s)",
    "format": "number"
  },
  "transcribedSec": {
    "label": "Transcribed (s)",
    "format": "number"
  },
  "truncated": {
    "label": "Truncated",
    "format": "boolean"
  },
  "truncatedReason": {
    "label": "Truncated by",
    "format": "string"
  },
  "detectedLanguage": {
    "label": "Detected language",
    "format": "string"
  },
  "segmentCount": {
    "label": "Segments",
    "format": "integer"
  },
  "charCount": {
    "label": "Characters",
    "format": "integer"
  },
  "chargedEvents": {
    "label": "Charged events",
    "format": "integer"
  },
  "srtUrl": {
    "label": "SRT file",
    "format": "string"
  },
  "vttUrl": {
    "label": "VTT file",
    "format": "string"
  },
  "textUrl": {
    "label": "Text file",
    "format": "string"
  },
  "segmentsUrl": {
    "label": "Segments file",
    "format": "string"
  },
  "errorCode": {
    "label": "Error code",
    "format": "string"
  },
  "errorMessage": {
    "label": "Error message",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Speech to Text - Transcribe Audio & Video to SRT, VTT Actor is ready to run with the inputs already set for "Audio to WebVTT subtitles and timestamped JSON segments". [Sign up or log in](https://console.apify.com/create-task-from-example/ojbRb7CLKYWgnSnda) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Audio to WebVTT subtitles and timestamped JSON segments" task

The Speech to Text - Transcribe Audio & Video to SRT, VTT Actor will start running based on the input automatically. You can also change all the input fields, like file links, language, and more, to match your specific use case.

### 3. Receive the "Audio to WebVTT subtitles and timestamped JSON segments" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as status, file name, link number, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Audio to WebVTT subtitles and timestamped JSON segments" task via API](https://apify.com/quietworkslab/audio-video-to-text.md).

## FAQ

### What does the WebVTT subtitles task return?

The WebVTT subtitles task saves a .vtt file and a .json file of segments per file in the run's key-value store, and writes one dataset row with the text, the segments [{start, end, text}] in seconds and the links to both files.

### Can the WebVTT subtitles task handle long recordings?

The WebVTT subtitles task cuts recordings longer than about 3 minutes into parts at pauses, with 1.5 s of overlap, and merges them into one timeline. It transcribes up to 60 minutes per file by default (maxMinutesPerFile, up to 600).

### How much does the WebVTT subtitles task cost?

Audio & Video to Text: $0.005 per started audio minute (tier discounts). AI is billed to your Apify account by apify/openrouter: about $0.0008/min + $0.0013/run on paid plans, 10x per minute on Free. Sample and failed files: no audio-minute charge.

## About this Actor

This example demonstrates how to use [Speech to Text - Transcribe Audio & Video to SRT, VTT](https://apify.com/quietworkslab/audio-video-to-text.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/quietworkslab/audio-video-to-text.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/quietworkslab/audio-video-to-text.md

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`).
