WakeCheckFilter

class pipecat.processors.filters.wake_check_filter.WakeCheckFilter(wake_phrases, keepalive_timeout=3)[source]

Bases: FrameProcessor

This filter looks for wake phrases in the transcription frames and only passes through frames after a wake phrase has been detected. It also has a keepalive timeout to allow for a brief period of continued conversation after a wake phrase has been detected.

Parameters:
  • wake_phrases (List[str])

  • keepalive_timeout (float)

class WakeState(*values)[source]

Bases: Enum

IDLE = 1
AWAKE = 2
class ParticipantState(participant_id)[source]

Bases: object

Parameters:

participant_id (str)

async process_frame(frame, direction)[source]
Parameters:
  • frame (Frame)

  • direction (FrameDirection)