mcut
@mcut/transcription

toCaptionElements

Generated TypeScript API reference for the public mcut SDK.

mcut SDK


mcut SDK / transcription/src / toCaptionElements

Function: toCaptionElements()

function toCaptionElements(result, options?): CaptionElementInput[];

Defined in: packages/transcription/src/captions.ts:112

Convert a transcript into caption elements ready for the applyCaptions command: grouped to caption length, word timings made relative to each element, overlaps clamped to satisfy the track invariant.

Parameters

result

TranscriptResult

options?

ToCaptionElementsOptions = {}

Returns

CaptionElementInput[]

On this page