Wraps a single recognition response, providing access to the recognition result, audio quality metrics, and metadata. Also exposes methods to save response data or queue it for upload to Dashboard.
More...
Inherits IDisposable.
|
| bool | QueueForUpload () |
| | Queues audio and JSON from this response for upload to Dashboard. Files are saved to an internal directory scanned by the uploader background thread. Requires StartDataUploader() to have been called for files to actually be uploaded.
|
| |
| bool | SaveJsonFile (string directoryPath) |
| | Saves the JSON representation of this response to the specified directory.
|
| |
| bool | SaveAudioFile (string directoryPath) |
| | Saves the audio recording for this response to the specified directory. After saving, the filename is available via the audioFilename property.
|
| |
| void | Dispose () |
| | Releases the native handle associated with this response. This method is idempotent and safe to call multiple times. Properties such as result, responseId, and duration remain accessible after disposal.
|
| |
|
| ASRResult | result [get] |
| | The recognition result (text, words, phonemes, confidence).
|
| |
| ASRAudioQualityResult | audioQualityResult [get] |
| | Audio quality metrics (SNR, RMS levels, clipping) for the captured audio.
|
| |
| string | responseId [get] |
| | Unique identifier for this response, assigned by the native SDK.
|
| |
| string | decodingGraphName [get] |
| | Name of the decoding graph that was used for recognition.
|
| |
| string | asrBundleName [get] |
| | Name of the ASR bundle that was used for recognition.
|
| |
| bool | echoCancellation [get] |
| | True if echo cancellation was active during this recognition session.
|
| |
| double | duration [get] |
| | Total duration of the response audio in seconds.
|
| |
| string | startTime [get] |
| | Timestamp when recognition started (formatted string).
|
| |
| string | audioFilename [get] |
| | Filename of the saved audio file. Available after calling SaveAudioFile().
|
| |
Wraps a single recognition response, providing access to the recognition result, audio quality metrics, and metadata. Also exposes methods to save response data or queue it for upload to Dashboard.
The caller receives ownership of this object and must call Dispose() when done to release the underlying native handle. If Dispose() is not called, the finalizer will release the handle during garbage collection, but this should not be relied upon.