saiAsrGetNoInputTimeout

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

Prototype

DWORD saiAsrGetNoInputTimeout ( SAI_RECOGNIZER_HANDLE recogHd, DWORD *value )

Argument

Description

recogHd

Handle associated with a recognizer resource.

value

Pointer to a no-input 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 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 is started and no speech is detected for a particular interval, the recognizer sends SAIEVN_ASR_RECOGNITION_DONE to the client and terminates the recognition operation. The SAI service returns SAI_RCC_INPUT_TIMEOUT in the completionCause field of the SAIEVN_ASR_RECOGNITION_DONE event buffer.

See also

saiAsrSetNoInputTimeout