Complete, working React Native code for every mode and the patterns you'll reach for most.
All examples authenticate with getSessionToken. Swap fetchSessionToken for your own backend call — see AvatarProvider → Authentication.
A complete voice conversation screen with status tracking and event logging.
Send text programmatically and manage sessions with your own UI.
Zero server calls during playback. Pre-rendered audio plays locally with full lip-sync. (Auth is still required to load the avatar.)
Robust pattern covering mic denial, timeout, and unexpected drops.
Feed the avatar real-time information about what the user is viewing.
addLiveContext defaults to append — each call adds to the existing context. Pass update: true to replace it. Keep context strings concise and factual; max 2000 characters.
Use your own audio source (ElevenLabs, Play.ai, etc.) with the avatar's lip-sync. The audio must be raw PCM (16 kHz, mono).