#include "common_audio/vad/include/webrtc_vad.h"
#include <stdlib.h>
#include <string.h>
#include "common_audio/signal_processing/include/signal_processing_library.h"
#include "common_audio/vad/vad_core.h"
static const int kInitCheck = …;
static const int kValidRates[] = …;
static const size_t kRatesSize = …;
static const int kMaxFrameLengthMs = …;
VadInst* WebRtcVad_Create(void) { … }
void WebRtcVad_Free(VadInst* handle) { … }
int WebRtcVad_Init(VadInst* handle) { … }
int WebRtcVad_set_mode(VadInst* handle, int mode) { … }
int WebRtcVad_Process(VadInst* handle, int fs, const int16_t* audio_frame,
size_t frame_length) { … }
int WebRtcVad_ValidRateAndFrameLength(int rate, size_t frame_length) { … }