UX — the composer mic was a bare icon. While recording/transcribing it now
shows a Grok-style overlay over the composer: a live animated waveform, a
pulsing record dot, an elapsed timer, and cancel (✕) / confirm (✓) controls
(globals.css ui-voice-*). Transcript still appends to the input.
Backend (a)+(b): the route already orchestrates Groq-first → local-Whisper
fallback. Two fixes to make the fallback real on the box: (1) the local path was
gated by isRuntimeAvailable() (false on the stateless box) — now also enabled by
TRANSCRIBE_LOCAL_AVAILABLE so the box runs it; (2) transcribe.py switched from
openai-whisper (heavy torch) to faster-whisper (CTranslate2 int8, no torch) —
far lighter on the shared CX22. Groq (whisper-large-v3-turbo) verified working.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace Web Speech API (cloud, silent failures) with MediaRecorder →
POST audio blob → Python Whisper (local, no internet) pipeline. Adds
real-time waveform visualisation, recording timer, and a clear
idle/recording/processing state machine with never-silent error display.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>