Protocols
The following protocols are available globally.
-
A simple protocol for NLU services that provide intent classification and slot recognition, either on-device or via a network request.
See moreDeclaration
Swift
@objc public protocol NLUService
-
Protocol for speech pipeline components to receive speech pipeline coordination events.
See morestartStreaming
andstopStreaming
are expected to be called repeatedly while the pipeline is running, and should respond to these functions by allocating and deallocating resources in order to optimize performance.Declaration
Swift
@objc public protocol SpeechProcessor : AnyObject
-
Undocumented
See moreDeclaration
Swift
@objc public protocol Tracer
-
A functional interface used to edit an ASR transcript before it is passed to the NLU module for classification.
This can be used to alter ASR results that frequently contain a spelling for a homophone that’s incorrect for the domain; for example, an app used to summon a genie whose ASR transcripts tend to contain “Jen” instead of “djinn”.
See moreDeclaration
Swift
@objc public protocol TranscriptEditor