React
Stork Live · tested 2026-12-02
The Stork Live React component.
Before you start
A React app.
Install
npm install stork-liveCode
// npm install stork-live
import { StorkLiveAvatar } from 'stork-live/react'
<StorkLiveAvatar avatar="a" siteKey="YOUR_SITE_KEY" audio={agentAudioTrack} style={{ width: 360 }} />Pass the agent's audio as the audio prop. TypeScript types are included.
Check it works
A face that blinks, with the Powered by stork.ai mark in the corner. When your audio plays, the lips move.
If it does not
- You hear the voice twice. The avatar plays the sound itself. Mute or remove the element that played it before.
- No sound until a click. Browsers only start sound after a click or tap. Create the AudioContext in a click handler and set it as live.ctx before the first speak.
- A black box. The browser has no WebGL 2.
Next
Change the letter to change the face: 'a' to 'h' are free. To use a face of your own without the mark, see Your own avatar.
