Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions guides/fundamentals/user-input-muting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ from pipecat.processors.aggregators.llm_response_universal import (
LLMContextAggregatorPair,
LLMUserAggregatorParams,
)
from pipecat.turns.mute import AlwaysUserMuteStrategy
from pipecat.turns.user_mute import AlwaysUserMuteStrategy

# Configure with one or more strategies
user_aggregator, assistant_aggregator = LLMContextAggregatorPair(
Expand All @@ -100,7 +100,7 @@ from pipecat.processors.aggregators.llm_response_universal import (
LLMUserAggregatorParams,
)

from pipecat.turns.mute import (
from pipecat.turns.user_mute import (
MuteUntilFirstBotCompleteUserMuteStrategy,
FunctionCallUserMuteStrategy,
)
Expand Down
16 changes: 8 additions & 8 deletions server/utilities/turn-management/user-mute-strategies.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ from pipecat.processors.aggregators.llm_response_universal import (
LLMContextAggregatorPair,
LLMUserAggregatorParams,
)
from pipecat.turns.mute import (
from pipecat.turns.user_mute import (
MuteUntilFirstBotCompleteUserMuteStrategy,
FunctionCallUserMuteStrategy,
)
Expand All @@ -41,7 +41,7 @@ user_aggregator, assistant_aggregator = LLMContextAggregatorPair(
Mutes user input whenever the bot is speaking. This prevents any interruptions during bot speech.

```python
from pipecat.turns.mute import AlwaysUserMuteStrategy
from pipecat.turns.user_mute import AlwaysUserMuteStrategy

strategy = AlwaysUserMuteStrategy()
```
Expand All @@ -56,7 +56,7 @@ strategy = AlwaysUserMuteStrategy()
Mutes user input only during the bot's first speech. After the initial response completes, user input is allowed even while the bot is speaking.

```python
from pipecat.turns.mute import FirstSpeechUserMuteStrategy
from pipecat.turns.user_mute import FirstSpeechUserMuteStrategy

strategy = FirstSpeechUserMuteStrategy()
```
Expand All @@ -77,7 +77,7 @@ strategy = FirstSpeechUserMuteStrategy()
Mutes user input from the start of the interaction until the bot completes its first speech. This ensures the bot maintains full control at the beginning of a conversation.

```python
from pipecat.turns.mute import MuteUntilFirstBotCompleteUserMuteStrategy
from pipecat.turns.user_mute import MuteUntilFirstBotCompleteUserMuteStrategy

strategy = MuteUntilFirstBotCompleteUserMuteStrategy()
```
Expand All @@ -99,7 +99,7 @@ strategy = MuteUntilFirstBotCompleteUserMuteStrategy()
Mutes user input while function calls are executing. This prevents user interruptions during potentially long-running tool operations.

```python
from pipecat.turns.mute import FunctionCallUserMuteStrategy
from pipecat.turns.user_mute import FunctionCallUserMuteStrategy

strategy = FunctionCallUserMuteStrategy()
```
Expand Down Expand Up @@ -144,7 +144,7 @@ In this example, user input is muted:
Ensure the bot's greeting plays completely before accepting user input:

```python
from pipecat.turns.mute import MuteUntilFirstBotCompleteUserMuteStrategy
from pipecat.turns.user_mute import MuteUntilFirstBotCompleteUserMuteStrategy

user_aggregator, assistant_aggregator = LLMContextAggregatorPair(
context,
Expand All @@ -161,7 +161,7 @@ user_aggregator, assistant_aggregator = LLMContextAggregatorPair(
Allow normal interruptions but prevent them during tool execution:

```python
from pipecat.turns.mute import FunctionCallUserMuteStrategy
from pipecat.turns.user_mute import FunctionCallUserMuteStrategy

user_aggregator, assistant_aggregator = LLMContextAggregatorPair(
context,
Expand All @@ -178,7 +178,7 @@ user_aggregator, assistant_aggregator = LLMContextAggregatorPair(
Always mute user input while the bot is speaking:

```python
from pipecat.turns.mute import AlwaysUserMuteStrategy
from pipecat.turns.user_mute import AlwaysUserMuteStrategy

user_aggregator, assistant_aggregator = LLMContextAggregatorPair(
context,
Expand Down