Interactive, time-synced transcript segments with click-to-seek — render-props root plus styled segment buttons.
Synced playback
Play the audio and watch segments highlight by currentTime. Click a word to seek via onSeek.
Loading…
Installation
CLI
Usage
transcription.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| segments | TranscriptionSegment[] | — | Timed text segments (`text`, `startSecond`, `endSecond`). Empty text is filtered out. |
| currentTime | number | 0 | Playback position in seconds (controlled). |
| onSeek | (time: number) => void | — | Called when a segment is clicked (seek to `startSecond`). Enables pointer styling. |
| children | (segment, index) => ReactNode | — | Render prop for each non-empty segment — typically `TranscriptionSegment`. |