You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
File transcription: speaker labels are dropped entirely when some turns return no text, and there is no per-file language (Hindi / code-switched audio) #1468
I transcribed a 22.5-minute recording of two people speaking Hindi and English mixed (Hinglish) in File Transcription, with Label speakers on and Number of speakers = 2.
The result had no speaker labels ("Speaker labeling was unavailable for this file. The transcript was completed without speaker labels.") and the text was English only.
The log shows the diarizer ran, but the labels were discarded:
WARN FileTranscriptionService Speaker labeling omitted too much audio (gaps=17, skipped=90.289s, maxGap=14.788s, diarized=1095.756s, ratio=0.0824); falling back to standard transcription
Same result on a second run (identical gap list).
Why (from reading the code on main)
SpeakerLabeledTranscriptionPolicy.shouldKeepSpeakerLabels (Services/FileTranscriptionService.swift) rejects all labels when any single gap is over 5 s or total skipped audio is over min(30 s, 1%). Here 17 turns came back empty (8% of the audio), so the whole labeled result was thrown away, although the other ~92% had text.
The empty turns are most likely the Hindi parts: the selected model (Parakeet) has no Hindi. File transcription uses the dictation model and its global language; the File Transcription screen has no language choice, so a one-off file in another language means changing the global settings and changing them back.
Proposal (two small, separate PRs, if you agree)
A. Keep labels with marked gaps (fix, no UI): when some turns return no text, keep the speaker labels and show the gaps (the existing speakerLabelingGaps / limitation notice), instead of falling back to an unlabeled transcript. A higher bound could stay for files that are mostly empty. Includes unit tests using the numbers above.
B. Per-file language picker (UI, needs your OK first): a "Language" picker next to "Number of speakers", default "Same as Voice Engine" (no change for anyone who doesn't touch it). It applies the language for that run only and restores settings afterwards, reusing the apply/restore approach from the meeting re-transcribe language override (Fix #1033: Retranscribe a finished meeting in another language #1103). If the chosen language isn't supported by the selected model (e.g. Parakeet + Hindi), show a hint naming models that do support it (Whisper, Nemotron 3.5).
Would you take A as a PR? And is B welcome, or would you rather discuss it first in Discussions?
AI disclosure: the investigation and this write-up were done with an AI coding assistant; I reviewed them. Any PR diff will be human-reviewed before submission.
Activity