plugin/feature_postprocess.c File Reference

A sample plugin for feature vector postprocessing. More...

#include <stdio.h>
#include <string.h>
#include "plugin_defs.h"

Go to the source code of this file.

Defines

#define PLUGIN_TITLE   "feature vector postprocess plugin for Julius"
 Feature vector input postprocessing functions.

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 fvin_postprocess (float *vecbuf, int veclen, int nframe)
 Post-processing function for a feature vector.


Detailed Description

A sample plugin for feature vector postprocessing.

Author:
Akinobu Lee
Date:
Sun Aug 10 15:14:19 2008
Revision
1.1

Definition in file feature_postprocess.c.


Define Documentation

#define PLUGIN_TITLE   "feature vector postprocess plugin for Julius"

Feature vector input postprocessing functions.

Required:

Definition at line 41 of file feature_postprocess.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 66 of file feature_postprocess.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 108 of file feature_postprocess.c.

void fvin_postprocess ( float *  vecbuf,
int  veclen,
int  nframe 
)

Post-processing function for a feature vector.

When defined, this function will be called at every input vector before recognition. This will be called successively for every input at each frame.

You can monitor the feature vector to be recognized, and also can modify or overwrite the content to do some transformation like a feature-space adaptation.

If multiple plugins have this functions, they are all executed in order of loading.

Parameters:
vecbuf [i/o] a feature vector
veclen [in] length of vecbuf
nframe [in] frame number in a recognition, staring with 0.

Definition at line 163 of file feature_postprocess.c.


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