INNER CODE UNIT · Python

_on_voice_stop

alex-jb/orallexa-ai-trading-agent · desktop_agent/main.py:238

    def _on_voice_stop() -> None:
        """Called when K is released after hold — stop and transcribe."""
        if popover is None or not voice.is_recording:
            return

        def _show_processing():
            bull.set_state("thinking")
            bull._show_bubble("\u23F3 Transcribing...", accent="#8B7EC8")
            popover.show_voice_status(False)

        bull._win.after(0, _show_processing)

        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(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…