Components (172)
Voice Session
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading Voice Session…
Usage
import { VoiceSession } from "ui-kit/components/voice-session";Props
| Prop | Type | Default | Description |
|---|---|---|---|
agent* | { id: string; name: string; color?: string; } | — | The agent on the call – its pixel mark is drawn from the id |
title | string | — | Heading of the card – the agent's name by default |
subtitle | string | — | What the call is about, after the agent's name, e.g. "Billing support" |
personName | string | "You" | The person's name on their lane and in the transcript |
personAvatar | string | — | The person's photo next to their name – their initial in a circle without one |
status* | VoiceStatus | — | — |
turns* | VoiceTurn[] | [] | The conversation so far, oldest first |
levels | { person?: number; agent?: number; } | — | How loud each side is right now, 0 to 1 – update it as often as you like (e.g. from an AnalyserNode) |
initialLevels | { person?: number; agent?: number; }[] | — | The last seconds before the card mounted, oldest first, one entry per 90ms – the lanes start filled, e.g. when a call is reopened |
startedAt | number | — | When the call started (Date.now()) – the footer counts from here |
budgetMs | number | 800 | Voice to voice above this is over budget |
paused | boolean | false | The lanes stand still and the call time stops |
onPauseChange | (paused: boolean) => void | — | — |
onBargeIn | () => void | — | Barge in – take over from the agent |
settings | VoiceSettingsSection[] | — | What the settings icon in the header opens – the icon shows only with it |
showTranscript | boolean | true | The words of the turn above the lanes |
className | string | — | — |