Skip to content

Comment out ASR.stop() and add TODO#2547

Merged
openminddev merged 2 commits intomainfrom
fix-minor-issue
Apr 22, 2026
Merged

Comment out ASR.stop() and add TODO#2547
openminddev merged 2 commits intomainfrom
fix-minor-issue

Conversation

@openminddev
Copy link
Copy Markdown
Contributor

In src/inputs/plugins/google_asr.py, the shutdown logic that called self.asr.stop() has been commented out and replaced with a TODO note. The TODO suggests considering sending the TTS status multiple times to the ASR provider to ensure it receives the interrupt signal (particularly when mode switches occur during TTS playback). The original stop() call is left commented for reference so the behavior can be revisited when a more robust interrupt strategy is implemented.

In src/inputs/plugins/google_asr.py, the shutdown logic that called self.asr.stop() has been commented out and replaced with a TODO note. The TODO suggests considering sending the TTS status multiple times to the ASR provider to ensure it receives the interrupt signal (particularly when mode switches occur during TTS playback). The original stop() call is left commented for reference so the behavior can be revisited when a more robust interrupt strategy is implemented.
Copilot AI review requested due to automatic review settings April 22, 2026 21:21
@openminddev openminddev requested review from a team as code owners April 22, 2026 21:21
@github-actions github-actions Bot added robotics Robotics code changes python Python code labels Apr 22, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the shutdown behavior of the Google ASR input plugin by disabling the direct ASRProvider.stop() call and leaving a TODO note about implementing a more robust interrupt mechanism during TTS/mode transitions.

Changes:

  • Commented out the self.asr.stop() shutdown logic in GoogleASRInput.stop().
  • Added a TODO comment describing a potential future approach for improving interrupt reliability.

Comment thread src/inputs/plugins/google_asr.py Outdated
Comment thread src/inputs/plugins/google_asr.py Outdated
Update a comment in GoogleASRInput changing 'Todo:' to 'TODO:' to follow conventional TODO formatting. This is a non-functional change for code clarity and consistency.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@openminddev openminddev merged commit 647de56 into main Apr 22, 2026
6 checks passed
@openminddev openminddev deleted the fix-minor-issue branch April 22, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Python code robotics Robotics code changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants