Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc

Issue 1234463003: Integrate Intelligibility with APM (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« webrtc/voice_engine/output_mixer.cc ('K') | « webrtc/voice_engine/output_mixer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc
diff --git a/webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc b/webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc
index ee9306dd834abde94310c205d587aee984a17592..0c637e88f7d62928324a1c48fd9c211bd039041e 100644
--- a/webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc
+++ b/webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc
@@ -234,6 +234,7 @@ void RunTest(std::string out_path) {
bool opus_stereo = false;
bool opus_dtx = false;
bool experimental_ns_enabled = false;
+ bool intelligibility_enabled = false;
bool debug_recording_started = false;
#if defined(WEBRTC_ANDROID)
@@ -421,6 +422,7 @@ void RunTest(std::string out_path) {
printf("%i. Toggle AGC\n", option_index++);
printf("%i. Toggle NS\n", option_index++);
printf("%i. Toggle experimental NS\n", option_index++);
+ printf("%i. Toggle intelligibility\n", option_index++);
aluebs-webrtc 2015/07/15 01:02:05 Toggle intelligibility enhancer?
ekm 2015/07/17 19:59:38 Done.
printf("%i. Toggle EC\n", option_index++);
printf("%i. Select AEC\n", option_index++);
printf("%i. Select AECM\n", option_index++);
@@ -505,6 +507,17 @@ void RunTest(std::string out_path) {
printf("\n Experimental NS is now off!\n");
}
} else if (option_selection == option_index++) {
+ intelligibility_enabled = !intelligibility_enabled;
+ Config config;
+ config.Set<Intelligibility>(
+ new Intelligibility(intelligibility_enabled));
+ base1->audio_processing()->SetExtraOptions(config);
aluebs-webrtc 2015/07/15 01:02:05 Now that there is 2 calls to SetExtraOptions, you
ekm 2015/07/17 19:59:38 Done.
+ if (intelligibility_enabled) {
+ printf("\n Intelligibility Enhancement is now on!\n");
+ } else {
+ printf("\n Intelligibility Enhancement is now off!\n");
+ }
+ } else if (option_selection == option_index++) {
enable_aec = !enable_aec;
res = apm->SetEcStatus(enable_aec, kEcUnchanged);
VALIDATE;
« webrtc/voice_engine/output_mixer.cc ('K') | « webrtc/voice_engine/output_mixer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698