Skip to content

improve should_discard check#5676

Open
chenghao-mou wants to merge 4 commits intomainfrom
chenghao/fix/stt_skip_check
Open

improve should_discard check#5676
chenghao-mou wants to merge 4 commits intomainfrom
chenghao/fix/stt_skip_check

Conversation

@chenghao-mou
Copy link
Copy Markdown
Member

No description provided.

Comment on lines +518 to +524
# warn once per skipping window
if skip_stt and not self._skip_stt_warning_started:
self._skip_stt_warning_started = True
logger.warning("skipping stt due to aec warmup or discard_audio_if_uninterruptible")
elif not skip_stt and self._skip_stt_warning_started:
self._skip_stt_warning_started = False

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should we move this to the agent activity and add both logs for discard started and ended?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Changed this to info too. Since normally it is expected when aec or discard are enabled.

@chenghao-mou chenghao-mou marked this pull request as ready for review May 8, 2026 09:05
@chenghao-mou chenghao-mou requested a review from a team May 8, 2026 09:05
Copy link
Copy Markdown
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 2 additional findings.

Open in Devin Review

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