diff --git a/changelog/3297.deprecated.md b/changelog/3297.deprecated.md index 9ae7b8095..f3745ba1a 100644 --- a/changelog/3297.deprecated.md +++ b/changelog/3297.deprecated.md @@ -1 +1,12 @@ -- `PipelineParams.allow_interruptions` is now deprecated, use `LLMUserAggregator`'s new parameter `user_mute_strategies` instead. +- `PipelineParams.allow_interruptions` is now deprecated, use `LLMUserAggregator`'s new parameter `turn_start_strategies` instead. For example, to disable interruptions but still get user turns you can do: + + ```python + context_aggregator = LLMContextAggregatorPair( + context, + user_params=LLMUserAggregatorParams( + turn_start_strategies=TurnStartStrategies( + user=[TranscriptionUserTurnStartStrategy(enable_interruptions=False)], + ), + ), + ) + ``` diff --git a/changelog/3316.added.md b/changelog/3316.added.md new file mode 100644 index 000000000..d4c76c46a --- /dev/null +++ b/changelog/3316.added.md @@ -0,0 +1 @@ +- Added `enable_interruptions` constructor argument to all user turn strategies. This tells the `LLMUserAggregator` to push or not push an `InterruptionFrame`. diff --git a/changelog/3316.other.md b/changelog/3316.other.md new file mode 100644 index 000000000..23c1be025 --- /dev/null +++ b/changelog/3316.other.md @@ -0,0 +1 @@ +- Added `52-live-transcription.py` foundational example demonstrating live transcription and translation from English to Spanish. In this example, the bot is not interruptible: as the user continues speaking, English transcriptions are queued, and the bot continuously translates and speaks each queued sentence in Spanish without being interrupted by new user speech. diff --git a/src/pipecat/pipeline/task.py b/src/pipecat/pipeline/task.py index 0bddf49f4..79816a868 100644 --- a/src/pipecat/pipeline/task.py +++ b/src/pipecat/pipeline/task.py @@ -107,7 +107,7 @@ class PipelineParams(BaseModel): allow_interruptions: Whether to allow pipeline interruptions. .. deprecated:: 0.0.99 - Use `LLMUserAggregator`'s new `user_mute_strategies` parameter instead. + Use `LLMUserAggregator`'s new `turn_start_strategies` parameter instead. audio_in_sample_rate: Input audio sample rate in Hz. audio_out_sample_rate: Output audio sample rate in Hz.