Commit Graph
2 Commits
Author SHA1 Message Date
adrianchen91 527454ecca fix: stop abandoned speaker identification instead of leaving it running
On a timeout the guard cancels the worker but NativeSortformer was never given
the cancellation, so its child kept the GPU pool busy, and the upload was
deleted while the worker could still read it. Pass the request's cancellation
to Sortformer and delete the upload through on_abandon once the worker exits,
also when the request itself is cancelled.
2026-10-27 00:33:15 +05:30
adrianchen91 25fc784586 feat: identify speakers when transcribing a file
POST /transcribe never ran diarization; only the dub pipeline did. Add an
opt-in diarize flag for accurate mode that reuses the dub loader and overlap
assignment, labels each segment, and degrades to a plain transcript with a
diarization_error code when the model is missing or fails.

The Transcribe page gets an Identify speakers switch, speaker labels in the
segment list, and labelled text in exports.
2026-10-27 00:33:08 +05:30