#include <stdio.h>
#include <string.h>
#include "plugin_defs.h"
Go to the source code of this file.
Defines | |
#define | PLUGIN_TITLE "audio postprocess plugin for Julius" |
A/D-in 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 | adin_postprocess (SP16 *buf, int len) |
Post-processing function for captured audio. |
Definition in file audio_postprocess.c.
#define PLUGIN_TITLE "audio postprocess plugin for Julius" |
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 audio_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 audio_postprocess.c.
void adin_postprocess | ( | SP16 * | buf, | |
int | len | |||
) |
Post-processing function for captured audio.
When defined, this function will be called at every audio input fragments before any feature analysis. buf contains the small fragment of captured audio input at a length of len, and this will be called successively as input goes.
You can monitor the incoming audio stream, and also can modify or overwrite the content of buf to do some audio processing for the incoming data like noise supression etc.
If multiple plugins have this functions, they are all executed in order of loading.
buf | [i/o] a fragment of audio inputs | |
len | [in] length of buf (in samples) |
Definition at line 163 of file audio_postprocess.c.