feat: VTT fallback to whisper with transcript_source tracking

- Set transcript_source to 'captions' when using VTT captions (caption fast path)
- Set transcript_source to 'whisper' when whisper transcription completes via webhook
- Add comprehensive test suite for VTT fallback scenarios
- Tests verify empty/whitespace captions trigger whisper, non-empty captions skip whisper
- Persists transcript_source to database for audit trail

Closes story-d5-vtt-fallback-y-d1d6

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Giancarmine Salucci
2026-08-06 17:24:31 +00:00
co-authored by Claude Haiku 4.5
parent 12be477109
commit 1fc1382414
3 changed files with 136 additions and 2 deletions
+2 -1
View File
@@ -72,7 +72,8 @@ export async function POST({ params, request }) {
status: 'done',
progress: 100,
segmentsJson: JSON.stringify(segments),
outputDir
outputDir,
transcriptSource: 'whisper'
});
emitProgress(jobId, { type: 'done', status: 'done' });