IdleFrameProcessor
- class pipecat.processors.idle_frame_processor.IdleFrameProcessor(*, callback, timeout, types=None, **kwargs)[source]
Bases:
FrameProcessor
This class waits to receive any frame or list of desired frames within a given timeout. If the timeout is reached before receiving any of those frames the provided callback will be called.
- Parameters:
callback (Callable[[IdleFrameProcessor], Awaitable[None]])
timeout (float)
types (List[type] | None)
- async process_frame(frame, direction)[source]
- Parameters:
frame (Frame)
direction (FrameDirection)
- async cleanup()[source]