fix: LiveKitTransport, don't push empty AudioRawFrames
This commit is contained in:
@@ -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/),
|
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).
|
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
|
## [0.0.77] - 2025-07-31
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -605,6 +605,11 @@ class LiveKitInputTransport(BaseInputTransport):
|
|||||||
pipecat_audio_frame = await self._convert_livekit_audio_to_pipecat(
|
pipecat_audio_frame = await self._convert_livekit_audio_to_pipecat(
|
||||||
audio_frame_event
|
audio_frame_event
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Skip frames with no audio data
|
||||||
|
if len(pipecat_audio_frame.audio) == 0:
|
||||||
|
continue
|
||||||
|
|
||||||
input_audio_frame = UserAudioRawFrame(
|
input_audio_frame = UserAudioRawFrame(
|
||||||
user_id=participant_id,
|
user_id=participant_id,
|
||||||
audio=pipecat_audio_frame.audio,
|
audio=pipecat_audio_frame.audio,
|
||||||
|
|||||||
Reference in New Issue
Block a user