Chromium Code Reviews| 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 |