Barge in (Pro)
ProIncluded in $99Talking over the agent, made visible: its voice wave yields while yours spreads into the space.
On this page
ProThe agent is speaking; you cut in and its wave yields, flattening and drawing back while yours rises into the space; then it takes the floor back.
The agent's voice fills the strip as a wave. The moment you start speaking, its wave yields: it squeezes toward its own end and steps back in tone while yours spreads into the space it leaves, and the label says it is listening. When you stop it takes the floor back the same way. Both waves read real levels.
Installation
Needs chatcn Pro
This command works with a Pro license, along with every Pro component.
Or start free: sign up and get three Pro components on us, with a new one every month.
Usage
import { BargeIn } from "@/components/ui/chatcn/pro/barge-in"
<BargeIn speaker={floor} agentLevel={tts.getLevel} userLevel={mic.getLevel} />Props
| Prop | Type | Notes |
|---|---|---|
speaker | "agent" | "user" | "none" | Who holds the floor |
agentLevel / userLevel | () => number | 0 to 1, read every frame |
agentName / userName | string | Default Agent and You |
Accessibility
- The waves are decorative; who is speaking is a polite
role="status".
Motion
- The floor is a critically damped spring on the agent's share; bars are
scaleYtransforms. Reduced motion: the share jumps.