(dir: string, transcriptPath: string)
| 335 | } |
| 336 | |
| 337 | async 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 |
no test coverage detected