Return the ID of a configuration item containing a speech result.
#include "asr/asrm.h"
int asrm_find_result_phrase_id(cfg_item_t *base, asr_result_t *result, int start_terminal, int *terminal_beg, int *terminal_end, int *conf, int def_id)
The configuration structure to search.
The speech result containing the string to search for.
Not used.
On success, beg_terminal is set to the index of the first terminal in the match.
On success, beg_terminal is set to the index of the last terminal in the match.
On success, conf is set to the confidence level of the match.
A default ID to return if the phrase isn't found.
The asrm_find_result_phrase_id() function searches the specified configuration for the string in the specified speech result and returns the ID of the matching configuration item. The configuration item must contain an exact match.
The configuration ID of the matching configuration item; the default ID if a match isn't found.