Skip to content

Commit

Permalink
Warn and return on empty transcripts (livekit#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
ripperdoc authored Jun 1, 2023
1 parent e779b04 commit 49acbdb
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 @@ -93,6 +93,9 @@ def __init__(

async def process(self, transcription: Transcription):
self.conversation.mark_last_action_timestamp()
if transcription.message.strip() == "":
self.conversation.logger.info("Ignoring empty transcription")
return
if transcription.is_final:
self.conversation.logger.debug(
"Got transcription: {}, confidence: {}".format(
Expand Down

0 comments on commit 49acbdb

Please sign in to comment.