Skip to main content

iOS scenario demo

Run four complete AvatarKit scenes on an iOS device. Current demo integration: Agora Convo AI.

Prerequisites

  • macOS with Xcode and XcodeGen
  • A physical iOS device; AvatarKit and Agora do not include simulator slices in this demo
  • Python 3
  • Spatius API Key and App ID from Spatius Studio
  • Agora App ID, App Certificate, and published Agent Pipeline ID

Run it

1

Clone and start the shared backend

Set TRANSPORT=agora and fill the Spatius and Agora credentials in .env. Follow the backend README to align the ASR resource IDs and TTS sample rate with your published Agora agent, then start the backend:
The demo backend is unauthenticated. Run it only on your local machine or a trusted LAN; do not expose it publicly.
Keep the printed LAN address—you will enter it on the iOS config screen.
2

Generate and open the iOS project

In a second terminal:
3

Run a scene

Build to a connected iOS device. On the config screen, enter the backend LAN address, confirm the credentials, and choose a scene.

Next steps

Agora client integration

iOS SDK reference