53 #include <sphinxbase/sphinxbase_export.h> 129 int yin_read(
yin_t *pe, uint16 *out_period,
float *out_bestdiff);
SPHINXBASE_EXPORT void yin_end(yin_t *pe)
Mark the end of an utterance.
SPHINXBASE_EXPORT int yin_read(yin_t *pe, uint16 *out_period, float *out_bestdiff)
Read a raw estimated pitch value from the pitch estimator.
float search_threshold
Size of analysis frame.
Basic type definitions used in Sphinx.
SPHINXBASE_EXPORT void yin_free(yin_t *pe)
Free a moving-window pitch estimator.
SPHINXBASE_EXPORT void yin_start(yin_t *pe)
Start processing an utterance.
SPHINXBASE_EXPORT void yin_write_stored(yin_t *pe)
Feed stored frame of data to the pitch estimator.
SPHINXBASE_EXPORT yin_t * yin_init(int frame_size, float search_threshold, float search_range, int smooth_window)
Initialize moving-window pitch estimation.
SPHINXBASE_EXPORT void yin_write(yin_t *pe, int16 const *frame)
Feed a frame of data to the pitch estimator.
int16 * frame
Storage for frame.
float search_range
Range around best local estimate to search.
SPHINXBASE_EXPORT void yin_store(yin_t *pe, int16 const *frame)
Store a frame of data to the pitch estimator.