transport(out): log bot started/stopped speaking

This commit is contained in:
Aleix Conchillo Flaqué
2024-08-21 17:23:44 -07:00
parent 6f55d494bd
commit 21de8e0a35

View File

@@ -239,10 +239,12 @@ class BaseOutputTransport(FrameProcessor):
logger.exception(f"{self} error processing sink queue: {e}")
async def _bot_started_speaking(self):
logger.debug("Bot started speaking")
self._bot_speaking = True
await self._internal_push_frame(BotStartedSpeakingFrame(), FrameDirection.UPSTREAM)
async def _bot_stopped_speaking(self):
logger.debug("Bot stopped speaking")
self._bot_speaking = False
await self._internal_push_frame(BotStoppedSpeakingFrame(), FrameDirection.UPSTREAM)