A voice conversation panel that reflects the live state of an exchange — listening, processing, or speaking — with a transcript and controls.
Loading demo: voice-session-real-world
npx sdaia-ui@latest add voice-session
import { VoiceSession } from '@/components/ui/VoiceSession';1<VoiceSession2variant="neutral"3state="listening"4title="Voice session"5model="SDAIA Voice · GPT-5.5"6language="English"7timer="00:42"8speaker="You · live"9speakerMeta="recognizing…"10transcript="Summarize the key risks in the AI governance report"11/>
Capturing the user’s voice input — pulse-ring orb, info-blue accent, and a live transcript.
Loading demo: voice-session-neutral
Working on the request — a muted waveform and a warning-amber “Processing request…” state.
Loading demo: voice-session-processing
Voicing the reply — an active brand-green waveform, the assistant bubble, and an audio player.
Loading demo: voice-session-speaking
Prop | Type | Default | Required |
|---|---|---|---|
variant | 'brand' | 'neutral' | 'outline' | 'neutral' | optional |
state | 'listening' | 'processing' | 'speaking' | 'listening' | optional |
title | ReactNode | 'Voice session' | optional |
model | ReactNode | — | optional |
language | ReactNode | — | optional |
timer | ReactNode | — | optional |
statusLabel | ReactNode | per state | optional |
stageTitle | ReactNode | per state | optional |
stageHint | ReactNode | labels.stageHintIdle (idle only) | optional |
speaker | ReactNode | — | optional |
speakerMeta | ReactNode | — | optional |
transcript | ReactNode | — | optional |
audioCurrentTime | string | — | optional |
audioDuration | string | — | optional |
audioProgress | number | — | optional |
showControls | boolean | true | optional |
dir | 'ltr' | 'rtl' | — | optional |
labels | Partial<VoiceSessionLabels> | — | optional |
as | ElementType | 'div' | optional |
How this component behaves at the three system breakpoints. Spacing and type tokens switch automatically at 768px and 1280px.
| Screen | Behavior |
|---|---|
| Desktop (1280px and up) | Fills the width of its container, with the title, model chip and status on one row. |
| Tablet (768–1279px) | Same layout as desktop, with the tablet token values. |
| Phone (under 768px) | Same layout with the mobile token values. The status group wraps to a second line instead of cutting off the model chip, and the controls wrap. |