Overview of Voice Selector features
mainThe VoiceSelector is a composable dialog component designed for AI voice selection. Key capabilities include:
- Composable Architecture: Granular control via sub-components like
<VoiceSelectorTrigger />,<VoiceSelectorContent />, and<VoiceSelectorItem />. - Search & Filtering: Real-time filtering of voices via an integrated search input.
- Metadata Display: Support for displaying voice attributes such as gender (with icons), accent (with flags), and age.
- Voice Preview: Built-in support for play/pause/loading states for voice previews.
- State Management: Uses React Context to allow nested components to access the selection state.
- Navigation: Full keyboard navigation and support for both controlled and uncontrolled component patterns.