OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 "beamforming."); | 63 "beamforming."); |
64 DEFINE_bool(fixed_interface, | 64 DEFINE_bool(fixed_interface, |
65 false, | 65 false, |
66 "Use the fixed interface when operating on wav files"); | 66 "Use the fixed interface when operating on wav files"); |
67 DEFINE_int32(aec, | 67 DEFINE_int32(aec, |
68 kParameterNotSpecifiedValue, | 68 kParameterNotSpecifiedValue, |
69 "Activate (1) or deactivate(0) the echo canceller"); | 69 "Activate (1) or deactivate(0) the echo canceller"); |
70 DEFINE_int32(aecm, | 70 DEFINE_int32(aecm, |
71 kParameterNotSpecifiedValue, | 71 kParameterNotSpecifiedValue, |
72 "Activate (1) or deactivate(0) the mobile echo controller"); | 72 "Activate (1) or deactivate(0) the mobile echo controller"); |
73 DEFINE_int32(red, | 73 DEFINE_int32(ed, |
74 kParameterNotSpecifiedValue, | 74 kParameterNotSpecifiedValue, |
75 "Activate (1) or deactivate (0) the residual echo detector"); | 75 "Activate (1) or deactivate (0) the residual echo detector"); |
76 DEFINE_string(red_graph, "", "Output filename for graph of echo likelihood"); | 76 DEFINE_string(ed_graph, "", "Output filename for graph of echo likelihood"); |
77 DEFINE_int32(agc, | 77 DEFINE_int32(agc, |
78 kParameterNotSpecifiedValue, | 78 kParameterNotSpecifiedValue, |
79 "Activate (1) or deactivate(0) the AGC"); | 79 "Activate (1) or deactivate(0) the AGC"); |
80 DEFINE_int32(hpf, | 80 DEFINE_int32(hpf, |
81 kParameterNotSpecifiedValue, | 81 kParameterNotSpecifiedValue, |
82 "Activate (1) or deactivate(0) the high-pass filter"); | 82 "Activate (1) or deactivate(0) the high-pass filter"); |
83 DEFINE_int32(ns, | 83 DEFINE_int32(ns, |
84 kParameterNotSpecifiedValue, | 84 kParameterNotSpecifiedValue, |
85 "Activate (1) or deactivate(0) the noise suppressor"); | 85 "Activate (1) or deactivate(0) the noise suppressor"); |
86 DEFINE_int32(ts, | 86 DEFINE_int32(ts, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 settings.use_le = rtc::Optional<bool>(true); | 193 settings.use_le = rtc::Optional<bool>(true); |
194 settings.use_vad = rtc::Optional<bool>(true); | 194 settings.use_vad = rtc::Optional<bool>(true); |
195 settings.use_ie = rtc::Optional<bool>(false); | 195 settings.use_ie = rtc::Optional<bool>(false); |
196 settings.use_bf = rtc::Optional<bool>(false); | 196 settings.use_bf = rtc::Optional<bool>(false); |
197 settings.use_ts = rtc::Optional<bool>(true); | 197 settings.use_ts = rtc::Optional<bool>(true); |
198 settings.use_ns = rtc::Optional<bool>(true); | 198 settings.use_ns = rtc::Optional<bool>(true); |
199 settings.use_hpf = rtc::Optional<bool>(true); | 199 settings.use_hpf = rtc::Optional<bool>(true); |
200 settings.use_agc = rtc::Optional<bool>(true); | 200 settings.use_agc = rtc::Optional<bool>(true); |
201 settings.use_aec = rtc::Optional<bool>(true); | 201 settings.use_aec = rtc::Optional<bool>(true); |
202 settings.use_aecm = rtc::Optional<bool>(false); | 202 settings.use_aecm = rtc::Optional<bool>(false); |
203 settings.use_red = rtc::Optional<bool>(false); | 203 settings.use_ed = rtc::Optional<bool>(false); |
204 } | 204 } |
205 SetSettingIfSpecified(FLAGS_dump_input, &settings.aec_dump_input_filename); | 205 SetSettingIfSpecified(FLAGS_dump_input, &settings.aec_dump_input_filename); |
206 SetSettingIfSpecified(FLAGS_dump_output, &settings.aec_dump_output_filename); | 206 SetSettingIfSpecified(FLAGS_dump_output, &settings.aec_dump_output_filename); |
207 SetSettingIfSpecified(FLAGS_i, &settings.input_filename); | 207 SetSettingIfSpecified(FLAGS_i, &settings.input_filename); |
208 SetSettingIfSpecified(FLAGS_o, &settings.output_filename); | 208 SetSettingIfSpecified(FLAGS_o, &settings.output_filename); |
209 SetSettingIfSpecified(FLAGS_ri, &settings.reverse_input_filename); | 209 SetSettingIfSpecified(FLAGS_ri, &settings.reverse_input_filename); |
210 SetSettingIfSpecified(FLAGS_ro, &settings.reverse_output_filename); | 210 SetSettingIfSpecified(FLAGS_ro, &settings.reverse_output_filename); |
211 SetSettingIfSpecified(FLAGS_output_num_channels, | 211 SetSettingIfSpecified(FLAGS_output_num_channels, |
212 &settings.output_num_channels); | 212 &settings.output_num_channels); |
213 SetSettingIfSpecified(FLAGS_reverse_output_num_channels, | 213 SetSettingIfSpecified(FLAGS_reverse_output_num_channels, |
214 &settings.reverse_output_num_channels); | 214 &settings.reverse_output_num_channels); |
215 SetSettingIfSpecified(FLAGS_output_sample_rate_hz, | 215 SetSettingIfSpecified(FLAGS_output_sample_rate_hz, |
216 &settings.output_sample_rate_hz); | 216 &settings.output_sample_rate_hz); |
217 SetSettingIfSpecified(FLAGS_reverse_output_sample_rate_hz, | 217 SetSettingIfSpecified(FLAGS_reverse_output_sample_rate_hz, |
218 &settings.reverse_output_sample_rate_hz); | 218 &settings.reverse_output_sample_rate_hz); |
219 SetSettingIfSpecified(FLAGS_mic_positions, &settings.microphone_positions); | 219 SetSettingIfSpecified(FLAGS_mic_positions, &settings.microphone_positions); |
220 settings.target_angle_degrees = FLAGS_target_angle_degrees; | 220 settings.target_angle_degrees = FLAGS_target_angle_degrees; |
221 SetSettingIfFlagSet(FLAGS_aec, &settings.use_aec); | 221 SetSettingIfFlagSet(FLAGS_aec, &settings.use_aec); |
222 SetSettingIfFlagSet(FLAGS_aecm, &settings.use_aecm); | 222 SetSettingIfFlagSet(FLAGS_aecm, &settings.use_aecm); |
223 SetSettingIfFlagSet(FLAGS_red, &settings.use_red); | 223 SetSettingIfFlagSet(FLAGS_ed, &settings.use_ed); |
224 SetSettingIfSpecified(FLAGS_red_graph, &settings.red_graph_output_filename); | 224 SetSettingIfSpecified(FLAGS_ed_graph, &settings.ed_graph_output_filename); |
225 SetSettingIfFlagSet(FLAGS_agc, &settings.use_agc); | 225 SetSettingIfFlagSet(FLAGS_agc, &settings.use_agc); |
226 SetSettingIfFlagSet(FLAGS_hpf, &settings.use_hpf); | 226 SetSettingIfFlagSet(FLAGS_hpf, &settings.use_hpf); |
227 SetSettingIfFlagSet(FLAGS_ns, &settings.use_ns); | 227 SetSettingIfFlagSet(FLAGS_ns, &settings.use_ns); |
228 SetSettingIfFlagSet(FLAGS_ts, &settings.use_ts); | 228 SetSettingIfFlagSet(FLAGS_ts, &settings.use_ts); |
229 SetSettingIfFlagSet(FLAGS_bf, &settings.use_bf); | 229 SetSettingIfFlagSet(FLAGS_bf, &settings.use_bf); |
230 SetSettingIfFlagSet(FLAGS_ie, &settings.use_ie); | 230 SetSettingIfFlagSet(FLAGS_ie, &settings.use_ie); |
231 SetSettingIfFlagSet(FLAGS_vad, &settings.use_vad); | 231 SetSettingIfFlagSet(FLAGS_vad, &settings.use_vad); |
232 SetSettingIfFlagSet(FLAGS_le, &settings.use_le); | 232 SetSettingIfFlagSet(FLAGS_le, &settings.use_le); |
233 SetSettingIfSpecified(FLAGS_aec_suppression_level, | 233 SetSettingIfSpecified(FLAGS_aec_suppression_level, |
234 &settings.aec_suppression_level); | 234 &settings.aec_suppression_level); |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 | 434 |
435 return 0; | 435 return 0; |
436 } | 436 } |
437 | 437 |
438 } // namespace test | 438 } // namespace test |
439 } // namespace webrtc | 439 } // namespace webrtc |
440 | 440 |
441 int main(int argc, char* argv[]) { | 441 int main(int argc, char* argv[]) { |
442 return webrtc::test::main(argc, argv); | 442 return webrtc::test::main(argc, argv); |
443 } | 443 } |
OLD | NEW |