#include "modules/audio_processing/vad/pitch_based_vad.h"
#include <string.h>
#include "modules/audio_processing/vad/common.h"
#include "modules/audio_processing/vad/noise_gmm_tables.h"
#include "modules/audio_processing/vad/vad_circular_buffer.h"
#include "modules/audio_processing/vad/voice_gmm_tables.h"
namespace webrtc {
static_assert …;
static const int kPosteriorHistorySize = …;
static const double kInitialPriorProbability = …;
static const int kTransientWidthThreshold = …;
static const double kLowProbabilityThreshold = …;
static double LimitProbability(double p) { … }
PitchBasedVad::PitchBasedVad()
: … { … }
PitchBasedVad::~PitchBasedVad() { … }
int PitchBasedVad::VoicingProbability(const AudioFeatures& features,
double* p_combined) { … }
int PitchBasedVad::UpdatePrior(double p) { … }
}