2018-04-17 15:58:40 +02:00
|
|
|
# Copyright (c) 2018 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.
|
|
|
|
|
|
|
|
|
|
import("../../../../webrtc.gni")
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rnn_vad") {
|
2019-03-27 09:30:14 +01:00
|
|
|
visibility = [ "../*" ]
|
2020-09-24 15:50:15 +02:00
|
|
|
sources = [
|
|
|
|
|
"features_extraction.cc",
|
|
|
|
|
"features_extraction.h",
|
|
|
|
|
"rnn.cc",
|
|
|
|
|
"rnn.h",
|
|
|
|
|
]
|
|
|
|
|
|
2020-12-28 17:57:24 +01:00
|
|
|
defines = []
|
2020-09-24 15:50:15 +02:00
|
|
|
if (rtc_build_with_neon && current_cpu != "arm64") {
|
|
|
|
|
suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
|
|
|
|
|
cflags = [ "-mfpu=neon" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":rnn_vad_common",
|
2020-12-03 19:33:52 +01:00
|
|
|
":rnn_vad_layers",
|
2020-09-24 15:50:15 +02:00
|
|
|
":rnn_vad_lp_residual",
|
|
|
|
|
":rnn_vad_pitch",
|
|
|
|
|
":rnn_vad_sequence_buffer",
|
|
|
|
|
":rnn_vad_spectral_features",
|
|
|
|
|
"..:biquad_filter",
|
2020-11-27 16:02:38 +01:00
|
|
|
"..:cpu_features",
|
2020-09-24 15:50:15 +02:00
|
|
|
"../../../../api:array_view",
|
|
|
|
|
"../../../../rtc_base:checks",
|
2020-10-29 20:50:13 +01:00
|
|
|
"../../../../rtc_base:safe_compare",
|
|
|
|
|
"../../../../rtc_base:safe_conversions",
|
2020-09-24 15:50:15 +02:00
|
|
|
"//third_party/rnnoise:rnn_vad",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("rnn_vad_auto_correlation") {
|
2018-04-17 15:58:40 +02:00
|
|
|
sources = [
|
2019-04-02 06:58:45 +00:00
|
|
|
"auto_correlation.cc",
|
|
|
|
|
"auto_correlation.h",
|
2020-09-24 15:50:15 +02:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":rnn_vad_common",
|
|
|
|
|
"../../../../api:array_view",
|
|
|
|
|
"../../../../rtc_base:checks",
|
|
|
|
|
"../../utility:pffft_wrapper",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-27 16:02:38 +01:00
|
|
|
rtc_source_set("rnn_vad_common") {
|
2020-09-24 15:50:15 +02:00
|
|
|
# TODO(alessiob): Make this target visibility private.
|
|
|
|
|
visibility = [
|
|
|
|
|
":*",
|
2021-10-08 08:15:29 +02:00
|
|
|
"..:vad_wrapper",
|
2020-09-24 15:50:15 +02:00
|
|
|
]
|
2020-11-27 16:02:38 +01:00
|
|
|
sources = [ "common.h" ]
|
2020-09-24 15:50:15 +02:00
|
|
|
deps = [
|
|
|
|
|
"../../../../rtc_base/system:arch",
|
|
|
|
|
"../../../../system_wrappers",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("rnn_vad_lp_residual") {
|
|
|
|
|
sources = [
|
2018-04-19 17:56:55 +02:00
|
|
|
"lp_residual.cc",
|
|
|
|
|
"lp_residual.h",
|
2020-09-24 15:50:15 +02:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../../../api:array_view",
|
|
|
|
|
"../../../../rtc_base:checks",
|
2020-10-26 12:09:28 +01:00
|
|
|
"../../../../rtc_base:safe_compare",
|
2020-09-24 15:50:15 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-03 19:33:52 +01:00
|
|
|
rtc_source_set("rnn_vad_layers") {
|
|
|
|
|
sources = [
|
|
|
|
|
"rnn_fc.cc",
|
|
|
|
|
"rnn_fc.h",
|
2020-12-03 19:35:05 +01:00
|
|
|
"rnn_gru.cc",
|
|
|
|
|
"rnn_gru.h",
|
2020-12-03 19:33:52 +01:00
|
|
|
]
|
2020-12-28 17:57:24 +01:00
|
|
|
|
|
|
|
|
defines = []
|
|
|
|
|
if (rtc_build_with_neon && current_cpu != "arm64") {
|
|
|
|
|
suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
|
|
|
|
|
cflags = [ "-mfpu=neon" ]
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-03 19:33:52 +01:00
|
|
|
deps = [
|
|
|
|
|
":rnn_vad_common",
|
2020-12-08 11:26:05 +01:00
|
|
|
":vector_math",
|
2020-12-03 19:33:52 +01:00
|
|
|
"..:cpu_features",
|
|
|
|
|
"../../../../api:array_view",
|
|
|
|
|
"../../../../api:function_view",
|
|
|
|
|
"../../../../rtc_base:checks",
|
|
|
|
|
"../../../../rtc_base:safe_conversions",
|
|
|
|
|
"//third_party/rnnoise:rnn_vad",
|
|
|
|
|
]
|
2020-12-08 11:26:05 +01:00
|
|
|
if (current_cpu == "x86" || current_cpu == "x64") {
|
|
|
|
|
deps += [ ":vector_math_avx2" ]
|
|
|
|
|
}
|
2020-12-03 19:33:52 +01:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-26 14:10:06 +01:00
|
|
|
rtc_source_set("vector_math") {
|
|
|
|
|
sources = [ "vector_math.h" ]
|
|
|
|
|
deps = [
|
|
|
|
|
"..:cpu_features",
|
|
|
|
|
"../../../../api:array_view",
|
|
|
|
|
"../../../../rtc_base:checks",
|
2020-12-03 16:54:38 +01:00
|
|
|
"../../../../rtc_base:safe_conversions",
|
2020-11-26 14:10:06 +01:00
|
|
|
"../../../../rtc_base/system:arch",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (current_cpu == "x86" || current_cpu == "x64") {
|
|
|
|
|
rtc_library("vector_math_avx2") {
|
|
|
|
|
sources = [ "vector_math_avx2.cc" ]
|
|
|
|
|
if (is_win) {
|
|
|
|
|
cflags = [ "/arch:AVX2" ]
|
|
|
|
|
} else {
|
|
|
|
|
cflags = [
|
|
|
|
|
"-mavx2",
|
|
|
|
|
"-mfma",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
deps = [
|
|
|
|
|
":vector_math",
|
|
|
|
|
"../../../../api:array_view",
|
|
|
|
|
"../../../../rtc_base:checks",
|
2020-12-03 16:54:38 +01:00
|
|
|
"../../../../rtc_base:safe_conversions",
|
2020-11-26 14:10:06 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-24 15:50:15 +02:00
|
|
|
rtc_library("rnn_vad_pitch") {
|
|
|
|
|
sources = [
|
2018-04-27 16:44:11 +02:00
|
|
|
"pitch_search.cc",
|
|
|
|
|
"pitch_search.h",
|
|
|
|
|
"pitch_search_internal.cc",
|
|
|
|
|
"pitch_search_internal.h",
|
2020-09-24 15:50:15 +02:00
|
|
|
]
|
2020-12-28 17:57:24 +01:00
|
|
|
|
|
|
|
|
defines = []
|
|
|
|
|
if (rtc_build_with_neon && current_cpu != "arm64") {
|
|
|
|
|
suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
|
|
|
|
|
cflags = [ "-mfpu=neon" ]
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-24 15:50:15 +02:00
|
|
|
deps = [
|
|
|
|
|
":rnn_vad_auto_correlation",
|
|
|
|
|
":rnn_vad_common",
|
2020-11-26 14:10:06 +01:00
|
|
|
":vector_math",
|
2020-11-27 16:02:38 +01:00
|
|
|
"..:cpu_features",
|
2020-09-24 15:50:15 +02:00
|
|
|
"../../../../api:array_view",
|
|
|
|
|
"../../../../rtc_base:checks",
|
2020-11-11 12:06:09 +01:00
|
|
|
"../../../../rtc_base:gtest_prod",
|
2020-10-29 15:49:57 +01:00
|
|
|
"../../../../rtc_base:safe_compare",
|
2020-10-29 20:50:13 +01:00
|
|
|
"../../../../rtc_base:safe_conversions",
|
2020-11-26 14:32:14 +01:00
|
|
|
"../../../../rtc_base/system:arch",
|
2020-09-24 15:50:15 +02:00
|
|
|
]
|
2020-11-26 14:10:06 +01:00
|
|
|
if (current_cpu == "x86" || current_cpu == "x64") {
|
|
|
|
|
deps += [ ":vector_math_avx2" ]
|
|
|
|
|
}
|
2020-09-24 15:50:15 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("rnn_vad_ring_buffer") {
|
|
|
|
|
sources = [ "ring_buffer.h" ]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../../../api:array_view",
|
|
|
|
|
"../../../../rtc_base:checks",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("rnn_vad_sequence_buffer") {
|
|
|
|
|
sources = [ "sequence_buffer.h" ]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../../../api:array_view",
|
|
|
|
|
"../../../../rtc_base:checks",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("rnn_vad_spectral_features") {
|
|
|
|
|
sources = [
|
2018-05-09 13:40:38 +02:00
|
|
|
"spectral_features.cc",
|
|
|
|
|
"spectral_features.h",
|
2018-05-08 11:10:45 +02:00
|
|
|
"spectral_features_internal.cc",
|
|
|
|
|
"spectral_features_internal.h",
|
2018-04-17 15:58:40 +02:00
|
|
|
]
|
|
|
|
|
deps = [
|
2020-09-24 15:50:15 +02:00
|
|
|
":rnn_vad_common",
|
|
|
|
|
":rnn_vad_ring_buffer",
|
|
|
|
|
":rnn_vad_symmetric_matrix_buffer",
|
2018-04-17 15:58:40 +02:00
|
|
|
"../../../../api:array_view",
|
|
|
|
|
"../../../../rtc_base:checks",
|
2020-10-29 20:50:13 +01:00
|
|
|
"../../../../rtc_base:safe_compare",
|
2019-04-02 06:58:45 +00:00
|
|
|
"../../utility:pffft_wrapper",
|
2020-09-24 15:50:15 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("rnn_vad_symmetric_matrix_buffer") {
|
|
|
|
|
sources = [ "symmetric_matrix_buffer.h" ]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../../../api:array_view",
|
|
|
|
|
"../../../../rtc_base:checks",
|
2020-10-29 20:50:13 +01:00
|
|
|
"../../../../rtc_base:safe_compare",
|
2018-04-17 15:58:40 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("test_utils") {
|
2018-04-19 17:56:55 +02:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"test_utils.cc",
|
|
|
|
|
"test_utils.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2019-04-02 06:58:45 +00:00
|
|
|
":rnn_vad",
|
2020-09-24 15:50:15 +02:00
|
|
|
":rnn_vad_common",
|
2018-04-19 17:56:55 +02:00
|
|
|
"../../../../api:array_view",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../../../../api:scoped_refptr",
|
2018-04-19 17:56:55 +02:00
|
|
|
"../../../../rtc_base:checks",
|
2020-10-29 20:50:13 +01:00
|
|
|
"../../../../rtc_base:safe_compare",
|
2018-04-19 17:56:55 +02:00
|
|
|
"../../../../test:fileutils",
|
|
|
|
|
"../../../../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
unittest_resources = [
|
2018-05-08 11:10:45 +02:00
|
|
|
"../../../../resources/audio_processing/agc2/rnn_vad/band_energies.dat",
|
2018-04-19 17:56:55 +02:00
|
|
|
"../../../../resources/audio_processing/agc2/rnn_vad/pitch_buf_24k.dat",
|
|
|
|
|
"../../../../resources/audio_processing/agc2/rnn_vad/pitch_lp_res.dat",
|
2020-01-21 12:10:10 +01:00
|
|
|
"../../../../resources/audio_processing/agc2/rnn_vad/pitch_search_int.dat",
|
2018-05-15 15:52:38 +02:00
|
|
|
"../../../../resources/audio_processing/agc2/rnn_vad/samples.pcm",
|
Reland "Reland "AGC2 RNN VAD: Recurrent Neural Network impl""
This reverts commit 3c9f47434f0af3b16f1b8f43cd4500be6fd2ac17.
Reason for revert: downstream projects fixed
Original change's description:
> Revert "Reland "AGC2 RNN VAD: Recurrent Neural Network impl""
>
> This reverts commit e0bba68edea74ca33f4c492eba290c089f233f6b.
>
> Reason for revert: <INSERT REASONING HERE>
>
> Original change's description:
> > Reland "AGC2 RNN VAD: Recurrent Neural Network impl"
> >
> > This reverts commit 97e349ace7a3fd64fff270f0d780e02bb708f503.
> >
> > Reason for revert: downstream projects fixed
> >
> > Original change's description:
> > > Revert "AGC2 RNN VAD: Recurrent Neural Network impl"
> > >
> > > This reverts commit 2491cb73820fe82923b848dfcab6772b4b0addb0.
> > >
> > > Reason for revert: broke internal build
> > >
> > > Original change's description:
> > > > AGC2 RNN VAD: Recurrent Neural Network impl
> > > >
> > > > RNN implementation for the AGC2 VAD that includes a fully connected
> > > > layer and a gated recurrent unit layer.
> > > >
> > > > Bug: webrtc:9076
> > > > Change-Id: Ibb8b0b4e9213f09eb9dbe118bbdc94d7e8e4f91b
> > > > Reviewed-on: https://webrtc-review.googlesource.com/72060
> > > > Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
> > > > Reviewed-by: Alex Loiko <aleloi@webrtc.org>
> > > > Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
> > > > Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
> > > > Cr-Commit-Position: refs/heads/master@{#23101}
> > >
> > > TBR=phoglund@webrtc.org,alessiob@webrtc.org,aleloi@webrtc.org,ivoc@webrtc.org
> > >
> > > Change-Id: Ic311c4b7d79094e959d3a2c4a53c398f34c954e2
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Bug: webrtc:9076
> > > Reviewed-on: https://webrtc-review.googlesource.com/74200
> > > Reviewed-by: Sam Zackrisson <saza@webrtc.org>
> > > Commit-Queue: Sam Zackrisson <saza@webrtc.org>
> > > Cr-Commit-Position: refs/heads/master@{#23103}
> >
> > TBR=phoglund@webrtc.org,saza@webrtc.org,alessiob@webrtc.org,aleloi@webrtc.org,ivoc@webrtc.org
> >
> > Change-Id: I0c7f8e0f59be926322d05b1da1d4d19c0777dab2
> > No-Presubmit: true
> > No-Tree-Checks: true
> > No-Try: true
> > Bug: webrtc:9076
> > Reviewed-on: https://webrtc-review.googlesource.com/74460
> > Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
> > Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
> > Cr-Commit-Position: refs/heads/master@{#23113}
>
> TBR=phoglund@webrtc.org,saza@webrtc.org,alessiob@webrtc.org,aleloi@webrtc.org,ivoc@webrtc.org
>
> Change-Id: I3985a6d38df1d4438a50d031bc9f6cf41eb83121
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: webrtc:9076
> Reviewed-on: https://webrtc-review.googlesource.com/74560
> Reviewed-by: Sam Zackrisson <saza@webrtc.org>
> Commit-Queue: Sam Zackrisson <saza@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#23117}
TBR=phoglund@webrtc.org,saza@webrtc.org,alessiob@webrtc.org,aleloi@webrtc.org,ivoc@webrtc.org
# Not skipping CQ checks because original CL landed > 1 day ago.
Bug: webrtc:9076
Change-Id: I4d81786837017d4daf0dbb1218306795b977ade5
Reviewed-on: https://webrtc-review.googlesource.com/74760
Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23138}
2018-05-07 09:29:54 +00:00
|
|
|
"../../../../resources/audio_processing/agc2/rnn_vad/vad_prob.dat",
|
2018-04-19 17:56:55 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (is_ios) {
|
|
|
|
|
bundle_data("unittests_bundle_data") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = unittest_resources
|
2020-01-21 12:10:10 +01:00
|
|
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
2018-04-19 17:56:55 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("unittests") {
|
2018-04-17 16:46:45 +02:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
2019-04-02 06:58:45 +00:00
|
|
|
"auto_correlation_unittest.cc",
|
2018-05-14 20:22:18 +02:00
|
|
|
"features_extraction_unittest.cc",
|
2018-04-19 17:56:55 +02:00
|
|
|
"lp_residual_unittest.cc",
|
2018-04-27 16:44:11 +02:00
|
|
|
"pitch_search_internal_unittest.cc",
|
|
|
|
|
"pitch_search_unittest.cc",
|
2018-04-19 14:28:00 +02:00
|
|
|
"ring_buffer_unittest.cc",
|
2020-12-03 19:33:52 +01:00
|
|
|
"rnn_fc_unittest.cc",
|
2020-12-03 19:35:05 +01:00
|
|
|
"rnn_gru_unittest.cc",
|
Reland "Reland "AGC2 RNN VAD: Recurrent Neural Network impl""
This reverts commit 3c9f47434f0af3b16f1b8f43cd4500be6fd2ac17.
Reason for revert: downstream projects fixed
Original change's description:
> Revert "Reland "AGC2 RNN VAD: Recurrent Neural Network impl""
>
> This reverts commit e0bba68edea74ca33f4c492eba290c089f233f6b.
>
> Reason for revert: <INSERT REASONING HERE>
>
> Original change's description:
> > Reland "AGC2 RNN VAD: Recurrent Neural Network impl"
> >
> > This reverts commit 97e349ace7a3fd64fff270f0d780e02bb708f503.
> >
> > Reason for revert: downstream projects fixed
> >
> > Original change's description:
> > > Revert "AGC2 RNN VAD: Recurrent Neural Network impl"
> > >
> > > This reverts commit 2491cb73820fe82923b848dfcab6772b4b0addb0.
> > >
> > > Reason for revert: broke internal build
> > >
> > > Original change's description:
> > > > AGC2 RNN VAD: Recurrent Neural Network impl
> > > >
> > > > RNN implementation for the AGC2 VAD that includes a fully connected
> > > > layer and a gated recurrent unit layer.
> > > >
> > > > Bug: webrtc:9076
> > > > Change-Id: Ibb8b0b4e9213f09eb9dbe118bbdc94d7e8e4f91b
> > > > Reviewed-on: https://webrtc-review.googlesource.com/72060
> > > > Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
> > > > Reviewed-by: Alex Loiko <aleloi@webrtc.org>
> > > > Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
> > > > Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
> > > > Cr-Commit-Position: refs/heads/master@{#23101}
> > >
> > > TBR=phoglund@webrtc.org,alessiob@webrtc.org,aleloi@webrtc.org,ivoc@webrtc.org
> > >
> > > Change-Id: Ic311c4b7d79094e959d3a2c4a53c398f34c954e2
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Bug: webrtc:9076
> > > Reviewed-on: https://webrtc-review.googlesource.com/74200
> > > Reviewed-by: Sam Zackrisson <saza@webrtc.org>
> > > Commit-Queue: Sam Zackrisson <saza@webrtc.org>
> > > Cr-Commit-Position: refs/heads/master@{#23103}
> >
> > TBR=phoglund@webrtc.org,saza@webrtc.org,alessiob@webrtc.org,aleloi@webrtc.org,ivoc@webrtc.org
> >
> > Change-Id: I0c7f8e0f59be926322d05b1da1d4d19c0777dab2
> > No-Presubmit: true
> > No-Tree-Checks: true
> > No-Try: true
> > Bug: webrtc:9076
> > Reviewed-on: https://webrtc-review.googlesource.com/74460
> > Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
> > Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
> > Cr-Commit-Position: refs/heads/master@{#23113}
>
> TBR=phoglund@webrtc.org,saza@webrtc.org,alessiob@webrtc.org,aleloi@webrtc.org,ivoc@webrtc.org
>
> Change-Id: I3985a6d38df1d4438a50d031bc9f6cf41eb83121
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: webrtc:9076
> Reviewed-on: https://webrtc-review.googlesource.com/74560
> Reviewed-by: Sam Zackrisson <saza@webrtc.org>
> Commit-Queue: Sam Zackrisson <saza@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#23117}
TBR=phoglund@webrtc.org,saza@webrtc.org,alessiob@webrtc.org,aleloi@webrtc.org,ivoc@webrtc.org
# Not skipping CQ checks because original CL landed > 1 day ago.
Bug: webrtc:9076
Change-Id: I4d81786837017d4daf0dbb1218306795b977ade5
Reviewed-on: https://webrtc-review.googlesource.com/74760
Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23138}
2018-05-07 09:29:54 +00:00
|
|
|
"rnn_unittest.cc",
|
2018-05-15 15:52:38 +02:00
|
|
|
"rnn_vad_unittest.cc",
|
2018-04-17 16:46:45 +02:00
|
|
|
"sequence_buffer_unittest.cc",
|
2018-05-08 11:10:45 +02:00
|
|
|
"spectral_features_internal_unittest.cc",
|
2018-05-09 13:40:38 +02:00
|
|
|
"spectral_features_unittest.cc",
|
2018-04-19 16:48:07 +02:00
|
|
|
"symmetric_matrix_buffer_unittest.cc",
|
2020-11-26 14:10:06 +01:00
|
|
|
"vector_math_unittest.cc",
|
2018-04-17 16:46:45 +02:00
|
|
|
]
|
2020-12-28 17:57:24 +01:00
|
|
|
|
|
|
|
|
defines = []
|
|
|
|
|
if (rtc_build_with_neon && current_cpu != "arm64") {
|
|
|
|
|
suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
|
|
|
|
|
cflags = [ "-mfpu=neon" ]
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-17 16:46:45 +02:00
|
|
|
deps = [
|
2018-08-01 10:24:15 +02:00
|
|
|
":rnn_vad",
|
2020-09-24 15:50:15 +02:00
|
|
|
":rnn_vad_auto_correlation",
|
|
|
|
|
":rnn_vad_common",
|
2020-12-03 19:33:52 +01:00
|
|
|
":rnn_vad_layers",
|
2020-09-24 15:50:15 +02:00
|
|
|
":rnn_vad_lp_residual",
|
|
|
|
|
":rnn_vad_pitch",
|
|
|
|
|
":rnn_vad_ring_buffer",
|
|
|
|
|
":rnn_vad_sequence_buffer",
|
|
|
|
|
":rnn_vad_spectral_features",
|
|
|
|
|
":rnn_vad_symmetric_matrix_buffer",
|
2018-08-01 10:24:15 +02:00
|
|
|
":test_utils",
|
2020-11-26 14:10:06 +01:00
|
|
|
":vector_math",
|
2020-11-27 16:02:38 +01:00
|
|
|
"..:cpu_features",
|
2018-05-15 15:52:38 +02:00
|
|
|
"../..:audioproc_test_utils",
|
2018-04-17 16:46:45 +02:00
|
|
|
"../../../../api:array_view",
|
2018-05-08 13:11:12 +02:00
|
|
|
"../../../../common_audio/",
|
Reland "Reland "AGC2 RNN VAD: Recurrent Neural Network impl""
This reverts commit 3c9f47434f0af3b16f1b8f43cd4500be6fd2ac17.
Reason for revert: downstream projects fixed
Original change's description:
> Revert "Reland "AGC2 RNN VAD: Recurrent Neural Network impl""
>
> This reverts commit e0bba68edea74ca33f4c492eba290c089f233f6b.
>
> Reason for revert: <INSERT REASONING HERE>
>
> Original change's description:
> > Reland "AGC2 RNN VAD: Recurrent Neural Network impl"
> >
> > This reverts commit 97e349ace7a3fd64fff270f0d780e02bb708f503.
> >
> > Reason for revert: downstream projects fixed
> >
> > Original change's description:
> > > Revert "AGC2 RNN VAD: Recurrent Neural Network impl"
> > >
> > > This reverts commit 2491cb73820fe82923b848dfcab6772b4b0addb0.
> > >
> > > Reason for revert: broke internal build
> > >
> > > Original change's description:
> > > > AGC2 RNN VAD: Recurrent Neural Network impl
> > > >
> > > > RNN implementation for the AGC2 VAD that includes a fully connected
> > > > layer and a gated recurrent unit layer.
> > > >
> > > > Bug: webrtc:9076
> > > > Change-Id: Ibb8b0b4e9213f09eb9dbe118bbdc94d7e8e4f91b
> > > > Reviewed-on: https://webrtc-review.googlesource.com/72060
> > > > Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
> > > > Reviewed-by: Alex Loiko <aleloi@webrtc.org>
> > > > Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
> > > > Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
> > > > Cr-Commit-Position: refs/heads/master@{#23101}
> > >
> > > TBR=phoglund@webrtc.org,alessiob@webrtc.org,aleloi@webrtc.org,ivoc@webrtc.org
> > >
> > > Change-Id: Ic311c4b7d79094e959d3a2c4a53c398f34c954e2
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Bug: webrtc:9076
> > > Reviewed-on: https://webrtc-review.googlesource.com/74200
> > > Reviewed-by: Sam Zackrisson <saza@webrtc.org>
> > > Commit-Queue: Sam Zackrisson <saza@webrtc.org>
> > > Cr-Commit-Position: refs/heads/master@{#23103}
> >
> > TBR=phoglund@webrtc.org,saza@webrtc.org,alessiob@webrtc.org,aleloi@webrtc.org,ivoc@webrtc.org
> >
> > Change-Id: I0c7f8e0f59be926322d05b1da1d4d19c0777dab2
> > No-Presubmit: true
> > No-Tree-Checks: true
> > No-Try: true
> > Bug: webrtc:9076
> > Reviewed-on: https://webrtc-review.googlesource.com/74460
> > Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
> > Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
> > Cr-Commit-Position: refs/heads/master@{#23113}
>
> TBR=phoglund@webrtc.org,saza@webrtc.org,alessiob@webrtc.org,aleloi@webrtc.org,ivoc@webrtc.org
>
> Change-Id: I3985a6d38df1d4438a50d031bc9f6cf41eb83121
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: webrtc:9076
> Reviewed-on: https://webrtc-review.googlesource.com/74560
> Reviewed-by: Sam Zackrisson <saza@webrtc.org>
> Commit-Queue: Sam Zackrisson <saza@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#23117}
TBR=phoglund@webrtc.org,saza@webrtc.org,alessiob@webrtc.org,aleloi@webrtc.org,ivoc@webrtc.org
# Not skipping CQ checks because original CL landed > 1 day ago.
Bug: webrtc:9076
Change-Id: I4d81786837017d4daf0dbb1218306795b977ade5
Reviewed-on: https://webrtc-review.googlesource.com/74760
Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23138}
2018-05-07 09:29:54 +00:00
|
|
|
"../../../../rtc_base:checks",
|
2018-05-15 15:52:38 +02:00
|
|
|
"../../../../rtc_base:logging",
|
2020-10-29 20:50:13 +01:00
|
|
|
"../../../../rtc_base:safe_compare",
|
|
|
|
|
"../../../../rtc_base:safe_conversions",
|
2020-11-26 14:32:14 +01:00
|
|
|
"../../../../rtc_base:stringutils",
|
2019-11-01 19:36:39 +01:00
|
|
|
"../../../../rtc_base/system:arch",
|
2018-04-17 16:46:45 +02:00
|
|
|
"../../../../test:test_support",
|
2019-04-10 11:11:09 +02:00
|
|
|
"../../utility:pffft_wrapper",
|
Reland "Reland "AGC2 RNN VAD: Recurrent Neural Network impl""
This reverts commit 3c9f47434f0af3b16f1b8f43cd4500be6fd2ac17.
Reason for revert: downstream projects fixed
Original change's description:
> Revert "Reland "AGC2 RNN VAD: Recurrent Neural Network impl""
>
> This reverts commit e0bba68edea74ca33f4c492eba290c089f233f6b.
>
> Reason for revert: <INSERT REASONING HERE>
>
> Original change's description:
> > Reland "AGC2 RNN VAD: Recurrent Neural Network impl"
> >
> > This reverts commit 97e349ace7a3fd64fff270f0d780e02bb708f503.
> >
> > Reason for revert: downstream projects fixed
> >
> > Original change's description:
> > > Revert "AGC2 RNN VAD: Recurrent Neural Network impl"
> > >
> > > This reverts commit 2491cb73820fe82923b848dfcab6772b4b0addb0.
> > >
> > > Reason for revert: broke internal build
> > >
> > > Original change's description:
> > > > AGC2 RNN VAD: Recurrent Neural Network impl
> > > >
> > > > RNN implementation for the AGC2 VAD that includes a fully connected
> > > > layer and a gated recurrent unit layer.
> > > >
> > > > Bug: webrtc:9076
> > > > Change-Id: Ibb8b0b4e9213f09eb9dbe118bbdc94d7e8e4f91b
> > > > Reviewed-on: https://webrtc-review.googlesource.com/72060
> > > > Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
> > > > Reviewed-by: Alex Loiko <aleloi@webrtc.org>
> > > > Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
> > > > Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
> > > > Cr-Commit-Position: refs/heads/master@{#23101}
> > >
> > > TBR=phoglund@webrtc.org,alessiob@webrtc.org,aleloi@webrtc.org,ivoc@webrtc.org
> > >
> > > Change-Id: Ic311c4b7d79094e959d3a2c4a53c398f34c954e2
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Bug: webrtc:9076
> > > Reviewed-on: https://webrtc-review.googlesource.com/74200
> > > Reviewed-by: Sam Zackrisson <saza@webrtc.org>
> > > Commit-Queue: Sam Zackrisson <saza@webrtc.org>
> > > Cr-Commit-Position: refs/heads/master@{#23103}
> >
> > TBR=phoglund@webrtc.org,saza@webrtc.org,alessiob@webrtc.org,aleloi@webrtc.org,ivoc@webrtc.org
> >
> > Change-Id: I0c7f8e0f59be926322d05b1da1d4d19c0777dab2
> > No-Presubmit: true
> > No-Tree-Checks: true
> > No-Try: true
> > Bug: webrtc:9076
> > Reviewed-on: https://webrtc-review.googlesource.com/74460
> > Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
> > Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
> > Cr-Commit-Position: refs/heads/master@{#23113}
>
> TBR=phoglund@webrtc.org,saza@webrtc.org,alessiob@webrtc.org,aleloi@webrtc.org,ivoc@webrtc.org
>
> Change-Id: I3985a6d38df1d4438a50d031bc9f6cf41eb83121
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: webrtc:9076
> Reviewed-on: https://webrtc-review.googlesource.com/74560
> Reviewed-by: Sam Zackrisson <saza@webrtc.org>
> Commit-Queue: Sam Zackrisson <saza@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#23117}
TBR=phoglund@webrtc.org,saza@webrtc.org,alessiob@webrtc.org,aleloi@webrtc.org,ivoc@webrtc.org
# Not skipping CQ checks because original CL landed > 1 day ago.
Bug: webrtc:9076
Change-Id: I4d81786837017d4daf0dbb1218306795b977ade5
Reviewed-on: https://webrtc-review.googlesource.com/74760
Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23138}
2018-05-07 09:29:54 +00:00
|
|
|
"//third_party/rnnoise:rnn_vad",
|
2018-04-17 16:46:45 +02:00
|
|
|
]
|
2020-11-26 14:10:06 +01:00
|
|
|
if (current_cpu == "x86" || current_cpu == "x64") {
|
|
|
|
|
deps += [ ":vector_math_avx2" ]
|
|
|
|
|
}
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
|
2018-04-19 17:56:55 +02:00
|
|
|
data = unittest_resources
|
|
|
|
|
if (is_ios) {
|
|
|
|
|
deps += [ ":unittests_bundle_data" ]
|
|
|
|
|
}
|
2018-04-17 16:46:45 +02:00
|
|
|
}
|
|
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
if (!build_with_chromium) {
|
|
|
|
|
rtc_executable("rnn_vad_tool") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [ "rnn_vad_tool.cc" ]
|
|
|
|
|
deps = [
|
|
|
|
|
":rnn_vad",
|
|
|
|
|
":rnn_vad_common",
|
|
|
|
|
"..:cpu_features",
|
|
|
|
|
"../../../../api:array_view",
|
|
|
|
|
"../../../../common_audio",
|
2022-04-04 15:06:30 +02:00
|
|
|
"../../../../rtc_base:logging",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../../../../rtc_base:rtc_base_approved",
|
|
|
|
|
"../../../../rtc_base:safe_compare",
|
|
|
|
|
"../../../../test:test_support",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
|
|
|
|
]
|
|
|
|
|
}
|
2018-04-17 15:58:40 +02:00
|
|
|
}
|
|
|
|
|
}
|