Skip to content

Conversation

@ladvoc
Copy link
Contributor

@ladvoc ladvoc commented Sep 23, 2025

Normally, the participant identity and SID fields should be set for any outgoing packet based on the local participant's info; #688 introduced setting these fields at the session level to enforce this. However, this should not apply to raw packets.

Currently, Python uses raw packets for data streams. In the case of user transcriptions, the sender identity field is explicitly set to the user’s identity to indicate that the transcription corresponds to the user’s voice rather than the agent’s—even though the agent is technically the sender.

Do not set participant identity and SID fields on raw packets.
@ladvoc ladvoc marked this pull request as ready for review September 25, 2025 00:49
Copy link
Contributor

@cloudwebrtc cloudwebrtc left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Contributor

@s-hamdananwar s-hamdananwar left a comment

Choose a reason for hiding this comment

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

lgtm!

@ladvoc ladvoc merged commit 7688e49 into main Sep 25, 2025
16 of 19 checks passed
@ladvoc ladvoc deleted the ladvoc/set-iden branch September 25, 2025 01:49
@github-actions github-actions bot mentioned this pull request Sep 25, 2025
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.

4 participants