Skip to Content
UI Kit
Components (172)

Voice Session

Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.

Open preview
Loading Voice Session…

Usage

import { VoiceSession } from "ui-kit/components/voice-session";

Props

PropTypeDefaultDescription
agent*{ id: string; name: string; color?: string; }—The agent on the call – its pixel mark is drawn from the id
titlestring—Heading of the card – the agent's name by default
subtitlestring—What the call is about, after the agent's name, e.g. "Billing support"
personNamestring"You"The person's name on their lane and in the transcript
personAvatarstring—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
startedAtnumber—When the call started (Date.now()) – the footer counts from here
budgetMsnumber800Voice to voice above this is over budget
pausedbooleanfalseThe lanes stand still and the call time stops
onPauseChange(paused: boolean) => void——
onBargeIn() => void—Barge in – take over from the agent
settingsVoiceSettingsSection[]—What the settings icon in the header opens – the icon shows only with it
showTranscriptbooleantrueThe words of the turn above the lanes
classNamestring——

On this page