added BotSpeakingFrame

This commit is contained in:
Aleix Conchillo Flaqué
2024-07-01 14:57:18 -07:00
parent c5298f78cb
commit d7c3e380a5
3 changed files with 16 additions and 0 deletions

View File

@@ -240,6 +240,17 @@ class StopInterruptionFrame(SystemFrame):
pass
@dataclass
class BotSpeakingFrame(SystemFrame):
"""Emitted by transport outputs while the bot is still speaking. This can be
used, for example, to detect when a user is idle. That is, while the bot is
speaking we don't want to trigger any user idle timeout since the user might
be listening.
"""
pass
@dataclass
class MetricsFrame(SystemFrame):
"""Emitted by processor that can compute metrics like latencies.