@startuml lagrange-voice !include _lagrange.iuml ' Push-to-talk dictation: hold a key, speak, get text (see lagrange-voice-live.puml and ' lagrange-voice-wake.puml for the other two voice paths). autonumber actor User participant "voice/dictation.lua" as DICT participant "whisper-server\n:8178 /inference" as WHISPER participant "Ghostty / panel input" as OUT participant "Claude tab" as CLAUDE User -> DICT : hold Right Option, speak, release DICT -> DICT : ensureServer() -- starts whisper-server\non first use, idle-stops after 600s DICT -> WHISPER : POST /inference (WAV) WHISPER --> DICT : transcript text alt held Right Cmd instead DICT -> CLAUDE : claude -p --model haiku\n(rewrite into a clean prompt) CLAUDE --> DICT : rewritten text end DICT -> OUT : paste, or open a new tab and type it OUT -> OUT : "submit" said -> Enter @enduml