L
LocalMode

Voice Button · LocalMode

A press-to-record / release-to-transcribe push-to-talk button with an explicit visual state machine: idle -> recording (pulse rings + live waveform) -> processing (loader) -> success/error. Recording uses getUserMedia/MediaRecorder (useVoiceRecorder); transcription routes to local Whisper (useTranscribe). Controlled — the app advances the state.

npx shadcn@latest add https://localmode.ai/r/ui/audio/voice-button.json
Preview Voice Button on LocalMode's site (opens in a new tab)
Loading the source for ui/audio/voice-button…

ui/audio/voice-button