Installation
Add the framework
- Download and unzip the SORI iOS SDK package.
- Drag
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.
