Skip to content

Installation

Add the framework

  1. Download and unzip the SORI iOS SDK package.
  2. Drag SORI.xcframework into your Xcode project.
  3. In your app target, open General > Frameworks, Libraries, and Embedded Content and set SORI.xcframework to Embed & Sign.
  4. 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.