Files
openless/openless-all/app
f77bc8fccd feat(asr): enable speaker diarization to filter non-primary speakers (#760)
Open volcengine streaming ASR's `enable_speaker_info` flag so each
returned utterance carries a speaker label. Then in the result
assembly, group utterances by speaker, pick the one with the longest
total speaking time as the "primary speaker", and only concatenate
their text — dropping utterances from other speakers (e.g. a
colleague interjecting while you dictate).

This is a heuristic quick-win for the "only transcribe my voice"
request; it does not yet do enrolled voiceprint verification. If no
speaker labels are present, behavior is unchanged (all utterances
concatenated).

Co-authored-by: Shicongcoding <Shicongcoding@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@owtffssent.com>
2026-07-05 11:26:23 +08:00
..