Skip to main content
XUNA AI provides native SDKs for iOS, Android, and React Native. Each SDK handles microphone input, audio playback, and the conversation protocol so you can focus on building your app’s UI.

iOS — Swift

XunaAISDK for native iOS apps built with Swift or SwiftUI.

Android — Kotlin

XunaAIClient for native Android apps built with Kotlin.

React Native

Cross-platform SDK for iOS and Android from a single JavaScript codebase.

iOS — Swift SDK

Installation

Add the XunaAISDK package to your Xcode project using Swift Package Manager.
1

Open your project in Xcode

Go to File → Add Package Dependencies.
2

Enter the package URL

3

Select the version

Choose the latest release and click Add Package.
4

Add microphone permission

In your Info.plist, add the NSMicrophoneUsageDescription key with a user-facing description.

Basic usage

SwiftUI example

Android — Kotlin SDK

Installation

Add the XunaAIClient library to your Gradle build.
1

Add the dependency

In your module-level build.gradle.kts:
2

Add internet and microphone permissions

In your AndroidManifest.xml:
3

Request runtime permission

On Android 6.0 and above, request RECORD_AUDIO at runtime before starting a session. Use the standard ActivityCompat.requestPermissions API or Jetpack’s permission APIs.

Basic usage

Jetpack Compose example

React Native SDK

Use the React Native SDK to build a single codebase that runs on both iOS and Android.

Installation

For iOS, install native dependencies:
Add the microphone permission to both platform manifests:
  • iOS (Info.plist): NSMicrophoneUsageDescription
  • Android (AndroidManifest.xml): android.permission.RECORD_AUDIO

Basic usage

Authenticating private agents

All three SDKs support signed URLs and conversation tokens for private agents. Generate the credential on your server (see Authentication) and pass it to startSession:

Next steps

  • Configure your agent’s voice, language, and persona in Configure.
  • For web deployments, use the React SDK or the widget.