Merge pull request #3828 from pipecat-ai/mb/skip-empty-audio-filter-frames

Skip empty audio frames after filter buffering
This commit is contained in:
Mark Backman
2026-02-24 23:27:22 -05:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

1
changelog/3828.fixed.md Normal file
View File

@@ -0,0 +1 @@
- Fixed misleading "Empty audio frame received for STT service" warnings when using audio filters (e.g. `RNNoiseFilter`, `KrispVivaFilter`, `AICFilter`) that buffer audio internally.

View File

@@ -424,6 +424,11 @@ class BaseInputTransport(FrameProcessor):
if self._params.audio_in_filter:
frame.audio = await self._params.audio_in_filter.filter(frame.audio)
# Skip frames with no audio data (e.g. filter is buffering).
if not frame.audio:
self._audio_in_queue.task_done()
continue
###################################################################
# DEPRECATED.
#