FrameProcessor: add new broadcast_frame() method

This commit is contained in:
Aleix Conchillo Flaqué
2025-11-06 09:40:33 -08:00
parent a14d00b806
commit f6916428b1
6 changed files with 35 additions and 49 deletions

View File

@@ -526,8 +526,7 @@ class DeepgramFluxSTTService(WebsocketSTTService):
"""
logger.debug("User started speaking")
await self.push_interruption_task_frame_and_wait()
await self.push_frame(UserStartedSpeakingFrame(), FrameDirection.DOWNSTREAM)
await self.push_frame(UserStartedSpeakingFrame(), FrameDirection.UPSTREAM)
await self.broadcast_frame(UserStartedSpeakingFrame)
await self.start_metrics()
await self._call_event_handler("on_start_of_turn", transcript)
if transcript: