Voice Picker
ProNewChoose 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
| Prop | Type | Default |
|---|---|---|
| voices* | Voice[] | — |
| value* | string | — |
| onValueChange* | (id: string) => void | — |
| label | stringAccessible name for the group. | "Voice" |
| className | string | — |
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.