function_call_user_mute_strategy

User mute strategy that mutes the user while a function call is executing.

class pipecat.turns.user_mute.function_call_user_mute_strategy.FunctionCallUserMuteStrategy[source]

Bases: BaseUserMuteStrategy

User mute strategy that mutes the user while a function call is executing.

This strategy ensures that user input does not interfere with ongoing function execution. While a function call is active, all user frames are muted. Once the function call completes or is canceled, user input is allowed again.

__init__()[source]

Initialize the function call user mute strategy.

async process_frame(frame: Frame) bool[source]

Process an incoming frame.

Parameters:

frame – The frame to be processed.

Returns:

Whether the strategy is muted.