You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.8 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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. import("../../../webrtc.gni")
  9. rtc_library("vad") {
  10. visibility = [
  11. "../*",
  12. "../../../rtc_tools:*",
  13. ]
  14. sources = [
  15. "common.h",
  16. "gmm.cc",
  17. "gmm.h",
  18. "noise_gmm_tables.h",
  19. "pitch_based_vad.cc",
  20. "pitch_based_vad.h",
  21. "pitch_internal.cc",
  22. "pitch_internal.h",
  23. "pole_zero_filter.cc",
  24. "pole_zero_filter.h",
  25. "standalone_vad.cc",
  26. "standalone_vad.h",
  27. "vad_audio_proc.cc",
  28. "vad_audio_proc.h",
  29. "vad_audio_proc_internal.h",
  30. "vad_circular_buffer.cc",
  31. "vad_circular_buffer.h",
  32. "voice_activity_detector.cc",
  33. "voice_activity_detector.h",
  34. "voice_gmm_tables.h",
  35. ]
  36. deps = [
  37. "../../../audio/utility:audio_frame_operations",
  38. "../../../common_audio",
  39. "../../../common_audio:common_audio_c",
  40. "../../../common_audio/third_party/fft4g",
  41. "../../../rtc_base:checks",
  42. "../../audio_coding:isac_vad",
  43. ]
  44. }
  45. if (rtc_include_tests) {
  46. rtc_library("vad_unittests") {
  47. testonly = true
  48. sources = [
  49. "gmm_unittest.cc",
  50. "pitch_based_vad_unittest.cc",
  51. "pitch_internal_unittest.cc",
  52. "pole_zero_filter_unittest.cc",
  53. "standalone_vad_unittest.cc",
  54. "vad_audio_proc_unittest.cc",
  55. "vad_circular_buffer_unittest.cc",
  56. "voice_activity_detector_unittest.cc",
  57. ]
  58. deps = [
  59. ":vad",
  60. "../../../common_audio",
  61. "../../../test:fileutils",
  62. "../../../test:test_support",
  63. "//testing/gmock",
  64. "//testing/gtest",
  65. ]
  66. }
  67. }