Skip to main content

GitHub Repository

Kotlin + Compose sample implementing the avatar pipeline: VAD → ASR → LLM → TTS → AvatarKit.
This quickstart targets the Direct Mode path on Android. The sample app pastes the Session Token in the UI rather than fetching from a backend — convenient for first-run validation.

Prerequisites

  • Android Studio (latest stable)
  • JDK 17
  • Android API 24+ device or emulator (arm64-v8a, real device recommended)
  • Spatius credentials. See Credentials.
  • An OpenAI API key for the ASR + LLM + TTS pipeline used by the sample.

Run it

1

Clone and configure

Fill local.properties:
Session Token is not configured in files — paste it in the app UI at runtime.
2

Build

Install with Android Studio or adb install.
3

Start a conversation

In the running app:
  1. Initialize the avatar.
  2. Paste your Session Token.
  3. Tap Start Conversation.
  4. Speak and pause to trigger a round.

What this validates

Next steps

Android SDK reference

Complete Android API documentation.

Browse all demos

Web (multi-framework) and iOS samples in addition to Android.