Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Call Transcript

ProNew

A call as it was said: caller and agent on opposite sides, events such as transfers between them, words still being recognized shown lighter, and the wait before each agent reply.

Installation

pnpm dlx shadcn@latest add @viewport/call-transcript

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
turns*TranscriptTurn[]—
agentNamestring

The names shown for the two sides.

"Agent"
callerNamestring"Caller"
liveboolean

The call is in progress: new turns scroll into view and the last one is announced.

false
currentTimenumber

The playback position in seconds. The turn being spoken is marked.

—
onSeek(seconds: number) => void

Makes each turn a button that seeks to its start.

—
slowAfterMsnumber

A reply slower than this is flagged, in milliseconds.

1200
classNamestring—

Accessibility

  • A log region: new turns are announced politely during a live call.
  • Following the live edge stops when you scroll up, and a button returns to it.
  • Slow replies are flagged in words as well as color.
  • With seeking on, each turn is a button and the one playing is marked current.