# Stork Live: React

The Stork Live React component.

Tested 2026-12-02. HTML: https://www.stork.ai/live/docs/react

## Before you start

A React app.

## Install

```sh
npm install stork-live
```

## Code

```jsx
// 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.
