Create a dictation result.
#include "asr/asrm.h"
asr_result_t* asrm_create_dictation_result(const char *grammar, const char *rule, int conf, const char *inbuffer)
The grammar of the new result.
The rule of the new result.
The confidence level of the new result.
The recognized speech to copy to the new result.
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.
The new result; NULL on error.