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