asrm_create_dictation_result()

Create a dictation result.

Synopsis:

#include "asr/asrm.h"
 
asr_result_t* asrm_create_dictation_result(const char *grammar, const char *rule, int conf, const char *inbuffer)

Arguments:

grammar

The grammar of the new result.

rule

The rule of the new result.

conf

The confidence level of the new result.

inbuffer

The recognized speech to copy to the new result.

Library:

libasr

Description:

The asrm_create_dictation_result() creates a new dictation result based on the specified parameters. The new result has the recognition type set to ASR_RECOGNITION_DICTATION, the result type set to ASR_RESULT_FINAL, and the result status set to ASR_RESULT_OK. The grammar, rule, confidence level, and recognized speech are set to the corresponding specified parameters.

Returns:

The new result; NULL on error.