INNER CODE UNIT · Python
_finish
alex-jb/orallexa-ai-trading-agent · desktop_agent/main.py:250
def _finish():
try:
text, lang = voice.stop_and_transcribe()
except Exception as exc:
bull._win.after(0, lambda: bull.set_state("idle"))
bull._win.after(0, lambda: bull._show_bubble(
"Transcribe error", accent="#C44536"))
return
if text:
def _send():
bull._show_bubble("\u2713 Got it!", accent="#A89F8B")
popover._process_input(
text, popover._effective_lang(lang))
bull._win.after(0, _send)
else:
def _no_speech():
bull.set_state("idle")