Requests recognizer parameters from the speech server and updates the associated client-side recognizer resource information.
DWORD saiGetParamRecognizer ( SAI_RECOGNIZER_HANDLE recogHd, SAI_REQUEST_ID *requestId )
|
Argument |
Description |
|
recogHd |
Handle associated with a recognizer resource. |
|
requestId |
Pointer to a unique identifier associated with the request. |
|
Return value |
Description |
|
SUCCESS |
|
|
SAIERR_ENGINE_NOT_READY |
Specified recognizer engine is not ready to handle requests. |
|
SAIERR_INVALID_PARAMETER |
One of the specified arguments is invalid. |
|
Event |
Description |
|
SAIEVN_GET_PARAMETER_DONE |
Request was processed. The result of the request is returned in the statusCode field of the SAIEVN_GET_PARAMETER_DONE event buffer. |
saiGetParamRecognizer retrieves parameter values from the server and updates the recognizer properties. Applications use saiGetParamRecognizer to synchronize client-side parameters with the server-side parameters.
When SaiGetParamRecognizer executes successfully, the application can retrieve recognizer parameters using the SAI service parameter function associated with the parameter (for example, saiAsrGetConfidenceThreshold or saiAsrGetSensitivity).