Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Add userdata to audioframe constructor#554

Merged
1egoman merged 5 commits intomainlivekit/python-sdks:mainfrom
add-userdata-to-audioframe-constructorlivekit/python-sdks:add-userdata-to-audioframe-constructorCopy head branch name to clipboard
Jan 6, 2026
Merged

Add userdata to audioframe constructor#554
1egoman merged 5 commits intomainlivekit/python-sdks:mainfrom
add-userdata-to-audioframe-constructorlivekit/python-sdks:add-userdata-to-audioframe-constructorCopy head branch name to clipboard

Conversation

@1egoman
Copy link
Contributor

@1egoman 1egoman commented Jan 6, 2026

Expose this so that downstream consumers can preset userdata into an audio frame when it is being created based off of raw data.

livekit-rtc/livekit/rtc/audio_frame.py Outdated Show resolved Hide resolved
sample_rate: int,
num_channels: int,
samples_per_channel: int,
userdata: dict[str, Any] = {},
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
userdata: dict[str, Any] = {},
*,
userdata: dict[str, Any] = {},

Let's make it a kwarg

@1egoman 1egoman merged commit e340b74 into main Jan 6, 2026
16 checks passed
@1egoman 1egoman deleted the add-userdata-to-audioframe-constructor branch January 6, 2026 22:33
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.