chromium/third_party/webrtc/modules/audio_processing/vad/pitch_based_vad.cc

/*
 *  Copyright (c) 2012 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/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;

// These values should match MATLAB counterparts for unit-tests to pass.
static const int kPosteriorHistorySize =;  // 5 sec of 10 ms frames.
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) {}

}  // namespace webrtc