asrm_is_help_request()

Determine whether the current result is a help request.

Synopsis:

#include "asr/asrm.h"
 
int asrm_is_help_request(asr_result_t *result, cfg_item_t *opt_help_section, asr_result_action_t *ret, int perform)

Arguments:

result

A pointer to the result structure.

opt_help_section

A pointer to the help configuration section.

ret

The action to take.

perform

A flag to indicate whether to take action on the result.

Library:

libasr

Description:

The asrm_is_help_request() function determines whether the specified result is a help request. If it is, the function sets ret to the appropriate action code. If perform is nonzero, the asrp_active_help() function is invoked.

Returns:

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

0 The result is not a cancellation request.