#include "modules/audio_processing/agc2/rnn_vad/features_extraction.h"
#include <array>
#include "modules/audio_processing/agc2/rnn_vad/lp_residual.h"
#include "rtc_base/checks.h"
namespace webrtc {
namespace rnn_vad {
namespace {
constexpr BiQuadFilter::Config kHpfConfig24k{ … };
}
FeaturesExtractor::FeaturesExtractor(const AvailableCpuFeatures& cpu_features)
: … { … }
FeaturesExtractor::~FeaturesExtractor() = default;
void FeaturesExtractor::Reset() { … }
bool FeaturesExtractor::CheckSilenceComputeFeatures(
rtc::ArrayView<const float, kFrameSize10ms24kHz> samples,
rtc::ArrayView<float, kFeatureVectorSize> feature_vector) { … }
}
}