Film kit command

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)
Changes the document
yes
Acts on
item (one id), which a run step’s on fills

Parameters

Parameters of transcript.set
NameTypeRequiredDescription
itemintegerno
transcriptobjectno{"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/[email protected] and the kit itself (film_commands through @kition/[email protected], built from KitionAI/kition-film@375db59). As data: commands.jsonl.