Skip to content
Uxelith
Prov1.0.1AI & Agents

Voice Agent

The face of a voice AI: a WebGL orb that follows the sound of its voice, words lighting up as spoken, a call bar with mute or push to talk, and three layouts: call screen, page widget and aura.

Installs with Uxelith ProHow
Licence
Pro
Packages
2
Updated
12 Nov 2026
Live

Installation

Usage

example.tsx
"use client"

import * as React from "react"

import { VoiceAgent, type VoiceState } from "@/components/voice-agent"

export function ReservationCall() {
  const [state, setState] = React.useState<VoiceState>("idle")
  const [startedAt, setStartedAt] = React.useState<number>()
  const [muted, setMuted] = React.useState(false)
  // Wire this to your voice SDK: pass its audio element and microphone stream
  // as agentAudio and userAudio, and set the state from its events.
  return (
    <VoiceAgent
      agent={{ name: "Nova", role: "Reservations" }}
      state={state}
      active={startedAt !== undefined}
      startedAt={startedAt}
      muted={muted}
      onMutedChange={setMuted}
      onStart={() => {
        setStartedAt(Date.now())
        setState("listening")
      }}
      onEnd={() => {
        setStartedAt(undefined)
        setState("idle")
      }}
    />
  )
}

Props

PropTypeDefaultDescription
agent{ name, role?, colors? }—Who is talking. Changing agents blends the orb's two colours into the next pair.
stateVoiceState—idle, connecting, listening, thinking, speaking, interrupted, reconnecting or handoff. You run the call; it draws each one.
layout"call" | "widget" | "aura""call"A call screen, a pill for the corner of a page that opens into a panel, or a glow along the bottom of what it fills.
agentAudio / userAudioMediaStream | HTMLMediaElement—The agent's voice (the orb follows it) and your microphone (the waveform follows it).
levels / userLevel() => [low, mid, high] / () => number—Read levels yourself instead, from any SDK; called every frame.
caption{ who, text, spoken?, interrupted? }—What is being said now: spoken words light up, the rest wait faded, or are struck through when cut off.
transcript / showTranscriptVoiceMessage[] / boolean— / falseThe conversation so far, with quiet notes for transfers and dropped lines.
active / startedAtboolean / numberfalse / —A call is in progress, and when it started, for the timer.
muted / onMutedChangeboolean / (muted) => voidfalseThe mute button, also on Space while focus is inside.
pushToTalk / onTalkStart / onTalkEndboolean / () => voidfalseTalk only while holding the button or Space.
connection / noisy{ quality, latency? } / boolean—Shows the line's quality and delay, and warns about a noisy room.
activityReactNode—What the agent is doing, like a tool call.
onStart / onEnd / onSend() => void / (text) => void—Start and end the call (Escape ends it), and typing instead of talking.
open / defaultOpen / onOpenChangebooleanfalseThe widget's panel.

Accessibility

  • A labelled region; screen readers hear the state and each finished line, not every word.
  • Mute and push to talk are real buttons with aria-pressed; Space mutes or talks and Escape ends the call while focus is inside.
  • People can type instead of talking.
  • The widget's orb is a button with aria-expanded.
  • Under prefers-reduced-motion the orb holds its shape and only glows with the voice.

Changelog

  1. v1.0.1Latest

    Words still to be spoken are muted instead of faded, so the caption keeps full text contrast at every moment of a line.

  2. v1.0.0

    First release.

More in AI & Agents

All 9 in AI & Agents
  • AI & AgentsPro

    Agent Run Monitor

    A live view of AI agents working together: each agent's steps on one timeline, cost against a budget, tokens, every step's input and output, failures, and an approval card when a step needs a person.

  • AI & AgentsPro

    Approval Card

    The moment an AI agent asks before acting: what it wants to do, why, and exactly what will happen. Approve is held for a beat so it's never an accident; Deny is one press. Then it folds into a one-line record.

  • AI & AgentsPro

    Artifact Canvas

    The workspace beside an AI chat: what the model writes opens next to the conversation, streams in line by line, keeps every version and shows what changed down to the word. Preview, read, ask about code, download.