TranscriptEditor

@objc
public protocol TranscriptEditor

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”.

  • Edit the ASR transcript to correct errors or perform other normalization before NLU classification occurs.

    Declaration

    Swift

    @objc
    func editTranscript(transcript: String) -> String

    Parameters

    transcript

    The transcript received from the ASR module.

    Return Value

    An edited transcript.