Skip to content

Commit 5aba6bc

Browse files
committed
CSDK-2774 daily-python: fix audio renderer remix and resampling
1 parent cfe4e47 commit 5aba6bc

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to the **daily-python** SDK will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Fixed
11+
12+
- Fixed an audio renderer issue that would cause garbled audio if remote audio
13+
was stereo.
14+
815
## [0.19.0] - 2025-05-23
916

1017
### Added

daily.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class CallClient:
217217
participant_id: str,
218218
callback: Callable[[str, AudioData, str], None],
219219
audio_source: str = "microphone",
220-
sample_rate: int = 0,
220+
sample_rate: int = 16000,
221221
callback_interval_ms: int = 20,
222222
) -> None: ...
223223
def set_video_renderer(

src/call_client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,9 +1657,9 @@ impl PyCallClient {
16571657
/// :param str participant_id: The ID of the participant to receive audio from
16581658
/// :param func callback: A callback to be called when audio data is available. It receives three arguments: the participant ID, the :class:`AudioData` and the audio source
16591659
/// :param str audio_source: The audio source of the remote participant to receive (e.g. `microphone`, `screenAudio` or a custom track name)
1660-
/// :param str sample_rate: The sample rate the audio should be resampled to. If 0 is given it means no resampling needed
1660+
/// :param str sample_rate: The sample rate the audio should be resampled to
16611661
/// :param str callback_interval_ms: How often the callback should be called (multiple of 10ms)
1662-
#[pyo3(signature = (participant_id, callback, audio_source = "microphone", sample_rate = 0, callback_interval_ms = 20))]
1662+
#[pyo3(signature = (participant_id, callback, audio_source = "microphone", sample_rate = 16000, callback_interval_ms = 20))]
16631663
pub fn set_audio_renderer(
16641664
&self,
16651665
participant_id: &str,

0 commit comments

Comments
 (0)