first_speech_user_mute_strategy
User mute strategy that mutes the user only during the bot’s first speech.
- class pipecat.turns.user_mute.first_speech_user_mute_strategy.FirstSpeechUserMuteStrategy[source]
Bases:
BaseUserMuteStrategyUser mute strategy that mutes the user only during the bot’s first speech.
This strategy allows user input before the bot starts speaking. Once the bot begins its first speaking turn, user frames are muted until the bot finishes that speech. After the bot completes its first speaking turn, user input is no longer muted by this strategy.
Use this strategy when early user input is acceptable, but interruptions during the bot’s initial response should be prevented.