MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / patchTranscript

Function patchTranscript

packages/cli/src/commands/init.ts:337–342  ·  view source on GitHub ↗
(dir: string, transcriptPath: string)

Source from the content-addressed store, hash-verified

335}
336
337async function patchTranscript(dir: string, transcriptPath: string): Promise<void> {
338 const { loadTranscript, patchCaptionHtml } = await import("../whisper/normalize.js");
339 const { words } = loadTranscript(transcriptPath);
340 if (words.length === 0) return;
341 patchCaptionHtml(dir, words);
342}
343
344// ---------------------------------------------------------------------------
345// handleVideoFile — probe, check codec, optionally transcode, copy to destDir

Callers 1

runFunction · 0.85

Calls 2

loadTranscriptFunction · 0.85
patchCaptionHtmlFunction · 0.85

Tested by

no test coverage detected