RTS API Documentation
1.10.11
|
Functions | |
SWITCH_BEGIN_EXTERN_C switch_vad_t * | switch_vad_init (int sample_rate, int channels) |
int | switch_vad_set_mode (switch_vad_t *vad, int mode) |
void | switch_vad_set_param (switch_vad_t *vad, const char *key, int val) |
switch_vad_state_t | switch_vad_process (switch_vad_t *vad, int16_t *data, unsigned int samples) |
switch_vad_state_t | switch_vad_get_state (switch_vad_t *vad) |
void | switch_vad_reset (switch_vad_t *vad) |
void | switch_vad_destroy (switch_vad_t **vad) |
const char * | switch_vad_state2str (switch_vad_state_t state) |
void switch_vad_destroy | ( | switch_vad_t ** | vad | ) |
Definition at line 254 of file switch_vad.c.
switch_vad_state_t switch_vad_get_state | ( | switch_vad_t * | vad | ) |
SWITCH_BEGIN_EXTERN_C switch_vad_t* switch_vad_init | ( | int | sample_rate, |
int | channels | ||
) |
Definition at line 75 of file switch_vad.c.
References switch_vad_s::channels, switch_vad_s::divisor, memset(), switch_vad_s::sample_rate, switch_vad_s::silence_samples_thresh, switch_vad_reset(), switch_vad_s::thresh, and switch_vad_s::voice_samples_thresh.
switch_vad_state_t switch_vad_process | ( | switch_vad_t * | vad, |
int16_t * | data, | ||
unsigned int | samples | ||
) |
Definition at line 181 of file switch_vad.c.
References switch_vad_s::channels, count, switch_vad_s::debug, switch_vad_s::divisor, switch_vad_s::silence_samples, switch_vad_s::silence_samples_thresh, SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, SWITCH_LOG_INFO, SWITCH_LOG_NOTICE, switch_log_printf(), switch_vad_state2str(), SWITCH_VAD_STATE_NONE, SWITCH_VAD_STATE_START_TALKING, SWITCH_VAD_STATE_STOP_TALKING, SWITCH_VAD_STATE_TALKING, switch_vad_s::thresh, switch_vad_s::vad_state, switch_vad_s::voice_samples, and switch_vad_s::voice_samples_thresh.
void switch_vad_reset | ( | switch_vad_t * | vad | ) |
Definition at line 167 of file switch_vad.c.
References switch_vad_s::debug, switch_vad_s::silence_samples, SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, switch_log_printf(), SWITCH_VAD_STATE_NONE, switch_vad_s::vad_state, and switch_vad_s::voice_samples.
Referenced by switch_vad_init().
int switch_vad_set_mode | ( | switch_vad_t * | vad, |
int | mode | ||
) |
Definition at line 96 of file switch_vad.c.
References switch_vad_s::debug, switch_vad_s::sample_rate, SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, switch_log_printf(), and SWITCH_LOG_WARNING.
void switch_vad_set_param | ( | switch_vad_t * | vad, |
const char * | key, | ||
int | val | ||
) |
Definition at line 132 of file switch_vad.c.
References switch_vad_s::debug, switch_vad_s::sample_rate, switch_vad_s::silence_samples_thresh, SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, switch_log_printf(), SWITCH_LOG_WARNING, switch_vad_s::thresh, and switch_vad_s::voice_samples_thresh.
const char* switch_vad_state2str | ( | switch_vad_state_t | state | ) |
Definition at line 59 of file switch_vad.c.
References SWITCH_VAD_STATE_NONE, SWITCH_VAD_STATE_START_TALKING, SWITCH_VAD_STATE_STOP_TALKING, and SWITCH_VAD_STATE_TALKING.
Referenced by switch_vad_process().