Index library

Classes

AudioRoutingConfig
Full wake-word audio routing configuration.
KeyWordFlutterPC
A class that manages a keyword detection engine and coordinates communication with native platforms using MethodChannel and EventChannel.
RouteConfigEntry
A per-route audio routing entry for iOS wake-word detection.
SpeakerVerificationMicController
Flutter equivalent of the React Native SpeakerVerificationMicController.
SpeakerVerificationRNBridgeInstance
Flutter equivalent of the React Native SpeakerVerificationRNBridgeInstance.
UseModel
A class to manage multiple KeyWordFlutterPC instances, providing convenient APIs for creating, starting, stopping, and removing them.

Enums

WakewordAudioCategory
iOS audio session category values used by wake-word audio routing.
WakewordAudioMode
iOS audio session mode values used by wake-word audio routing.
WakewordAudioOption
iOS audio session category options used by wake-word audio routing.
WakewordPreferredInput
Preferred input selection for wake-word audio routing.

Properties

gLicenseKey String
A global license key for use across UseModel instances. It can be set via UseModel.setKeywordDetectionLicense.
getter/setter pair

Functions

createKeyWordFlutterPCInstance(String instanceId, {bool isSticky = false}) KeyWordFlutterPC
Creates and returns a new KeyWordFlutterPC instance with the provided instanceId and optional isSticky value.
createSpeakerVerificationInstance(String engineId) Future<SpeakerVerificationRNBridgeInstance>
Creates a speaker verification engine wrapper.
createSpeakerVerificationMicController(String controllerId) Future<SpeakerVerificationMicController>
Creates a speaker verification mic controller wrapper.
onSpeakerVerificationError(void callback(Map<String, dynamic>)) StreamSubscription<Map<String, dynamic>>
Streams speaker verification error events.
onSpeakerVerificationOnboardingDone(void callback(Map<String, dynamic>)) StreamSubscription<Map<String, dynamic>>
Streams speaker verification onboarding completion events.
onSpeakerVerificationOnboardingProgress(void callback(Map<String, dynamic>)) StreamSubscription<Map<String, dynamic>>
Streams speaker verification onboarding progress events.
onSpeakerVerificationVerifyResult(void callback(Map<String, dynamic>)) StreamSubscription<Map<String, dynamic>>
Streams speaker verification result events.
pauseDetection(String instanceId, {bool stopMic = false}) Future<bool>
Pauses detection for an instance by instanceId.
removeAllRNBridgeListeners() Future<void>
Cancels all bridge listeners.
setWakewordAudioRoutingConfig(AudioRoutingConfig config) Future<void>
Sets the iOS wake-word audio routing configuration.
unPauseDetection(String instanceId) Future<bool>
Resumes detection for an instance by instanceId.

Typedefs

DetectionCallback = void Function(Map<String, dynamic> event)
A callback signature for when a keyword phrase is detected.