saiStopRecognizer

Stops a speech recognition process.

Prototype

DWORD saiStopRecognizer ( SAI_RECOGNIZER_HANDLE recogHd, SAI_REQUEST_ID *requestId )

Argument

Description

recogHd

Handle associated with a recognizer resource.

requestId

Pointer to a unique request identifier returned for this command.


Return values

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.


Events

Event

Description

SAIEVN_ASR_STOP_DONE

Request was processed. The result of the request is returned in the statusCode field of the SAIEVN_ASR_STOP_DONE event buffer.


Details

saiStopRecognizer terminates a recognition process.

If the command interrupts an active recognition request and the statusCode field of the SAIEVN_ASR_STOP_DONE event buffer indicates SUCCESS, the stoppedReqId field specifies the requestId of the terminated request. When saiStopRecognizer interrupts an inactive recognition request, the SAI service does not return SAIEVN_ASR_STOP_DONE for the terminated request.

See also

saiStartRecognizer