WakeNotifierFilter
- class pipecat.processors.filters.wake_notifier_filter.WakeNotifierFilter(notifier, *, types, filter, **kwargs)[source]
Bases:
FrameProcessor
This processor expects a list of frame types and will execute a given callback predicate when a frame of any of those type is being processed. If the callback returns true the notifier will be notified.
- Parameters:
notifier (BaseNotifier)
types (Tuple[Type[Frame], ...])
filter (Callable[[Frame], Awaitable[bool]])
- async process_frame(frame, direction)[source]
- Parameters:
frame (Frame)
direction (FrameDirection)