/* * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #include "modules/audio_processing/vad/voice_activity_detector.h" #include <algorithm> #include "rtc_base/checks.h" namespace webrtc { namespace { const size_t kNumChannels = …; const double kDefaultVoiceValue = …; const double kNeutralProbability = …; const double kLowProbability = …; } // namespace VoiceActivityDetector::VoiceActivityDetector() : … { … } VoiceActivityDetector::~VoiceActivityDetector() = default; // Because ISAC has a different chunk length, it updates // `chunkwise_voice_probabilities_` and `chunkwise_rms_` when there is new data. // Otherwise it clears them. void VoiceActivityDetector::ProcessChunk(const int16_t* audio, size_t length, int sample_rate_hz) { … } } // namespace webrtc