Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions src/inputs/plugins/google_asr.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,13 @@ def stop(self):
except Exception as e:
logging.warning(f"Failed to close Zenoh ASR session: {e}")

if self.asr:
try:
self.asr.stop()
logging.info("ASR provider stopped")
except Exception as e:
logging.warning(f"Failed to stop ASR provider: {e}")
# Todo:
Comment thread
openminddev marked this conversation as resolved.
Outdated
# Consider sending the TTS status multiple times to ASR provider to ensure that
# the ASR provider properly receives the interrupt signal,
# especially in cases where the mode switch happens during TTS playback
# if self.asr:
# try:
# self.asr.stop()
# logging.info("ASR provider stopped")
# except Exception as e:
# logging.warning(f"Failed to stop ASR provider: {e}")
Comment thread
openminddev marked this conversation as resolved.
Outdated
Loading