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

@@ -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,