Audio player with voice selection and playback controls.
Inline voice playback widget with voice selection. Requires a TTS API backend.
VoicePlayer renders as an inline play button that expands to show voice selection and playback controls.
Requires /api/voices and /api/tts endpoints.
<VoicePlayer text="Hello world" voiceId="en-US-female-27" voiceName="Sarah" /><script>
import { VoicePlayer } from "jatui"
</script>
<VoicePlayer />| Prop | Type | Default | Description |
|---|---|---|---|
text | string | - | Text to speak |
voiceId | string | - | Selected voice ID |
voiceName | string | - | Display voice name |
autoPlay | boolean | false | Auto-play on load |
expandDirection | "left" | "right" | "left" | Menu expand direction |