Skip to content

Installation

Download the SDK

Start by downloading SORI iOS SDK 5.0.4.

Unzip the downloaded package and confirm that it contains SORI.xcframework.

Add the framework

  1. Drag the extracted SORI.xcframework into your Xcode project.
  2. In your app target, open General > Frameworks, Libraries, and Embedded Content and set SORI.xcframework to Embed & Sign.
  3. Make sure your deployment target is iOS 12.0 or later.

The current framework package includes the recognition model required for normal integrations. You do not need to add a separate default.pack file.

Configure permissions

Add a microphone usage description to your app's Info.plist:

xml
<key>NSMicrophoneUsageDescription</key>
<string>Audio recognition requires microphone access.</string>

Add background audio mode only if your app is designed to continue recognition while backgrounded:

xml
<key>UIBackgroundModes</key>
<array>
    <string>audio</string>
</array>

Next step is Implementation.