Lens Scripting API

    Class AsrTranscriptionOptionsWearable Only

    Provides the options for the session.

    const options = AsrModule.AsrTranscriptionOptions.create()
    options.silenceUntilTerminationMs = 1000
    options.mode = AsrModule.AsrMode.HighAccuracy
    options.onTranscriptionUpdateEvent.add((eventArgs) => print(eventArgs))
    options.onTranscriptionErrorEvent.add((eventArgs) => print(`Error while transcribing: ${eventArgs}`))

    Hierarchy (View Summary, Expand)

    Index

    Properties

    mode: AsrMode

    The operation mode of the ASR session.

    onTranscriptionErrorEvent: event1<AsrStatusCode, void>

    An event triggered by transcription errors.

    onTranscriptionUpdateEvent: event1<TranscriptionUpdateEvent, void>

    An event triggered by transcription updates.

    silenceUntilTerminationMs: number

    Silence duration in milliseconds to detect the end of the speech.

    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

    MMNEPVFCICPMFPCPTTAAATR