Skip to content

Commit

Permalink
Adds a log to see what caused an interrupt (#708)
Browse files Browse the repository at this point in the history
* Adds a log to see what caused an interrupt
  • Loading branch information
vocode-petern authored Sep 26, 2024
1 parent a40c59b commit c3c41f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vocode/streaming/streaming_conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3c41f2

Please sign in to comment.