bun add @spatialwalk/avatarkit-rtc @spatialwalk/avatarkit
Spatius is not a video streaming service. Even when you use LiveKit as the transport layer and LiveKit Agents as the voice agent framework, no video frames are transported through LiveKit.Instead, Spatius sends lightweight motion data to the room. The client-side SDK renders that motion data into the avatar in the user’s browser, which is why your frontend needs @spatialwalk/avatarkit and @spatialwalk/avatarkit-rtc.
import { AvatarPlayer, LiveKitProvider } from '@spatialwalk/avatarkit-rtc'const provider = new LiveKitProvider()const player = new AvatarPlayer(provider, avatarView, { logLevel: 'warning',})
If you already use LiveKit Agents, add livekit-plugins-spatialreal to your agent worker. The plugin attaches to your AgentSession and sends TTS audio to Spatius; Motion Server publishes the resulting audio and motion data to the same LiveKit room.Configure the required environment variables: