fix: LiveKitTransport, don't push empty AudioRawFrames

This commit is contained in:
Mark Backman
2025-08-01 14:57:53 -04:00
parent a6e69d6aad
commit 1d8abe3c1c
2 changed files with 12 additions and 0 deletions

View File

@@ -5,6 +5,13 @@ 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
- Fixed an issue in `LiveKitTransport` where empty `AudioRawFrame`s were pushed
down the pipeline. This resulted in warnings by the STT processor.
## [0.0.77] - 2025-07-31
### Added

View File

@@ -605,6 +605,11 @@ class LiveKitInputTransport(BaseInputTransport):
pipecat_audio_frame = await self._convert_livekit_audio_to_pipecat(
audio_frame_event
)
# Skip frames with no audio data
if len(pipecat_audio_frame.audio) == 0:
continue
input_audio_frame = UserAudioRawFrame(
user_id=participant_id,
audio=pipecat_audio_frame.audio,