#include "modules/audio_processing/agc2/rnn_vad/rnn.h"
#include "rtc_base/checks.h"
#include "third_party/rnnoise/src/rnn_vad_weights.h"
namespace webrtc {
namespace rnn_vad {
namespace {
kInputLayerInputSize;
static_assert …;
kInputDenseBias;
kInputDenseWeights;
kInputLayerOutputSize;
static_assert …;
kHiddenGruBias;
kHiddenGruRecurrentWeights;
kHiddenGruWeights;
kHiddenLayerOutputSize;
static_assert …;
kOutputDenseBias;
kOutputDenseWeights;
kOutputLayerOutputSize;
static_assert …;
}
RnnVad::RnnVad(const AvailableCpuFeatures& cpu_features)
: … { … }
RnnVad::~RnnVad() = default;
void RnnVad::Reset() { … }
float RnnVad::ComputeVadProbability(
rtc::ArrayView<const float, kFeatureVectorSize> feature_vector,
bool is_silence) { … }
}
}