INNER CODE UNIT · Python
_on_voice_start
alex-jb/orallexa-ai-trading-agent · desktop_agent/main.py:213
def _on_voice_start() -> None:
"""Called when K is held long enough — start recording."""
if popover is None:
return
if not _voice_deps_ok:
bull._win.after(0, lambda: bull._show_bubble(
f"pip install {' '.join(_voice_dep_missing)}",
accent="#C44536"))
return
try:
voice.start_recording()
except Exception as exc:
bull._win.after(0, lambda: bull._show_bubble(
f"Mic error: {exc}", accent="#C44536"))
return