Saurabh

Voice Orb

Shaders 36

About

A WebGL shader-driven liquid sphere that breathes and ripples in response to voice activity, for AI voice assistant and realtime call UIs.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Voice Orb to your project and fits it to your theme.

Code

How Voice Orb is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { VoiceOrb } from "@/components/ui/voice-orb";
import {
  useAnimationFrame,
  useMotionValue,
  useReducedMotion,
} from "motion/react";

export function VoiceOrbPreview() {
  const activity = useMotionValue(0);
  const reducedMotion = useReducedMotion();
  useAnimationFrame((time) => {
    if (reducedMotion) {
      activity.set(0);
      return;
    }
    // Simulated syllables and pauses demonstrate activity without opening audio.
    const t = time / 1000;
    const phrase = Math.max(0, Math.sin(t * 0.85));
    const syllable = Math.max(0, Math.sin(t * 9.3 + Math.sin(t * 2.1)));
    activity.set(phrase * (0.12 + syllable ** 2 * 0.72));
  });
  return (
    <div className="flex w-full h-screen items-center justify-center">
      <VoiceOrb
        activity={activity}
        aria-label="Voice visualization"
        className="w-64 sm:w-72"
      />
    </div>
  );
}

export default VoiceOrbPreview;

Dependencies

More by Saurabh

View all
  • BeUI Tilt Card

    BeUI Tilt Card

    390
  • BeUI Expandable Tabs

    BeUI Expandable Tabs

    373
  • BeUI File Upload

    BeUI File Upload

    310
  • Animated Sidebar

    Animated Sidebar

    294
  • BeUI Bouncy Accordion

    BeUI Bouncy Accordion

    220
  • Loader

    Loader

    214
  • BeUI Create Menu

    BeUI Create Menu

    207
  • BeUI Expanable Action Bar

    BeUI Expanable Action Bar

    207

More in Shaders

View all
  • Glass Fold

    Glass Fold

    498
  • Shader Animation

    Shader Animation

    3.9K
  • Parallel Waves

    Parallel Waves

    13
  • Phosphor 30

    Phosphor 30

    314
  • Stream Search

    Stream Search

    20
  • Radial Shader

    Radial Shader

    149
  • Illos Knowledge Sources

    Illos Knowledge Sources

    55
  • Paper design shader Background

    Paper design shader Background

    700

Explore more

Part of beUi — browse the full library on 21st.dev.