PocketSphinx
5.0.0
A small speech recognizer
|
Go to the documentation of this file.
43 #include <pocketsphinx/export.h>
64 PS_VAD_MEDIUM_LOOSE = 1,
65 PS_VAD_MEDIUM_STRICT = 2,
75 PS_VAD_NOT_SPEECH = 0,
82 #define PS_VAD_DEFAULT_SAMPLE_RATE 16000
86 #define PS_VAD_DEFAULT_FRAME_LENGTH 0.03
178 #define ps_vad_frame_length(vad) ((double)ps_vad_frame_size(vad) / ps_vad_sample_rate(vad))
Basic type definitions used in Sphinx.
POCKETSPHINX_EXPORT int ps_vad_free(ps_vad_t *vad)
ps_vad_class_e
Classification of input frames returned by ps_vad_classify().
Definition: vad.h:73
POCKETSPHINX_EXPORT ps_vad_t * ps_vad_init(ps_vad_mode_t mode, int sample_rate, double frame_length)
POCKETSPHINX_EXPORT size_t ps_vad_frame_size(ps_vad_t *vad)
ps_vad_mode_e
Voice activity detection "aggressiveness" levels.
Definition: vad.h:62
POCKETSPHINX_EXPORT ps_vad_class_t ps_vad_classify(ps_vad_t *vad, const int16 *frame)
POCKETSPHINX_EXPORT int ps_vad_sample_rate(ps_vad_t *vad)
POCKETSPHINX_EXPORT ps_vad_t * ps_vad_retain(ps_vad_t *vad)
POCKETSPHINX_EXPORT int ps_vad_set_input_params(ps_vad_t *vad, int sample_rate, double frame_length)