saiAsrSetRecognitionTimeout

Specifies the length of time (recognition-timeout interval) that the recognizer waits before terminating a recognition request when speech is detected.

Prototype

DWORD saiAsrSetRecognitionTimeout ( SAI_RECOGNIZER_HANDLE recogHd, DWORD value )

Argument

Description

recogHd

Handle associated with a recognizer resource.

value

Timeout interval size 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 values

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.


Details

When recognition starts and there is no match for a particular period of time, the recognizer sends SAIEVN_ASR_RECOGNITION_DONE to the client 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.

See also

saiAsrGetRecognitionTimeout