1# Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. 2# 3# Use of this source code is governed by a BSD-style license 4# that can be found in the LICENSE file in the root of the source 5# tree. An additional intellectual property rights grant can be found 6# in the file PATENTS. All contributing project authors may 7# be found in the AUTHORS file in the root of the source tree. 8 9import("../../../webrtc.gni") 10rtc_library("vad") { 11 visibility = [ 12 "../*", 13 "../../../rtc_tools:*", 14 ] 15 sources = [ 16 "common.h", 17 "gmm.cc", 18 "gmm.h", 19 "noise_gmm_tables.h", 20 "pitch_based_vad.cc", 21 "pitch_based_vad.h", 22 "pitch_internal.cc", 23 "pitch_internal.h", 24 "pole_zero_filter.cc", 25 "pole_zero_filter.h", 26 "standalone_vad.cc", 27 "standalone_vad.h", 28 "vad_audio_proc.cc", 29 "vad_audio_proc.h", 30 "vad_audio_proc_internal.h", 31 "vad_circular_buffer.cc", 32 "vad_circular_buffer.h", 33 "voice_activity_detector.cc", 34 "voice_activity_detector.h", 35 "voice_gmm_tables.h", 36 ] 37 deps = [ 38 "../../../audio/utility:audio_frame_operations", 39 "../../../common_audio", 40 "../../../common_audio:common_audio_c", 41 "../../../common_audio/third_party/ooura:fft_size_256", 42 "../../../rtc_base:checks", 43 "../../audio_coding:isac_vad", 44 ] 45} 46 47if (rtc_include_tests) { 48 rtc_library("vad_unittests") { 49 testonly = true 50 sources = [ 51 "gmm_unittest.cc", 52 "pitch_based_vad_unittest.cc", 53 "pitch_internal_unittest.cc", 54 "pole_zero_filter_unittest.cc", 55 "standalone_vad_unittest.cc", 56 "vad_audio_proc_unittest.cc", 57 "vad_circular_buffer_unittest.cc", 58 "voice_activity_detector_unittest.cc", 59 ] 60 deps = [ 61 ":vad", 62 "../../../common_audio", 63 "../../../test:fileutils", 64 "../../../test:test_support", 65 "//testing/gmock", 66 "//testing/gtest", 67 ] 68 } 69} 70