Lens Scripting API

    Class TranscriptionUpdateEventWearable Only

    Argument passed for a transcription update event.

    const onTranscriptionUpdate = (eventArgs: AsrModule.TranscriptionUpdateEvent) => {
    print(`onTranscriptionUpdateCallback text=${eventArgs.text}, isFinal=${eventArgs.isFinal}`)
    }

    Hierarchy (View Summary, Expand)

    Index

    Properties

    isFinal: boolean

    Specifies whether the transcription returned is final, or partial (interim) which can be updated later as the sentence continues.

    text: string

    Transcribed text.

    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