Voice Orb

VoiceOrb is a props-driven, animated WebGL2 voice indicator with five session states and four built-in color palettes. It renders a circular, organic orb on a canvas and requires no voice or audio runtime.

Voice Orb
LIVE · running in a sandboxed iframe
Installed with shadcn add · 1 workaround · theme from registry.json
  • installed base item https://r.assistant-ui.com/shimmer-style.json (registry preview settings)
See how it was built

Installation

pnpm dlx shadcn@latest add @assistant-ui/elements-voice

Requires @assistant-ui in the registries of your components.json (shadcn adds official directory namespaces automatically).

Usage

usage.tsx
import { VoiceOrb } from "@/components/assistant-ui/elements/voice";<VoiceOrb state="listening" variant="blue" />
  • Show the current state of a voice conversation or audio session.
  • Provide ambient visual feedback while a voice assistant is connecting, listening, speaking, or muted.
  • Use as a compact voice-status indicator in headers, conversation controls, or centered call interfaces.
  • Use volume-driven animation when an external audio analyser already provides a numeric volume value.

Examples

Listening indicator

Use the blue palette for an active microphone state.

listening-indicator.tsx
import { VoiceOrb } from "@/components/assistant-ui/elements/voice";<VoiceOrb state="listening" variant="blue" volume={0.35} />

Speaking assistant

Use a vivid palette and live volume value while audio is playing.

speaking-assistant.tsx
import { VoiceOrb } from "@/components/assistant-ui/elements/voice";<VoiceOrb state="speaking" variant="violet" volume={0.8} className="size-24" />

Muted call state

Use the low-motion muted state with the emerald palette.

muted-call-state.tsx
import { VoiceOrb } from "@/components/assistant-ui/elements/voice";<VoiceOrb state="muted" variant="emerald" />

Connection status

Show the connecting animation before the voice session starts.

connection-status.tsx
import { VoiceOrb } from "@/components/assistant-ui/elements/voice";<VoiceOrb state="connecting" className="size-20" />

API reference

PropTypeDefaultDescription
stateVoiceOrbState"idle"The voice session state. Accepted values are "idle", "connecting", "listening", "speaking", and "muted". State parameter changes are smoothly interpolated by the animation.
volumenumber0A numeric volume value used to increase animation speed, distortion amplitude, and glow. The component does not read audio or constrain this value.
variantVoiceOrbVariant"default"The orb color palette. Accepted values are "default", "blue", "violet", and "emerald".
classNamestringnullAdditional class names merged with the default "aui-voice-orb size-16 shrink-0" canvas classes using cn().

Accessibility

  • The component renders only a canvas and does not add an accessible name, role, label, or text alternative.
  • If the orb communicates status, provide an adjacent or associated text label such as "Listening" or "Muted"; do not rely on animation or color alone.
  • If the canvas is purely decorative, keep the meaningful session status in nearby accessible text and consider the surrounding component's decorative treatment.
  • The component requires WebGL2. Provide a non-canvas status or fallback UI if the browser cannot create a WebGL2 context.
  • Animations are continuously rendered with requestAnimationFrame; respect the product's reduced-motion strategy by pairing the orb with a static textual status or conditionally avoiding animated presentation.

Docs written by openai:gpt-5.6-luna from the registry source.

Use with Coding Agent

Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.

prompt.md
Use the "Voice Orb" component (assistant-ui/elements-voice) from its shadcn registry.1. Install it with: npx shadcn@latest add @assistant-ui/elements-voice2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: state, volume, variant, className.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { VoiceOrb } from "@/components/assistant-ui/elements/voice";<VoiceOrb state="listening" variant="blue" />```

Files & dependencies

  • components/assistant-ui/elements/voice.tsx

Looks similar, elsewhere