Code review fixes
This commit is contained in:
@@ -41,7 +41,7 @@ async def on_audio_data(processor, audio, sample_rate, num_channels):
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- `STTMuteFilter` now supports multiple simultaneous muting strategies
|
- `STTMuteFilter` now supports multiple simultaneous muting strategies.
|
||||||
|
|
||||||
- `XTTSService` language now defaults to `Language.EN`.
|
- `XTTSService` language now defaults to `Language.EN`.
|
||||||
|
|
||||||
|
|||||||
@@ -129,9 +129,8 @@ class STTMuteFilter(FrameProcessor):
|
|||||||
elif isinstance(frame, FunctionCallResultFrame):
|
elif isinstance(frame, FunctionCallResultFrame):
|
||||||
self._function_call_in_progress = False
|
self._function_call_in_progress = False
|
||||||
await self._handle_mute_state(await self._should_mute())
|
await self._handle_mute_state(await self._should_mute())
|
||||||
|
|
||||||
# Handle bot speaking state changes
|
# Handle bot speaking state changes
|
||||||
if isinstance(frame, BotStartedSpeakingFrame):
|
elif isinstance(frame, BotStartedSpeakingFrame):
|
||||||
self._bot_is_speaking = True
|
self._bot_is_speaking = True
|
||||||
await self._handle_mute_state(await self._should_mute())
|
await self._handle_mute_state(await self._should_mute())
|
||||||
elif isinstance(frame, BotStoppedSpeakingFrame):
|
elif isinstance(frame, BotStoppedSpeakingFrame):
|
||||||
|
|||||||
Reference in New Issue
Block a user