asrm_is_cancellation_request()

Determine whether the current result is a cancellation request.

Synopsis:

#include "asr/asrm.h"
 
int asrm_is_cancellation_request(asr_result_t *result, cfg_item_t *opt_cancel_section, asr_result_action_t *ret)

Arguments:

result

A pointer to the result structure.

opt_cancel_section

A pointer to the cancel configuration section.

ret

The action to take.

Library:

libasr

Description:

The asrm_is_cancellation_request() function determines whether the specified result is a cancellation request. If it is, the function sets ret to the appropriate action code.

Returns:

1 The result is a cancellation request. The res parameter is set to ASR_RECOGNITION_CANCEL.

0 The result is not a cancellation request.