Waveform player
A recording you can see. The waveform is the seek bar, the played part fills in as it plays, and the pointer shows the time under it before you press. Speed steps through 1×, 1.5× and 2×.
Mara Chen at 0:12 · The second phrase lands better than v2.
When to use
- Call recordings, voice notes, podcasts and sound reviews in a product.
- Anywhere loud and quiet parts help people find their place.
When not to use
- Video; use the media player.
- Long recordings people navigate by chapter; add chapters with the media player.
Installation
pnpm dlx shadcn@latest add @caliper/waveform-player
Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
WaveformPlayer
5 props
audioPeaks
0 props
No props of its own; it accepts the native props of its root element.
Keyboard
- Space
- Activates the focused control.
Accessibility
It exposes slider semantics, with aria-label, aria-valuemin, aria-valuemax, aria-valuenow and aria-valuetext kept in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/waveform-player.mdThe index of every part is at /llms.txt.