external_user_turn_start_strategy

User turn start strategy triggered by externally emitted frames.

class pipecat.turns.user_start.external_user_turn_start_strategy.ExternalUserTurnStartStrategy(**kwargs)[source]

Bases: BaseUserTurnStartStrategy

User turn start strategy controlled by an external processor.

This strategy does not determine when a user turn starts on its own, instead it relies on a different processor in the pipeline which is responsible for emitting UserStartedSpeakingFrame frames.

__init__(**kwargs)[source]

Initialize the external user turn start strategy.

Parameters:

**kwargs – Additional keyword arguments.

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 a user started speaking frame was received, CONTINUE otherwise.