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

Unified Diff: webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java

Issue 1952123003: Surface the IntelligibilityEnhancer on MediaConstraints (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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
Index: webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java
diff --git a/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java b/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java
index fd27ca770bd523a7ae27ecf6b339caddfcbbdacd..65c6cc92305b045fedf1712905904ce661fe118f 100644
--- a/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java
+++ b/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java
@@ -65,6 +65,7 @@ public final class WebRtcAudioUtils {
private static boolean useWebRtcBasedAcousticEchoCanceler = false;
private static boolean useWebRtcBasedAutomaticGainControl = false;
private static boolean useWebRtcBasedNoiseSuppressor = false;
+ private static boolean useWebRtcBasedIntelligibilityEnhancer = false;
the sun 2016/05/06 09:00:16 So is there a non-webrtc based IE?
aluebs-webrtc 2016/05/06 16:27:10 No, so I am happy to change the naming here if you
// Call these methods if any hardware based effect shall be replaced by a
// software based version provided by the WebRTC stack instead.
@@ -80,6 +81,10 @@ public final class WebRtcAudioUtils {
boolean enable) {
useWebRtcBasedNoiseSuppressor = enable;
}
+ public static synchronized void setWebRtcBasedIntelligibilityEnhancer(
+ boolean enable) {
+ useWebRtcBasedIntelligibilityEnhancer = enable;
+ }
public static synchronized boolean useWebRtcBasedAcousticEchoCanceler() {
if (useWebRtcBasedAcousticEchoCanceler) {
@@ -99,6 +104,12 @@ public final class WebRtcAudioUtils {
}
return useWebRtcBasedNoiseSuppressor;
}
+ public static synchronized boolean useWebRtcBasedIntelligibilityEnhancer() {
+ if (useWebRtcBasedIntelligibilityEnhancer) {
+ Logging.w(TAG, "Overriding default behavior; now using WebRTC IE!");
+ }
+ return useWebRtcBasedIntelligibilityEnhancer;
+ }
// Call this method if the default handling of querying the native sample
// rate shall be overridden. Can be useful on some devices where the

Powered by Google App Engine
This is Rietveld 408576698