44 #include <sphinx_config.h> 46 #include <sphinxbase/sphinxbase_export.h> 57 #define DEFAULT_SAMPLES_PER_SEC 16000 63 #define AD_ERR_NOT_OPEN -2 64 #define AD_ERR_WAVE -3 119 int32 ad_read (
ad_rec_t *, int16 *buf, int32 max);
Audio recording structure.
Basic type definitions used in Sphinx.
SPHINXBASE_EXPORT ad_rec_t * ad_open(void)
Open the default audio device.
SPHINXBASE_EXPORT ad_rec_t * ad_open_dev(const char *dev, int32 samples_per_sec)
Open a specific audio device for recording.
SPHINXBASE_EXPORT ad_rec_t * ad_open_sps(int32 samples_per_sec)
Open the default audio device with a given sampling rate.
Audio recording structure.