Repository navigation
Conversation
Introduce explainers/speaker-diarization.md proposing opt-in speaker diarization (SpeechRecognitionDiarization, diarization/minSpeakers/ maxSpeakers on SpeechRecognition, diarization in SpeechRecognitionOptions, speakerChanged/speaker on SpeechRecognitionResult, and "diarization-not-supported").
This was referenced Oct 27, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce an explainer (
explainers/speaker-diarization.md) for opt-in speaker diarization in the Web Speech API:SpeechRecognitionDiarization("none"|"speaker-turns"|"speaker-labels"): Configurable viaSpeechRecognition.diarization(with optionalminSpeakers/maxSpeakershints) andSpeechRecognitionOptions.diarization(foravailable()andinstall()), failing explicitly with"diarization-not-supported"when unsupported.SpeechRecognitionResult.speakerChangedandSpeechRecognitionResult.speaker): Splits recognition results at speaker turn boundaries so[speechStartTime, speechEndTime](Update SpeechRecognitionResult with speech timing attributes #192) bounds each turn on the session audio timeline (The timestamp of various events is under-specified, and not implemented per spec in shipped implementations #213), whilespeakerChangeddistinguishes actual speaker transitions from same-speaker pause or language-switch (What happens if the language isn't specified when using SpeechRecognition, and how to recognized multiple languages #208) splits.WebVTT(<v Speaker 1>) captioning, ephemeral non-biometric session scoping, data minimization relative to in-pagegetUserMedia()/WASM pipelines, and alternatives considered.Relates to #226, #105, #165, #186, #192, #208, #213, and #216.