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.
GitHub Repository
SwiftUI sample implementing the avatar pipeline: VAD → ASR → LLM → TTS → AvatarKit.
Prerequisites
- Xcode 16+
- iOS 16+ device or simulator (real device recommended for mic input)
- Spatius credentials. See Credentials.
- App ID — from Spatius Studio
- Avatar ID — from the Avatar Library
- Session Token — see Session token API
- An OpenAI API key for the ASR + LLM + TTS pipeline used by the sample.
Run it
Configure credentials
Edit
AvatarDemo/Config.swift:Session Token is not stored in Config.swift — paste it in the app UI at runtime.Build and run
Use Xcode to build and run on a connected iOS device or simulator. The
AvatarKit.xcframework is downloaded automatically on first build from the configured release.What this validates
| Check | What it tells you |
|---|---|
| Avatar renders | App ID + Avatar ID are correct, framework is correctly embedded. |
| Conversation starts | Session Token is valid, Motion Server connection works. |
| Avatar speaks | Full pipeline (mic → ASR → LLM → TTS → AvatarKit) is wired up end to end. |
Next steps
iOS SDK reference
Complete iOS API documentation.
Browse all demos
Web (multi-framework) and Android samples in addition to iOS.