keenasr-web - v2.0.5
    Preparing search index...

    Interface ASRResponse

    ASRResponse contains various metadata related to the single interaction with the speech recognition system, from calling startListening until the recognizer stopped listening. It is provided to the application via onFinalResponse callback method.

    interface ASRResponse {
        appBundleId: string;
        asrBundle: string;
        asrResult: ASRResult;
        echoCancellation: boolean;
        id: string;
        sdkVersion: string;
        startTime: Date;
        getAudio(): File;
    }
    Index

    Properties

    appBundleId: string

    The bundleID/packageName of the app that created the response.

    asrBundle: string

    The name of the ASR Bundle that was used initialize the recognizer.

    asrResult: ASRResult

    Final ASR result corresponding to this response.

    echoCancellation: boolean

    BOOL value that’s set to true if echo cancellation was used during recognition of this response, or false if it wasn’t (the value is captured and persisted at the end of recognition).

    id: string

    Unique identifier of this response. This corresponds to the id set via startListening method.

    sdkVersion: string

    Version of KeenASR SDK.

    startTime: Date

    LocalDateTime object that specifies the date/time when this response was created (in current device timezone).

    Methods

    • Get the audio data as a File object (a named Blob).

      NOTE: that this method can only be called in the onFinalResponse callback. The audio data will be freed after the callback is executed, so it should be copied if needed.

      Returns File

      File object containing audio data.