Skip to content
Sign in
AudioSpeaker lanesMenu

Speaker lanesPro

Diarized speakers as lanes on a timeline, with rename and merge.

ProFour diarized speakers; rename one or merge two the diarizer split.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/speaker-lanes

Usage

tsx
import { SpeakerLanes } from "@/components/ui/chatcn/pro/speaker-lanes"

<SpeakerLanes speakers={speakers} segments={segments} duration={64} currentTime={time} onSeek={seek} onRename={rename} onMerge={merge} />

Each speaker keeps a chart hue in a fixed order, always beside their name, with talk time and share. Merge folds a speaker the diarizer split into another; the parent moves their segments.

Examples

States

ProRead only, and not transcribed yet.

Props

PropTypeNotes
speakers{ id, name }[]In lane order
segments{ id, speaker, start, end, text? }[]Seconds
onRename(id, name) => voidShows Rename
onMerge(from, into) => voidShows Merge into
onSeek(seconds) => voidMakes segments buttons

Accessibility

  • Segments carry their times and text as their names.
  • The line being spoken is a polite live region under the lanes.