plugin/result.c File Reference

Plugin to process recognition result. More...

#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).


Detailed Description

Plugin to process recognition result.

Author:
Akinobu Lee
Date:
Fri Aug 22 15:17:59 2008
Revision
1.1

Definition in file result.c.


Define Documentation

#define PLUGIN_TITLE   "result process plugin for Julius"

Result processing function.

Definition at line 39 of file result.c.


Function Documentation

int initialize (  ) 

Initialization at loading time (optional).

If defined, this will be called just before this plugin is loaded to Julius. if this returns -1, the whole functions in this file will not be loaded.

This function is OPTIONAL.

Returns:
0 on success, -1 on failure.

Definition at line 64 of file result.c.

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().

Parameters:
opcode [in] requested operation code
buf [out] buffer to store the return string
buflen [in] maximum length of buf
Returns:
0 on success, -1 on failure. On failure, Julius will ignore this plugin.

Definition at line 106 of file result.c.

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.

Parameters:
result_str [in] recognition result, words separated by whitespace, or NULL on failure

Definition at line 157 of file result.c.


Generated on Thu Jul 23 12:14:20 2009 for Julius by  doxygen 1.5.1