Push the STTMuteFrame upstream and downstream

This commit is contained in:
Mark Backman
2025-07-29 12:01:29 -04:00
parent e961c438e7
commit ebfa4f2d5e
4 changed files with 6 additions and 218 deletions

View File

@@ -133,7 +133,8 @@ class STTMuteFilter(FrameProcessor):
if should_mute != self.is_muted:
logger.debug(f"STTMuteFilter {'muting' if should_mute else 'unmuting'}")
self._is_muted = should_mute
await self.push_frame(STTMuteFrame(mute=should_mute))
await self.push_frame(STTMuteFrame(mute=should_mute), FrameDirection.UPSTREAM)
await self.push_frame(STTMuteFrame(mute=should_mute), FrameDirection.DOWNSTREAM)
async def _should_mute(self) -> bool:
"""Determine if STT should be muted based on current state and strategies."""