Code review fixes

This commit is contained in:
Mark Backman
2024-12-09 18:15:33 -05:00
parent 0c4cbc2615
commit 676643d558
2 changed files with 2 additions and 3 deletions

View File

@@ -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`.

View File

@@ -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):