Skip to content
Browse docs and components

Voice Orb

voice-orb

The presence of a voice assistant: a liquid WebGL sphere that drifts while idle, gathers light as you speak, stirs while thinking and ripples as it speaks. Painted from your theme tokens, and fed by a level or an AnalyserNode.

Responsive

Install

$npxshadcnadd@forme/voice-orb

Adds the component, its registry dependencies, and the token stylesheet you import once.

Usage

import { VoiceOrb } from "@/components/forme/voice-orb/voice-orb";

<VoiceOrb state={state} analyser={analyser} size={160} />

When to use

Reach for it

  • The presence of a voice assistant: idle, listening, thinking and speaking in one visual.

Use something else

  • Showing loudness precisely — use a meter or a waveform for that.
  • Several on screen at once. Each runs its own WebGL loop.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

VoiceOrb

The presence of a voice assistant: a liquid sphere that drifts while idle, draws light into its core as you speak, stirs while it thinks, and ripples its rim with its own voice.

PropTypeDefaultDescription
state*'idle' | 'listening' | 'thinking' | 'speaking'—
levelnumber0Input or output loudness, 0–1. The orb swells with it while listening or speaking.
analyserAnalyserNode | nullnullA caller-owned analyser to read loudness from instead of level. The orb samples it once per frame and never opens a microphone itself.
sizenumber160Diameter in pixels.
classNamestring—

Accessibility

  • It is an image whose label names the current state, so a screen reader hears “listening” or “thinking”.

Motion

  • Each state eases toward its own flow, swirl and glow, so switching state is a glide, never a cut.
  • The render loop sleeps offscreen and in background tabs.
  • Reduced motion draws one still frame per state; without WebGL a static gradient sphere stands in.