Audio device permission, enumeration, selection and capture in one controller. `enable()` is the whole flow in one call โ ask permission, enumerate, resolve the device, open the stream โ so a microphone can be one tap anywhere. Permission is modelled explicitly (unknown / prompt / granted / denied / unavailable) instead of inferred from failure, output sinks are feature-detected, and the remembered choice is restored without ever prompting on load.
pnpm dlx shadcn@latest add "https://pluginui.com/r/core-use-audio-input-devices.json"No files included in this item.