Merge pull request #3060 from pipecat-ai/aleix/consumer-queue-frames

ConsumerProcessor: queue frames internally instead of pushing them
This commit is contained in:
Aleix Conchillo Flaqué
2025-11-18 00:54:18 -08:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -24,6 +24,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- `ConsumerProcessor` now queues frames from the producer internally instead of
pushing them directly. This allows us to subclass consumer processors and
manipulate frames before they are pushed.
- `BaseTextFilter` only require subclasses to implement the `filter()` method.
- Extracted the logic for retrying connections, and create a new `send_with_retry`

View File

@@ -83,4 +83,4 @@ class ConsumerProcessor(FrameProcessor):
while True:
frame = await self._queue.get()
new_frame = await self._transformer(frame)
await self.push_frame(new_frame, self._direction)
await self.queue_frame(new_frame, self._direction)