---
title: "transcript.set: Import Transcript — Film kit command — Kition"
description: "Stores a transcript for `item` from the given words (text, start/end ticks, speaker) instead of transcribing."
canonical: "https://developer.kition.ai/docs/kits/film/commands/transcript.set"
---

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

# transcript.set

**Import Transcript.** Stores a transcript for `item` from the given words (text, start/end ticks, speaker) instead of transcribing.

- Kit: Film 0.1.0 (.kfilm); reference: [Film kit commands](https://developer.kition.ai/docs/kits/film.md)
- Changes the document: yes
- Acts on: `item` (one id), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `item` | `integer` | no |  |
| `transcript` | `object` | no | {"language":str,"speakers":[{"name":str}],"words":[{"text":str,"start":tick,"end":tick,"speaker":n?}]} |

## Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `item`, `transcript`. 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": {
    "item": {
      "type": "integer",
      "x-khp-types": [
        "Item"
      ]
    },
    "transcript": {
      "additionalProperties": true,
      "description": "{\"language\":str,\"speakers\":[{\"name\":str}],\"words\":[{\"text\":str,\"start\":tick,\"end\":tick,\"speaker\":n?}]}",
      "properties": {
        "language": {
          "type": "string"
        },
        "speakers": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "name": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "words": {
          "description": "[{\"text\":str,\"start\":tick,\"end\":tick,\"speaker\":n?}]",
          "items": {
            "additionalProperties": true,
            "properties": {
              "end": {
                "description": "tick"
              },
              "speaker": {
                "type": "integer"
              },
              "start": {
                "description": "tick"
              },
              "text": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        }
      },
      "type": "object"
    }
  },
  "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).
