Main Page
Classes
Files
File List
File Members
include
s3_endpointer.h
Go to the documentation of this file.
1
2
#include <logmath.h>
3
#include "
cont_mgau.h
"
4
5
#ifndef __SPHINX3_ENDPOINTER_H
6
#define __SPHINX3_ENDPOINTER_H
7
8
9
#ifdef __cplusplus
10
extern
"C"
{
11
#endif
12
#if 0
13
/* Fool Emacs. */
14
}
15
#endif
16
17
typedef
struct
{
18
float32 **
frames
;
19
int
*
classes
;
20
int
n_frames
;
21
int
offset
;
22
int
count
;
23
int
eof
;
24
25
mgau_model_t
*
gmm
;
26
int
*
priors
;
27
int
*
voters
;
28
int
post_classify
;
29
30
int
state
;
31
32
int
begin_count
;
33
int
begin_countdown
;
34
int
begin_pad
;
35
int
begin_window
;
36
int
begin_threshold
;
37
int
end_count
;
38
int
end_countdown
;
39
int
end_pad
;
40
int
end_window
;
41
int
end_threshold
;
42
int
frames_required
;
43
}
s3_endpointer_t
;
44
45
S3DECODER_EXPORT
46
void
s3_endpointer_init
(
s3_endpointer_t
*_ep,
47
const
char
*_means_file,
48
const
char
*_vars_file,
49
float64 _var_floor,
50
const
char
*_mix_weights_file,
51
float64 _mix_weight_floor,
52
const
char
*_gm_type,
53
int
_post_classify,
54
int
_begin_window,
55
int
_begin_threshold,
56
int
_begin_pad,
57
int
_end_window,
58
int
_end_threshold,
59
int
_end_pad,
60
logmath_t *logmath);
61
S3DECODER_EXPORT
62
void
s3_endpointer_close
(
s3_endpointer_t
*_ep);
63
S3DECODER_EXPORT
64
void
s3_endpointer_reset
(
s3_endpointer_t
*_ep);
65
S3DECODER_EXPORT
66
void
s3_endpointer_feed_frames
(
s3_endpointer_t
*_ep,
67
float32 **_frames,
68
int
_n_frames,
69
int
_eof);
70
S3DECODER_EXPORT
71
int
s3_endpointer_read_utt
(
s3_endpointer_t
*_ep,
72
float32 **_frames,
73
int
_n_frames);
74
S3DECODER_EXPORT
75
int
s3_endpointer_next_utt
(
s3_endpointer_t
*_ep);
76
S3DECODER_EXPORT
77
int
s3_endpointer_frame_count
(
s3_endpointer_t
*_ep);
78
79
#ifdef __cplusplus
80
}
81
#endif
82
83
84
#endif
Generated by
1.8.1.2