asrm_find_result_phrase()

Find a configuration item containing a speech result.

Synopsis:

#include "asr/asrm.h"
 
cfg_item_t* asrm_find_result_phrase(cfg_item_t *base, asr_result_t *result, int start_terminal, int *terminal_beg, int *terminal_end, int *conf)

Arguments:

base

The configuration structure to search.

result

The speech result containing the string to search for.

start_terminal

Not used.

terminal_beg

On success, terminal_beg is set to the index of the first terminal in the match.

terminal_end

On success, terminal_end is set to the index of the last terminal in the match.

conf

On success, conf is set to the confidence level of the match.

Library:

libasr

Description:

The asrm_find_result_phrase() function searches the specified configuration for the string in the specified speech result and returns a pointer to the matching configuration item. The configuration item must contain an exact match.

Returns:

A pointer to the matching configuration item; NULL on failure.