iOS
Swift SDK: Getting Started
How to install and use the Outspeed Swift SDK for real-time voice conversations.
Getting Started with Outspeed Swift SDK
A Swift SDK for the Outspeed API that enables real-time voice conversations using WebRTC technology.
The Outspeed Swift SDK is fully compatible with the ElevenLabs Swift SDK. Migrating your code is easy—see our ElevenLabs Compatibility guide for details.
Features
- Real-time voice conversations with AI
- Support for both Outspeed and OpenAI providers
- WebRTC-based audio streaming
- Customizable voice and model selection
- Device-specific optimizations
- Comprehensive audio session management
Installation
Swift Package Manager
Add the following dependency to your Package.swift
file:
And add OutspeedSDK
to your target dependencies:
Xcode
- Open Your Project in Xcode
- Navigate to your project directory and open it in Xcode.
- Add Package Dependency
- Go to
File
>Add Packages...
- Go to
- Enter Repository URL in the Search Bar
- Input the following URL:
https://github.com/outspeed-ai/OutspeedSwift
- Input the following URL:
- Select Version
- Import the SDK
- Ensure
NSMicrophoneUsageDescription
is added to your Info.plist to explain microphone access.
Requirements
- iOS >=18.0
- Swift 6.1+
Usage
Basic Setup
Examples
You can find examples of the SDK here: Outspeed Swift Examples