Film kit command
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)
- 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/[email protected] and the kit itself (film_commands through @kition/[email protected], built from KitionAI/kition-film@375db59). As data: commands.jsonl.