AI-05AIUpdated, November 16, 2026
AI Voice
Voice input with a scrolling waveform, then a take you can play back, discard or send.
PROSlash Command Menu and more like it are in Kokonut UI Pro
Installation
AI Voice is a free, open-source React component in the Kokonut UI AI collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/ai-voice.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/ai-voiceOr add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/ai-voice.tsx.
npm install lucide-react motionUsage
import AI_Voice from "@/components/kokonutui/ai-voice";
export default function Example() {
return <AI_Voice />;
}Props
classNamestringExtra classes for the root element.
demobooleanDefault truePlays a record, review and send loop until the first click.
levelnumberLive input level from 0 to 1, e.g. from your own audio analyser. When omitted, the waveform plays a simulated voice.
onListeningChange(listening: boolean) => voidCalled with the new state when the user starts or stops recording.
onStop(duration: number) => voidCalled with the take's length in seconds when recording stops.
onSend(duration: number) => voidCalled when the user sends the reviewed take.
onDiscard() => voidCalled when the user throws the take away.
Dependencies
| Needs | Version | Comes from |
|---|---|---|
lucide-react | ^0.556.0 | npm, installed by the CLI |
motion | ^12.23.25 | npm, installed by the CLI |
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.

