Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Voice Picker

ProNew

Choose an agent's voice from radio cards, each with a sample button that shows its progress as a ring. Listening does not select, so voices can be compared first.

Installation

pnpm dlx shadcn@latest add @viewport/voice-picker

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
voices*Voice[]—
value*string—
onValueChange*(id: string) => void—
labelstring

Accessible name for the group.

"Voice"
classNamestring—

Accessibility

  • A radio group: arrow keys move and select; the whole card is the target.
  • Sample buttons are named per voice and report whether they are playing.
  • Only one sample plays at a time, and nothing plays on its own.