Preparing search index...

    Class SpeechContext

    Speech context is used in cases where specific words are expected from the users, the transcription accuracy of these words can be improved, by straightening their likelihood in context. The strength is scaled 1-10 (10 being the strongest increase) the default value is 5.

    VoiceML capabilities are no longer supported. For Spectacles see options on ASRModule.

    var options = VoiceML.ListeningOptions.create();
    options.addSpeechContext(["run", "jog"], 2);

    Hierarchy (View Summary)

    Index

    Properties

    boost: number

    The strength is scaled 1-10 (10 being the strongest increase) the default value is 5.

    Lens Scripting Version 153

    phrases: string[]

    Array of keyword to enhance by the ML engine.

    Lens Scripting Version 153

    Methods

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean