mcut
@mcut/transcription

replaceAllMatches

Generated TypeScript API reference for the public mcut SDK.

mcut SDK


mcut SDK / transcription/src / replaceAllMatches

Function: replaceAllMatches()

function replaceAllMatches(
   captions,
   query,
   replacement): CaptionContentPatch[];

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

Replace every occurrence of query across the captions.

Parameters

captions

readonly TranscriptCaption[]

query

string

replacement

string

Returns

CaptionContentPatch[]

On this page