Installation
From scratch
The SORI Flutter SDK is distributed as the sorisdk_flutter package on pub.dev.
Use the package page to check the latest published version and generated Dart API reference.
Integrate into an existing project
Add the package from pub.dev:
flutter pub add sorisdk_flutterOr add it to your pubspec.yaml file:
dependencies:
sorisdk_flutter: ^0.1.0Then run:
flutter pub getAndroid settings
The package merges the required Android permissions and foreground microphone service declaration from the plugin manifest. These include microphone, network, foreground service, and notification-related permissions.
Your app must keep Android minSdk at 24 or higher:
android {
defaultConfig {
minSdk = 24
}
}On Android, startRecognition() requests runtime microphone permission when needed and continues the same start request after permission is granted.
If your app targets Android 13 or later and should show the foreground-service notification normally, request notification permission from your app flow before starting recognition.
iOS settings
iOS apps must include a microphone usage description in ios/Runner/Info.plist:
<key>NSMicrophoneUsageDescription</key>
<string>Audio recognition requires microphone access.</string>Add background audio mode only when your app is designed to continue recognition while backgrounded:
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>Now you are ready to use the SDK. Next step is to Implementation.
