Mentioning the fix in the changelog.

This commit is contained in:
Filipi Fuchter
2025-05-05 07:03:08 -03:00
parent 781df7ac77
commit d2bf8321a0
2 changed files with 10 additions and 1 deletions

View File

@@ -5,6 +5,15 @@ All notable changes to **Pipecat** will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- Added real-time throttling to the `BaseOutputTransport` when using audio mixer
to ensure audio frames (including silence) are emitted at the correct intervals.
This prevents unnecessary CPU usage and avoids flooding the output with silent
frames when no new audio is available.
## [0.0.66] - 2025-05-02
### Added

View File

@@ -436,7 +436,7 @@ class BaseOutputTransport(FrameProcessor):
last_frame_time = 0
silence = b"\x00" * self._audio_chunk_size
# chunk duration in seconds
chunk_duration = ( 10 * self._params.audio_out_10ms_chunks ) / 1000.0
chunk_duration = (10 * self._params.audio_out_10ms_chunks) / 1000.0
next_frame_time = time.time()
while True:
try: