Retrieves the length of time (recognition-timeout interval) that the recognizer waits before terminating a recognition request when speech is detected.
DWORD saiAsrGetRecognitionTimeout ( SAI_RECOGNIZER_HANDLE recogHd, DWORD *value )
|
Argument |
Description |
|
recogHd |
Handle associated with a recognizer resource. |
|
value |
Pointer to a timeout interval value in ms. The timeout interval value can range from 0 to MAXTIMEOUT, where MAXTIMEOUT is a recognizer-specific value. For information about supported values, refer to the speech vendor documentation. |
|
Return value |
Description |
|
SUCCESS |
|
|
SAIERR_INVALID_PARAMETER |
One of the specified arguments is invalid. |
|
SAIERR_UNSUPPORTED_SPEECH_PARAMETER |
Recognizer engine does not support the specified parameter. |
When recognition starts and there is no match for a particular period of time, the recognizer sends SAIEVN_ASR_RECOGNITION_DONE to the application and terminates the recognition operation. The SAI service returns SAI_RCC_RECOGNITION_TIMEOUT in the completionCause field of the SAIEVN_ASR_RECOGNITION_DONE event buffer.