Commit Graph
2 Commits
Author SHA1 Message Date
Mao NakamotoandClaude Opus 4.8 879b18ae68 feat(voice): Grok-style recording UX + enable self-hosted Whisper fallback on box
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>
2026-06-26 12:37:07 +02:00
g-butandClaude Sonnet 4.6 9241b7db67 feat(beacon): local Whisper mic transcription via MediaRecorder
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>
2026-05-08 11:49:33 +02:00