L
LocalMode

Mic Selector · LocalMode

A microphone input-device picker with permission handling and live device enumeration — fully offline, using only browser device APIs (getUserMedia for the permission prompt, enumerateDevices for the list, a devicechange listener to stay current). Emits the chosen deviceId for a getUserMedia constraint; pairs with VoiceButton / VoiceOrb / useLiveTranscribe.

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

ui/audio/mic-selector