---
title: "transcript.addCaptions: Create Captions from Transcript — Film kit command — Kition"
description: "Creates a caption track from the sequence transcript: `maxChars` per line, 1 or 2 `lines`, caption length between `minSeconds` and `maxSeconds`, `gapFrames` between captions."
canonical: "https://developer.kition.ai/docs/kits/film/commands/transcript.addCaptions"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/film/commands/transcript.addCaptions](https://developer.kition.ai/docs/kits/film/commands/transcript.addCaptions)

# transcript.addCaptions

**Create Captions from Transcript.** Creates a caption track from the sequence transcript: `maxChars` per line, 1 or 2 `lines`, caption length between `minSeconds` and `maxSeconds`, `gapFrames` between captions.

- Kit: Film 0.1.0 (.kfilm); reference: [Film kit commands](https://developer.kition.ai/docs/kits/film.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `format` | `string` | no |  |
| `gapFrames` | `integer` | no |  |
| `lines` | `1 \| 2` | no |  |
| `maxChars` | `integer` | no |  |
| `maxSeconds` | `number` | no | f? |
| `minSeconds` | `number` | no | f? |
| `name` | `string` | no |  |

## Call through film_run

```text
film_run {
  "path": "<file>.kfilm",
  "steps": [{ "command": "transcript.addCaptions" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `format`, `gapFrames`, `lines`, `maxChars`, `maxSeconds`, `minSeconds`, `name`. film_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "format": {
      "type": "string"
    },
    "gapFrames": {
      "type": "integer"
    },
    "lines": {
      "enum": [
        1,
        2
      ],
      "type": "integer"
    },
    "maxChars": {
      "type": "integer"
    },
    "maxSeconds": {
      "description": "f?",
      "type": "number"
    },
    "minSeconds": {
      "description": "f?",
      "type": "number"
    },
    "name": {
      "type": "string"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/film-darwin-arm64@0.1.0 and the kit itself (film_commands through @kition/cli@0.1.1, built from KitionAI/kition-film@375db59).
