Skip to content

Call Overlay

A call and recording overlay for AI voice apps, built on Live Activity. A pill with the clock, mute and end opens into a card with who is speaking, hold, record and a confirmed end. Controlled: you pass the state and handle the events, and the component never opens a microphone. The Pro layer adds a live level meter, a transcript line and a device menu.

On this page
Used for
  • Voice agent call
  • Recording in progress
  • Support line
  • Voice assistant
  • Meeting capture

Examples

Status
Speaker

Recording

Live levels, transcript and devicesProPro

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Installation

npx knowns-ui@latest add call-overlay
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

name / avatar
string / ReactNode
The other side of the call. Without an avatar, initials.
status
"connecting" | "live" | "hold" | "ended"
Drives the dot and the word. Muted and recording are flags, not states.
muted / onMutedChange
boolean / (muted) => void
Defaultfalse
Your microphone is off. The overlay shows it and reports the press; you turn the microphone off.
onHoldChange
(hold: boolean) => void
Hold was pressed (true) or Resume was pressed (false). You set status.
recording / onRecordingChange
boolean / (rec) => void
Defaultfalse
A red dot in the pill and the word Recording. You start and stop the recorder.
elapsedMs
number
The clock, in milliseconds. You own it: useCallTimer is one way.
speaker
"agent" | "you" | null
Defaultnull
Who is speaking, for the line in the card.
onEnd / confirmEnd
() => void / boolean
Defaulttrue
End asks first, inline in the card (never a native dialog), then calls onEnd.
expanded / defaultExpanded / onExpandedChange
boolean
Defaultfalse
The card is open. The row is a button with aria-expanded.
meter / transcript / devices
ReactNode
Slots the Pro layer fills: a level meter, a line of speech and a device menu.
tone
"auto" | "inverse" | "surface"
Default"surface"
surface is the page's own card lifted with a hairline. inverse is a dark pill in light mode and a light one in dark mode; its destructive button reads best on a dark page.
RecordingOverlay
paused, onPausedChange, onStop, onDiscard, elapsedMs, title?
A red dot, the clock, pause or resume and stop. Discard asks first.
LiveCallOverlay (Pro)
stream?, agentLevel?, transcript?, microphones?, speakers?
CallOverlay plus a meter that follows stream or agentLevel, a transcript line and a device menu.
useMicLevel (Pro)
(stream, { everyMs, history, active }) => { level, levels }
An AnalyserNode reading, 0 to 1. You open the microphone; the hook never asks for permission or stops your tracks.

What it handles

  1. 01Shows a call as a pill: a status dot, the word for the call, the clock, mute and end, one row tall.
  2. 02Opens into a card with who is speaking, hold, record and an inline step that asks before it ends the call.
  3. 03Treats muted and recording as flags on a live call, so the word reads Live, Muted or Recording without a state for every pair.
  4. 04Speaks to a screen reader once when the state changes, with the time so far, and never on a tick of the clock.
  5. 05Records in a separate pill with a red dot, pause or resume, stop, and a Discard that asks first.
  6. 06Follows a microphone with a level meter from a MediaStream you open, with a transcript line and a device menu (Pro).

States

First render
Nothing. The pill paints as it is, open or shut
none
Open or close
The card folds open under the row; closing is faster
180ms, ease out (120ms to close)
State word changes
Connecting, Live, Muted, On hold or Ended swaps in place
180ms, ease out
Press a control
Filled and outlined buttons press in to 0.97
120ms, ease out
Mute, hold or record
The button fills to show it is on; the dot and the word follow
120ms, ease out
Each second
The clock text changes, nothing moves
none
Level meter (Pro)
Bars rise and fall with the voice, a little at a time
120ms, ease out
Reduced motion
Every change lands at once; the meter becomes bars that light up
0ms

Works with

When to use

When to use

  • A voice agent call in the corner of your app: who you are talking to, how long, mute and end, always within reach.
  • A recording in progress with pause, stop and discard, in a pill that does not cover the page.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Call Overlay to my app and wire it to my own data.
  • I need a voice agent call in the corner of your app: who you are talking to, how long, mute and end, always within reach. Set that up with the Knowns UI Call Overlay.
  • Which Call Overlay props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "call-overlay" }) and search_docs({ query: "call overlay" }).

Need help?

Stuck on Call Overlay, or found something off? We read every message.