Xibao, on any website.
A voice widget for OneSay agents. Tap her, agree once and talk. Try cutting her off mid-sentence.
Use it
Same props as the plain voice widget, so it swaps in without touching your call logic.
import { XibaoVoiceWidget } from "@onesay/ui/components/xibao-widget"export function Support({ call, user }) { return ( <XibaoVoiceWidget // whichever Xibao this user picked character={user.xibao} state={call.state} segments={call.segments} inputLevel={call.getInputLevel} outputLevel={call.getOutputLevel} onStart={call.start} onEnd={call.end} onInterrupt={call.interrupt} /> )}How each state looks
Xibao acts out every call state, so people can tell what is happening without reading a label.
- idle · endedIdle loop
- connecting · reconnectingIdle, faded and breathing
- listening · interruptedLeans in a little with your voice
- thinkingThinking it over
- speakingTalking loop
- mutedIdle, with a mic-off badge
- errorIdle, greyed out