Installation
Download the SDK
Start by downloading SORI iOS SDK 5.1.0.
Unzip the downloaded package and confirm that it contains SORI.xcframework.
To update an existing integration, replace the previous SORI.xcframework with this version and confirm that the app target still uses Embed & Sign.
Add the framework
- Drag the extracted
SORI.xcframeworkinto your Xcode project. - In your app target, open General > Frameworks, Libraries, and Embedded Content and set
SORI.xcframeworkto Embed & Sign. - 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.
