Audiobook Reader Block
- from @localmode
- by LocalMode
Long-text streaming synthesis (useStreamSpeech) with early playback that begins before synthesis completes, a live clause counter + current-clause display, speed control (0.5x–2.0x), pause/resume/stop transport, a WAV download (audio-{voiceId}-{timestamp}.wav), a one-shot single-take synthesis path, a 10,000-character limit with pre-flight validation, and one-click sample texts. Kokoro downloads only on the first synthesize/stream action. Fully on-device. Split from ui/blocks/audio-studio (Audiobook tab).
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @localmode/ui/blocks/audio/audiobook-readerRegistry dependencies8
- @localmode/ui/audio/voice-picker
- @localmode/ui/audio/streaming-speech-panel
- @localmode/ui/audio/waveform-activity-bars
- @localmode/ui/audio/audio-scrub-player
- @localmode/ui/input-controls/parameter-slider
- @localmode/ui/input-controls/char-limit-indicator
- @localmode/ui/local-first/model-loading-panel
- @localmode/ui/results/error-alert
