This guide covers the LiveKit Agents plugin path for sending avatar speech audio to Spatius and receiving Spatius-published audio and motion data in a LiveKit room.Documentation Index
Fetch the complete documentation index at: https://docs.spatius.ai/llms.txt
Use this file to discover all available pages before exploring further.
Using the LiveKit Agents Framework
If you already use LiveKit Agents to build your voice agent, the simplest option is livekit-plugins-spatialreal. The plugin hooks into your agent pipeline and sends TTS audio to Spatius; Motion Server publishes the lip-synced audio and motion stream into your LiveKit room. For a working end-to-end reference, see AvatarKit Voice Agent Demo.How it works
- Your agent runs as usual (VAD, STT, LLM, TTS or Realtime), your current AgentSession setup.
- The plugin intercepts TTS audio from the agent and sends it to Spatius.
- Motion Server generates the avatar audio and motion stream and publishes it to the same LiveKit room.
- Your client joins the room and uses the Spatius RTC client to render the avatar.
livekit-plugins-spatialreal
Install| Variable | Required | Description |
|---|---|---|
SPATIALREAL_API_KEY | Yes | Your Spatius API key |
SPATIALREAL_APP_ID | Yes | Your Spatius app ID |
SPATIALREAL_AVATAR_ID | Yes | Avatar to use |
SPATIALREAL_CONSOLE_ENDPOINT | No | Override console endpoint |
SPATIALREAL_INGRESS_ENDPOINT | No | Override ingress endpoint |
LIVEKIT_URL | Yes | Your LiveKit server URL |
LIVEKIT_API_KEY | Yes | LiveKit API key |
LIVEKIT_API_SECRET | Yes | LiveKit API secret |
AvatarSession and start it with your agent session and room. The plugin attaches to the pipeline and sends avatar speech audio to Spatius; Motion Server publishes the avatar stream to the room.

