Data Fields | |
ESR_ReturnCode(* | getWaveform )(const struct SR_RecognizerResult_t *self, const asr_int16_t **waveform, size_t *size) |
ESR_ReturnCode(* | getSize )(const struct SR_RecognizerResult_t *self, size_t *resultSize) |
ESR_ReturnCode(* | getKeyCount )(const struct SR_RecognizerResult_t *self, const size_t nbest, size_t *count) |
ESR_ReturnCode(* | getKeyList )(const struct SR_RecognizerResult_t *self, const size_t nbest, LCHAR **list, size_t *listSize) |
ESR_ReturnCode(* | getValue )(const struct SR_RecognizerResult_t *self, const size_t nbest, const LCHAR *key, LCHAR *value, size_t *len) |
ESR_ReturnCode(* | getLocale )(const struct SR_RecognizerResult_t *self, ESR_Locale *locale) |
ESR_ReturnCode(* SR_RecognizerResult::getWaveform)(const struct SR_RecognizerResult_t *self, const asr_int16_t **waveform, size_t *size) |
Returns the endpointed waveform that was used for recognition. This returns a read-only buffer, and may not be modified externally.
self | RecognizerResult handler | |
waveform | [out] Waveform buffer | |
size | [out] Size of waveform buffer (in bytes) |
ESR_ReturnCode(* SR_RecognizerResult::getSize)(const struct SR_RecognizerResult_t *self, size_t *resultSize) |
Returns number of entries in the n-best list.
self | RecognizerResult handler | |
resultSize | [out] Number of entries |
ESR_ReturnCode(* SR_RecognizerResult::getKeyCount)(const struct SR_RecognizerResult_t *self, const size_t nbest, size_t *count) |
Returns number of [key, value] pairs in the current results.
self | SR_RecognizerResult handler | |
nbest | Index of n-best list element (0-based) | |
count | The number keys |
ESR_ReturnCode(* SR_RecognizerResult::getKeyList)(const struct SR_RecognizerResult_t *self, const size_t nbest, LCHAR **list, size_t *listSize) |
Given an array of pointers to LCHAR*
, populates that array with pointers to the keys used internally by the recognition result. These keys should not be modified!
self | SemanticResult handler | |
nbest | Index of n-best list element (0-based) | |
list | [out] List of keys associated with n-best list entry. | |
listSize | [in/out] Size of list. If the return code is ESR_BUFFER_OVERFLOW, the required size is returned in this variable. |
ESR_ReturnCode(* SR_RecognizerResult::getValue)(const struct SR_RecognizerResult_t *self, const size_t nbest, const LCHAR *key, LCHAR *value, size_t *len) |
Returns copy of semantic value.
self | SemanticResult handler | |
nbest | Index of n-best list element (0-based) | |
key | The key to look up | |
value | [out] The buffer used to hold the resulting value | |
len | [in/out] Length of value argument. If the return code is ESR_BUFFER_OVERFLOW, the required length is returned in this variable. |
ESR_ReturnCode(* SR_RecognizerResult::getLocale)(const struct SR_RecognizerResult_t *self, ESR_Locale *locale) |
Returns locale of the grammar that produced this recognition result
self | SR_RecognizerResult handle | |
locale | The locale associated with the result |