mcut
@mcut/transcription

mapCaptionWords

Generated TypeScript API reference for the public mcut SDK.

mcut SDK


mcut SDK / transcription/src / mapCaptionWords

Function: mapCaptionWords()

function mapCaptionWords(caption): MappedWord[] | null;

Defined in: packages/transcription/src/transcript-tools.ts:56

Locate each timed word inside the caption text (in order). Returns null when the words no longer correspond to the text — e.g. after a free-form manual edit — in which case callers degrade to caption-level behavior.

Parameters

caption

TranscriptCaption

Returns

MappedWord[] | null

On this page