Usage
This demo uses your device's microphone.
Features
- Visualize an agent's audio track
- Configure the speed, row and column size
- Select from five sizes:
icon,sm,md,lg, andxl - Responds to agent state with unique animations
- Apply a
transformerfunction to generate custom CSS properties for each grid cell
Installation
pnpm dlx shadcn@latest add @agents-ui/agent-audio-visualizer-grid
Props
| Prop name | Type | Default |
|---|---|---|
radius? | number | – |
interval? | number | 100 |
rowCount? | number | 5 |
columnCount? | number | 5 |
className? | string | – |
size? | enum | md |
state? | enum | connecting |
color? | `#${string}` | – |
audioTrack? | LocalAudioTrack | RemoteAudioTrack | TrackReferenceOrPlaceholder | – |
children? | ReactNode | – |
ref? | Ref<HTMLDivElement> | – |
...props? | ComponentProps<'div'> | |