mute_until_first_bot_complete_user_mute_strategy

User mute strategy that mutes the user until the bot completes its first speech.

class pipecat.turns.user_mute.mute_until_first_bot_complete_user_mute_strategy.MuteUntilFirstBotCompleteUserMuteStrategy[source]

Bases: BaseUserMuteStrategy

User mute strategy that mutes the user until the bot completes its first speech.

This strategy mutes user frames immediately from the start of the interaction, even if the bot has not started speaking yet. User input remains muted until the bot finishes its first speaking turn.

After the bot completes its initial speech, all subsequent user frames are allowed to pass through without muting.

Use this strategy when the bot must fully control the beginning of the interaction and deliver its first response without any user interruption.

__init__()[source]

Initialize the mute-until-first-bot-complete 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.