90 #ifndef __FRAME_CLASSIFIER__ 91 #define __FRAME_CLASSIFIER__ 100 #define DIMENSIONS 13 101 #define MAXFRAMES 10000 116 #define PRIOR_SIL 0.4 123 #define VOTEWINDOWLEN 5 126 #define CLASSLATENCY 2 129 #define POSTPROCESS 1 156 #define SWAP_INT(x) *(x) = ((0x000000ff & (*(x))>>24) | \ 157 (0x0000ff00 & (*(x))>>8) | \ 158 (0x00ff0000 & (*(x))<<8) | \ 159 (0xff000000 & (*(x))<<24)) 161 #define SWAP_FLOAT(x) SWAP_INT((int *) x) 185 int postclassify (
int *window,
int windowlen,
int *wincap,
int myclass);
187 int vote (
int *window,
class to store the classifier parameters
Definition: classify.h:138
mgau_model_t * g
Definition: classify.h:141
Interface of full GMM computation with integer value of log likelihood.
class_t * classw_initialize(char *mdeffile, char *meanfile, char *varfile, float64 varfloor, char *mixwfile, float64 mixwfloor, int32 precomp, char *senmgau)
int postclassify(int *window, int windowlen, int *wincap, int myclass)
#define VOTEWINDOWLEN
Definition: classify.h:123
int32 classlatency
Definition: classify.h:148
void classw_free(class_t *CLASSW)
int16 s3cipid_t
Definition: s3types.h:110
Size definition of semantically units. Common for both s3 and s3.X decoder.
int classify(float *frame, mgau_model_t *g, int32 priors[NUMCLASSES], s3cipid_t *map)
The set of mixture-Gaussians in an acoustic model used in Sphinx 3.X family of tool.
Definition: cont_mgau.h:207
#define NUMCLASSES
Definition: classify.h:95
int32 postprocess
Definition: classify.h:147
int32 windowlen
Definition: classify.h:140
void majority_class(class_t *CLASSW, int *classcount, int frame_count)
int vote(int *window, int windowlen)