Skip to content

feat(assemblyai): add speaker diarization support#5074

Open
dlange-aai wants to merge 1 commit intolivekit:mainfrom
dlange-aai:feat/assemblyai-speaker-diarization
Open

feat(assemblyai): add speaker diarization support#5074
dlange-aai wants to merge 1 commit intolivekit:mainfrom
dlange-aai:feat/assemblyai-speaker-diarization

Conversation

@dlange-aai
Copy link

@dlange-aai dlange-aai commented Mar 11, 2026

Summary

  • Extract speaker_label from Turn responses and populate speaker_id on SpeechData
  • Declare diarization capability when speaker_labels is enabled, allowing use with MultiSpeakerAdapter
  • Map UNKNOWN speaker labels (short utterances <1s) to None

Test plan

  • Tested locally with u3-rt-pro model, speaker_labels=True and confirmed speaker IDs ("A", "B") appear in transcription events
  • Verified speaker=None before change, speaker=A/B after

Extract speaker_label from Turn responses and populate speaker_id
on SpeechData. Declare diarization capability when speaker_labels
is enabled, allowing use with MultiSpeakerAdapter.
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


David Lange seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

Copy link
Contributor

@longcw longcw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

@dlange-aai
Copy link
Author

Thanks! Is this blocked from merging due to the CLA agreement? I signed but it's having an issue reconciling to my Github account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants