Skip to content

Commit bcef0db

Browse files
authored
fix sample_rate & num_channels with AudioStream.from_participant (#259)
1 parent 1467c2d commit bcef0db

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

livekit-rtc/livekit/rtc/audio_stream.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ def _create_owned_stream_from_participant(
126126
audio_stream_from_participant.participant_handle = (
127127
participant._ffi_handle.handle
128128
)
129+
audio_stream_from_participant.sample_rate = self._sample_rate
130+
audio_stream_from_participant.num_channels = self._num_channels
129131
audio_stream_from_participant.type = (
130132
proto_audio_frame.AudioStreamType.AUDIO_STREAM_NATIVE
131133
)

livekit-rtc/livekit/rtc/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.16.3"
1+
__version__ = "0.16.4"

0 commit comments

Comments
 (0)