Skip to main content

Agent Audio Visualizer – Wave

A shader based audio visualization of a sine wave.

Usage

This demo uses your device's microphone.

Features

  • Visualize an agent's audio track
  • Customize the color, line width and smoothing of the wave
  • Select from five sizes: icon, sm, md, lg, and xl
  • Responds to agent state with unique animations

Installation

pnpm dlx shadcn@latest add @agents-ui/agent-audio-visualizer-wave

Props

Prop nameTypeDefault
size?
enum
lg
state?
enum
speaking
color?
`#${string}`
colorShift?
number
0.05
lineWidth?
number
blur?
number
audioTrack?
LocalAudioTrack | RemoteAudioTrack | TrackReferenceOrPlaceholder
className?
string
ref?
Ref<HTMLDivElement>
...props?
ComponentProps<'div'>