fix(cli): use --output-json-full for word-level timestamps

--output-json only produces segment-level timing (no tokens).
--output-json-full is required for word-level timestamps that
the captions template needs. Special tokens are filtered out
by the patchTranscript function.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Vance Ingalls
2026-03-26 18:03:33 +00:00
committed by Vance Ingalls
co-authored by Claude Opus 4.6
parent caa82c14e0
commit afa73ef882
+11 -1
View File
@@ -102,7 +102,17 @@ export async function transcribe(
execFileSync(
whisper.executablePath,
["--model", modelPath, "--output-json", "--output-file", outputBase, "--dtw", model, wavPath],
[
"--model",
modelPath,
"--output-json-full",
"--output-file",
outputBase,
"--dtw",
model,
"--suppress-nst",
wavPath,
],
{ stdio: "ignore", timeout: 300_000 },
);