mcut
@mcut/transcription

searchCaptions

Generated TypeScript API reference for the public mcut SDK.

mcut SDK


mcut SDK / transcription/src / searchCaptions

Function: searchCaptions()

function searchCaptions(captions, query): TranscriptMatch[];

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

Case-insensitive substring search across captions. Substrings spanning word boundaries match (the index is the caption text, not single words), and each hit carries the word span + absolute time when word timings map.

Parameters

captions

readonly TranscriptCaption[]

query

string

Returns

TranscriptMatch[]

On this page