Skip to content

fix(eou): only reset speech/speaking time when no new speech#5083

Open
chenghao-mou wants to merge 1 commit intomainfrom
chenghao/fix/eou-clearing
Open

fix(eou): only reset speech/speaking time when no new speech#5083
chenghao-mou wants to merge 1 commit intomainfrom
chenghao/fix/eou-clearing

Conversation

@chenghao-mou
Copy link
Member

Only resets user speech-related timestamps when there is no new speech when committing a turn, by comparing the captured last_speaking_time and the latest self._last_speaking_time

Only resets user speech related timestamps when there is no new speech when committing a turn
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

Copy link
Contributor

@longcw longcw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! one question: any chance the race conditions happen to the _last_final_transcript_time as well?

@chenghao-mou
Copy link
Member Author

lgtm! one question: any chance the race conditions happen to the _last_final_transcript_time as well?

If there is a new final transcript, we will call the _run_eou_detection, which cancels the old _end_of_turn_task. So it should be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants