Repository navigation
Add diarize and infer_speaker_names to the realtime speech-to-text wrapper - #945
Conversation
…apper Adds the diarize and infer_speaker_names options to both realtime connection modes, sent as boolean query params like no_verbatim, and the RealtimeEvents.DIARIZED_TRANSCRIPT, SPEAKERS_MERGED and SPEAKER_NAMES events so the new diarized_transcript, speakers_merged and speaker_names server messages reach subscribers. The words partial_transcript carries with diarize need no wiring, as messages reach handlers unchanged. Also corrects the filter_background_audio docstring: the server now allows it with include_timestamps and rejects it with diarize.
PR SummaryLow Risk Overview When diarization is enabled, callers can listen for Tests cover URL serialization (including explicit Reviewed by Cursor Bugbot for commit a0b6543. Bugbot is set up for automated code reviews on this repo. Configure here. |
Combines SDK support for two features - first is realtime diarization - it has a few additional events
second is infer speaker names from diarized transcript