vad_user_turn_start_strategy

User turn start strategy based on VAD events.

class pipecat.turns.user_start.vad_user_turn_start_strategy.VADUserTurnStartStrategy(*, enable_interruptions: bool = True, enable_user_speaking_frames: bool = True, **kwargs)[source]

Bases: BaseUserTurnStartStrategy

User turn start strategy based on VAD (Voice Activity Detection).

This strategy assumes the user turn starts as soon as a VAD frame indicates that the user has started speaking.

async process_frame(frame: Frame) ProcessFrameResult[source]

Process an incoming frame to detect user turn start.

Parameters:

frame – The frame to be analyzed.

Returns:

STOP if the user started speaking, CONTINUE otherwise.