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 more

    Declaration

    Swift

    @objc
    public protocol NLUService
  • Protocol for speech pipeline components to receive speech pipeline coordination events.

    startStreaming and stopStreaming 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.

    See more

    Declaration

    Swift

    @objc
    public protocol SpeechProcessor : AnyObject
  • Protocol for receiving events from Spokestack modules for speech, nlu, and tts.

    See more

    Declaration

    Swift

    @objc
    public protocol SpokestackDelegate : Tracer
  • Undocumented

    See more

    Declaration

    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 more

    Declaration

    Swift

    @objc
    public protocol TranscriptEditor