Talking Avatar

Talking Avatar Open Source · Free · MIT

Open-source 3D avatar demo

Everything runs in your browser: the 1 MB model listens to the audio and moves the 3D avatar's lips. Pick a voice, play your own file, or talk into your microphone.

Loading 3D avatar…

Build this into your own app with the free, MIT-licensed talking avatar SDK or follow the JavaScript API reference. See what is included for free. Want a photorealistic face instead? Talk to a Realistic Avatars avatar live.

What you can try

Sample voices
OpenAI and Fish Audio voices reading short lines in English, Spanish, French, German, Portuguese, Hindi, Arabic, Japanese and Mandarin. The model is trained on English, so other languages keep their timing but borrow the nearest English mouth shape.
Your own audio
Play an MP3 or WAV from your computer. A clip is analysed in full before it plays, in about 1% of its length.
Your microphone
Talk and the avatar mouths your words live, about 150 ms behind you (the SDK's default stream delay).
Your own avatar
Switch between the two built-in avatars (Microsoft Rocketbox, MIT), or load your own .glb model from a link or an upload, the same way you would in your app.

What happens in your browser

The audio is resampled to 16 kHz and read in 10 ms frames by a small neural network (about 260,000 parameters, plain JavaScript, no WebAssembly). Every 10 ms it picks one of 22 mouth shapes, looking 20 ms ahead. The shapes are smoothed the way people really speak (p, b and m always close the lips) and drive the avatar's morph targets, with natural blinks and brow movement on top. On held-out speakers it picks the right mouth shape for 82% of frames.

Nothing is sent to a server: the only downloads are the avatar and the 1 MB model, and your audio and microphone never leave the page. It needs WebGL 2 and Web Audio, which current Chrome, Edge, Firefox and Safari all have. How it works, in detail.

Put this avatar in your app

The demo is the open-source SDK with nothing added. Install it, point it at a .glb avatar and callspeak() with any audio, or attach a live stream from your voice agent.

npm install @interviewflowai/talking-avatar

JavaScript and React quickstart · API reference · Source on GitHub