s3_endpointer.h
Go to the documentation of this file.00001
00002 #include <logmath.h>
00003 #include "cont_mgau.h"
00004
00005 #ifndef __SPHINX3_ENDPOINTER_H
00006 #define __SPHINX3_ENDPOINTER_H
00007
00008
00009 #ifdef __cplusplus
00010 extern "C" {
00011 #endif
00012 #if 0
00013
00014 }
00015 #endif
00016
00017 typedef struct {
00018 float32 **frames;
00019 int *classes;
00020 int n_frames;
00021 int offset;
00022 int count;
00023 int eof;
00024
00025 mgau_model_t *gmm;
00026 int *priors;
00027 int *voters;
00028 int post_classify;
00029
00030 int state;
00031
00032 int begin_count;
00033 int begin_countdown;
00034 int begin_pad;
00035 int begin_window;
00036 int begin_threshold;
00037 int end_count;
00038 int end_countdown;
00039 int end_pad;
00040 int end_window;
00041 int end_threshold;
00042 int frames_required;
00043 } s3_endpointer_t;
00044
00045 S3DECODER_EXPORT
00046 void s3_endpointer_init(s3_endpointer_t *_ep,
00047 const char *_means_file,
00048 const char *_vars_file,
00049 float64 _var_floor,
00050 const char *_mix_weights_file,
00051 float64 _mix_weight_floor,
00052 const char *_gm_type,
00053 int _post_classify,
00054 int _begin_window,
00055 int _begin_threshold,
00056 int _begin_pad,
00057 int _end_window,
00058 int _end_threshold,
00059 int _end_pad,
00060 logmath_t *logmath);
00061 S3DECODER_EXPORT
00062 void s3_endpointer_close(s3_endpointer_t *_ep);
00063 S3DECODER_EXPORT
00064 void s3_endpointer_reset(s3_endpointer_t *_ep);
00065 S3DECODER_EXPORT
00066 void s3_endpointer_feed_frames(s3_endpointer_t *_ep,
00067 float32 **_frames,
00068 int _n_frames,
00069 int _eof);
00070 S3DECODER_EXPORT
00071 int s3_endpointer_read_utt(s3_endpointer_t *_ep,
00072 float32 **_frames,
00073 int _n_frames);
00074 S3DECODER_EXPORT
00075 int s3_endpointer_next_utt(s3_endpointer_t *_ep);
00076 S3DECODER_EXPORT
00077 int s3_endpointer_frame_count(s3_endpointer_t *_ep);
00078
00079 #ifdef __cplusplus
00080 }
00081 #endif
00082
00083
00084 #endif