Skip to main content
Use this guide when your Android app already has avatar speech audio and needs AvatarKit to send that audio to Motion Server, receive motion data, and render the avatar locally.

Android Direct Mode demo

Kotlin / Compose reference implementation for the Direct Mode path.

SDK package setup

Add the dependency to your build.gradle.kts:
build.gradle.kts
dependencies {
    implementation("ai.spatius:avatarkit:1.2.0")
}

Integration flow

1

Create credentials

Create an App ID and Avatar ID in Spatius Studio, then mint a Session Token from your backend. See Credentials.
2

Initialize AvatarKit

Initialize the Android SDK with your App ID, Avatar ID, Session Token, and selected region.
3

Send avatar speech audio

Send PCM16 mono avatar speech audio to AvatarKit. Motion Server returns motion data, and AvatarKit renders the avatar locally. For audio source and timing guidance, see Audio.

Next steps

Android SDK reference

Complete Android API documentation.

Browse all demos

Every runnable demo by platform and integration path.