Unique response identifier (UUID assigned by the SDK).
Recognition result containing text, words, and optional phone-level scores.
Audio quality metrics for the recording.
Name of the decoding graph used for this recognition session.
Name of the ASR bundle used for this recognition session.
App bundle identifier (e.g., com.example.myapp).
Whether echo cancellation was enabled during this session.
Duration of the recorded audio in seconds.
Start time of the recording as an ISO 8601 string.
Filename of the recorded audio.
JSON format version number.
KeenASR SDK version string.
Device information dictionary.
Set a custom JSON object to be merged into this response's JSON representation when it is saved or uploaded.
Each call replaces any previously set custom JSON. The input must be a
well-formed JSON string (object or value); pass the result of
JSON.stringify(...). Returns false (without modifying the response)
if the string is not valid JSON.
Useful for attaching app-level metadata — user id, prompt id, lesson context, scoring results — that you want visible alongside the response in saved files and on the KeenASR Dashboard.
JSON string to merge into the response.
true if the JSON was accepted and stored.
Queue this response for upload to the KeenASR Dashboard.
The data uploader must be started first via startDataUploader.
true if the response was queued successfully.
Save this response's JSON data to a file in the specified directory.
Absolute path to the directory where the JSON file will be saved.
true if the file was saved successfully.
Save this response's audio recording to a file in the specified directory.
Absolute path to the directory where the audio file will be saved.
true if the file was saved successfully.
Release the native response handle and free associated memory.
You must call this method when you are done with the response.
After calling release(), the response object should not be used.
Complete ASR response from a recognition session.
An
ASRResponseis emitted via the onFinalResponse event when recognition completes. It contains the recognition result, audio quality metrics, and metadata about the session.Important: Each response holds a reference to native memory. You must call release() when you are done with the response to free native resources.
Example