From c3c41f2fef170b46122e59e801a05780b551fdc0 Mon Sep 17 00:00:00 2001 From: vocode-petern Date: Thu, 26 Sep 2024 14:23:03 -0700 Subject: [PATCH] Adds a log to see what caused an interrupt (#708) * Adds a log to see what caused an interrupt --- vocode/streaming/streaming_conversation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vocode/streaming/streaming_conversation.py b/vocode/streaming/streaming_conversation.py index a880faf3a..e6c7d746d 100644 --- a/vocode/streaming/streaming_conversation.py +++ b/vocode/streaming/streaming_conversation.py @@ -273,6 +273,9 @@ async def process(self, transcription: Transcription): ) self.has_associated_unignored_utterance = not transcription.is_final if self.conversation.current_transcription_is_interrupt: + logger.debug( + f"Interrupting transcription: {transcription.message}, confidence: {transcription.confidence}" + ) logger.debug("sent interrupt") logger.debug("Human started speaking") self.conversation.is_human_still_there = True