Merge pull request #2329 from pipecat-ai/mb/fix-livekit-empty-audio-frames

fix: LiveKitTransport, don't push empty AudioRawFrames
This commit is contained in:
Mark Backman
2025-08-01 12:53:05 -07:00
committed by GitHub
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,