From 80584e91385d2b0a80c74bf72e439138b8678262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 1 Apr 2025 15:13:28 -0700 Subject: [PATCH] TransportParams: set audio_out_10ms_chunks to 4 --- CHANGELOG.md | 3 +++ src/pipecat/transports/base_transport.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59d0888be..10f68892f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -109,6 +109,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Performance +- Output transports now send 40ms audio chunks instead of 20ms. This should + improve performance. + - `BotSpeakingFrame`s are now sent every 200ms. If the output transport audio chunks are higher than 200ms then they will be sent at every audio chunk. diff --git a/src/pipecat/transports/base_transport.py b/src/pipecat/transports/base_transport.py index 8e0d2c772..411456071 100644 --- a/src/pipecat/transports/base_transport.py +++ b/src/pipecat/transports/base_transport.py @@ -31,7 +31,7 @@ class TransportParams(BaseModel): audio_out_sample_rate: Optional[int] = None audio_out_channels: int = 1 audio_out_bitrate: int = 96000 - audio_out_10ms_chunks: int = 2 + audio_out_10ms_chunks: int = 4 audio_out_mixer: Optional[BaseAudioMixer] = None audio_in_enabled: bool = False audio_in_sample_rate: Optional[int] = None