endptr.h File Reference
Wrapper of the end-pointer.
More...
#include "fe.h"
#include "classify.h"
Go to the source code of this file.
Classes |
struct | endpointer_t |
| Struct to hold the end-pointer parameters. More...
|
Defines |
#define | STAT_OTHER 0 |
#define | STAT_BEGIN 1 |
#define | STAT_SPEECH 2 |
#define | STAT_END 3 |
#define | STAT_CANCEL 4 |
#define | PAD_T_BEFORE "0.15" |
#define | PAD_T_AFTER "0.2" |
#define | UTT_T_START "0.08" |
#define | UTT_T_END "0.30" |
#define | UTT_T_CANCEL "0.05" |
Functions |
endpointer_t * | endpointer_initialize (fe_t *FE, float pad_t_before, float pad_t_after, float utt_t_start, float utt_t_end, float utt_t_cancel) |
void | endpointer_free (endpointer_t *ENDPTR) |
void | endpointer_update_stat (endpointer_t *ENDPTR, fe_t *FE, class_t *CLASSW, int _class) |
float | endptr_frame2secs_beg (fe_t *FE, int frame) |
float | endptr_frame2secs_end (fe_t *FE, int frame) |
Detailed Description
Wrapper of the end-pointer.
Define Documentation
#define PAD_T_AFTER "0.2" |
to pad this much of seconds after spend
#define PAD_T_BEFORE "0.15" |
to pad this much of seconds before spbegin
beginning of speech period, starts with first speech frame
non-speech frames while an utterances is in STAT_BEGIN
Status of the recording non-speech period, noise, silence, or secondary speech
inter-speech period, once
#define UTT_T_CANCEL "0.05" |
to cancel an utterance after this much of non-speech seconds
to end an utterance after this much of non-speech seconds
#define UTT_T_START "0.08" |
to announce STAT_SPEECH after this much of speech seconds
Function Documentation
Free the end pointer
- Parameters:
-
| ENDPTR | An end pointer structure |
endpointer_t* endpointer_initialize |
( |
fe_t * |
FE, |
|
|
float |
pad_t_before, |
|
|
float |
pad_t_after, |
|
|
float |
utt_t_start, |
|
|
float |
utt_t_end, |
|
|
float |
utt_t_cancel | |
|
) |
| | |
Initialize the end pointer
- Parameters:
-
| FE | The front end structure |
| pad_t_before | to pad this much of seconds before spbegin |
| pad_t_after | to pad this much of seconds after spend |
| utt_t_start | to announce STAT_SPEECH after this much of speech seconds |
| utt_t_end | to end an utterance after this much of non-speech seconds |
| utt_t_cancel | to cancel an utterance after this much of non-speech seconds |
- Parameters:
-
| ENDPTR | An end pointer structure |
| FE | A FE structure |
| CLASSW | A CLASSW structure |
| _class | The class |
float endptr_frame2secs_beg |
( |
fe_t * |
FE, |
|
|
int |
frame | |
|
) |
| | |
Convert frames 2 seconds for beginning frame.
- Parameters:
-
| FE | A FE structure |
| frame | The frame |
float endptr_frame2secs_end |
( |
fe_t * |
FE, |
|
|
int |
frame | |
|
) |
| | |
Convert frames 2 seconds for ending frame.
- Parameters:
-
| FE | A FE structure |
| frame | The frame |