PocketSphinx
5.0.0
A small speech recognizer
|
Go to the documentation of this file.
38 #ifndef __PS_ENDPOINTER_H__
39 #define __PS_ENDPOINTER_H__
43 #include <pocketsphinx/export.h>
53 #include <pocketsphinx/export.h>
65 #define PS_ENDPOINTER_DEFAULT_WINDOW 0.3
69 #define PS_ENDPOINTER_DEFAULT_RATIO 0.9
103 int sample_rate,
double frame_length);
139 #define ps_endpointer_frame_size(ep) ps_vad_frame_size(ps_endpointer_vad(ep))
144 #define ps_endpointer_frame_length(ep) ps_vad_frame_length(ps_endpointer_vad(ep))
149 #define ps_endpointer_sample_rate(ep) ps_vad_sample_rate(ps_endpointer_vad(ep))
const POCKETSPHINX_EXPORT int16 * ps_endpointer_process(ps_endpointer_t *ep, const int16 *frame)
Basic type definitions used in Sphinx.
POCKETSPHINX_EXPORT int ps_endpointer_free(ps_endpointer_t *ep)
POCKETSPHINX_EXPORT double ps_endpointer_speech_start(ps_endpointer_t *ep)
POCKETSPHINX_EXPORT ps_endpointer_t * ps_endpointer_retain(ps_endpointer_t *ep)
Simple voice activity detection.
POCKETSPHINX_EXPORT int ps_endpointer_in_speech(ps_endpointer_t *ep)
const POCKETSPHINX_EXPORT int16 * ps_endpointer_end_stream(ps_endpointer_t *ep, const int16 *frame, size_t nsamp, size_t *out_nsamp)
POCKETSPHINX_EXPORT ps_endpointer_t * ps_endpointer_init(double window, double ratio, ps_vad_mode_t mode, int sample_rate, double frame_length)
POCKETSPHINX_EXPORT ps_vad_t * ps_endpointer_vad(ps_endpointer_t *ep)
Simple voice activity detection based endpointing.
POCKETSPHINX_EXPORT double ps_endpointer_speech_end(ps_endpointer_t *ep)