#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Defines | |
#define | PLUGIN_TITLE "result process plugin for Julius" |
Result processing function. | |
Functions | |
int | initialize () |
Initialization at loading time (optional). | |
int | get_plugin_info (int opcode, char *buf, int buflen) |
Get information of this plugin (required). | |
void | result_best_str (char *result_str) |
Process a recognition result (best string). |
Definition in file result.c.
#define PLUGIN_TITLE "result process plugin for Julius" |
int initialize | ( | ) |
int get_plugin_info | ( | int | opcode, | |
char * | buf, | |||
int | buflen | |||
) |
Get information of this plugin (required).
This function should return informations of this plugin file. The required info will be specified by opcode:
This will be called just after Julius find this file and after initialize().
opcode | [in] requested operation code | |
buf | [out] buffer to store the return string | |
buflen | [in] maximum length of buf |
void result_best_str | ( | char * | result_str | ) |
Process a recognition result (best string).
This function will be called each time after recognition of an utterance is finished. The best recognition result for the utterance will be passed to this function, as a string in which words are separated by white space. When the recognition was failed or rejected, string will be NULL.
On short-pause segmentation mode or GMM/Decoder-VAD mode, where an input utterance may be segmented into pieces, this funtion will be called for each segment. On multi decoding, the best hypothesis among all the recognition instance will be given.
result_str | [in] recognition result, words separated by whitespace, or NULL on failure |