#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. |
Definition in file feature_postprocess.c.
#define PLUGIN_TITLE "feature vector postprocess plugin for Julius" |
Feature vector input postprocessing functions.
Required:
Definition at line 41 of file feature_postprocess.c.
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.
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().
opcode | [in] requested operation code | |
buf | [out] buffer to store the return string | |
buflen | [in] maximum length of buf |
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.
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.