lib_vad API State Structure

struct vad_state_t
#include <vad_api.h>

VAD state structure definition.

This structure contains state for the VAD to build an input frame which includes samples from the previous frame as well as a history of features generated by previous frames to feed into the neural network classifier.

Public Members

int32_t old_features[VAD_N_OLD_FEATURES]

History of features generated from PCM input

int32_t prev_frame[VAD_PROC_FRAME_LENGTH - VAD_FRAME_ADVANCE]

A copy of part of the old frame to build the new frame