diff --git a/CHANGELOG.md b/CHANGELOG.md index aca814e7e..529ece30f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,7 +41,7 @@ async def on_audio_data(processor, audio, sample_rate, num_channels): ### Changed -- `STTMuteFilter` now supports multiple simultaneous muting strategies +- `STTMuteFilter` now supports multiple simultaneous muting strategies. - `XTTSService` language now defaults to `Language.EN`. diff --git a/src/pipecat/processors/filters/stt_mute_filter.py b/src/pipecat/processors/filters/stt_mute_filter.py index 95576dc07..914198e5a 100644 --- a/src/pipecat/processors/filters/stt_mute_filter.py +++ b/src/pipecat/processors/filters/stt_mute_filter.py @@ -129,9 +129,8 @@ class STTMuteFilter(FrameProcessor): elif isinstance(frame, FunctionCallResultFrame): self._function_call_in_progress = False await self._handle_mute_state(await self._should_mute()) - # Handle bot speaking state changes - if isinstance(frame, BotStartedSpeakingFrame): + elif isinstance(frame, BotStartedSpeakingFrame): self._bot_is_speaking = True await self._handle_mute_state(await self._should_mute()) elif isinstance(frame, BotStoppedSpeakingFrame):