Functions | |
void | j_enable_debug_message () |
Enable debug messages in JuliusLib to log. | |
void | j_disable_debug_message () |
Disable debug messages in JuliusLib to log. | |
void | j_enable_verbose_message () |
Enable verbose messages in JuliusLib to log. | |
void | j_disable_verbose_message () |
Disable verbose messages in JuliusLib to log. | |
boolean | j_adin_init (Recog *recog) |
Initialize and setup A/D-in device specified by the configuration for recognition. | |
boolean | j_adin_init_user (Recog *recog, void *arg) |
Initialize function when using user-defined A/D-in function. | |
char * | j_get_current_filename () |
Return current input speech file name. | |
void | j_recog_info (Recog *recog) |
Output all configurations and system informations into log. | |
void | j_output_argument_help (FILE *fp) |
Output help document. | |
int | j_open_stream (Recog *recog, char *file_or_dev_name) |
Open input stream. | |
int | j_recognize_stream (Recog *recog) |
Recognize an input stream. | |
boolean | j_add_option (char *fmt, int argnum, int reqargnum, char *desc, boolean(*func)(Jconf *jconf, char *arg[], int argnum)) |
Add a user-defined option to Julius. |
boolean j_adin_init | ( | Recog * | recog | ) |
Initialize and setup A/D-in device specified by the configuration for recognition.
When threading is enabled for the device, A/D-in thread will start inside this function.
recog | [in] engine instance |
Definition at line 521 of file jfunc.c.
Referenced by main().
boolean j_adin_init_user | ( | Recog * | recog, | |
void * | arg | |||
) |
Initialize function when using user-defined A/D-in function.
Almost the same with j_adin_init() except that it does not initialize an input device.
recog | [in] engine instance | |
arg | [in] argument |
char* j_get_current_filename | ( | ) |
Return current input speech file name.
Invalid when MFCC input.
Definition at line 602 of file jfunc.c.
Referenced by main_recognition_stream_loop().
void j_recog_info | ( | Recog * | recog | ) |
void j_output_argument_help | ( | FILE * | fp | ) |
Output help document.
fp | [in] file pointer to output help |
Definition at line 45 of file m_usage.c.
Referenced by opt_help().
int j_open_stream | ( | Recog * | recog, | |
char * | file_or_dev_name | |||
) |
Open input stream.
recog | [i/o] engine instance | |
file_or_dev_name | [in] file or device name of the device |
Definition at line 449 of file recogmain.c.
Referenced by main(), and main_recognition_stream_loop().
int j_recognize_stream | ( | Recog * | recog | ) |
Recognize an input stream.
This function repeat recognition process for the whole input stream, using segmentation and detection if required. It ends when the whole input has been processed.
When a recognition stop is requested from application, the following callbacks will be called in turn: CALLBACK_EVENT_PAUSE, CALLBACK_PAUSE_FUNCTION, CALLBACK_EVENT_RESUME. After finishing executing all functions in these callbacks, recognition will restart. If you have something to be processed while recognition stops, you should write the function as callback to CALLBACK_PAUSE_FUNCTION. Note that recognition will restart immediately after all functions registered in CALLBACK_PAUSE_FUNCTION has been finished.
recog | [i/o] engine instance |
Definition at line 1218 of file recogmain.c.
Referenced by main(), and main_recognition_stream_loop().
boolean j_add_option | ( | char * | fmt, | |
int | argnum, | |||
int | reqargnum, | |||
char * | desc, | |||
boolean(*)(Jconf *jconf, char *arg[], int argnum) | func | |||
) |
Add a user-defined option to Julius.
When reqargnum is lower than argnum, the first (reqargnum) arguments are required and the rest (argnum - reqargnum) options are optional.
fmt | [in] option string (should begin with '-') | |
argnum | [in] total number of argument for this option (including optional) | |
reqargnum | [in] number of required argument | |
desc | [in] description string for help | |
func | [in] option handling function |