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

Unified Diff: webrtc/modules/audio_processing/include/audio_processing.h

Issue 1654443004: Surface the noise estimate of the NS to be used by other components (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Dont return reference to memeber vector Created 4 years, 10 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_processing/include/audio_processing.h
diff --git a/webrtc/modules/audio_processing/include/audio_processing.h b/webrtc/modules/audio_processing/include/audio_processing.h
index bf3565d9ffbb748c1d7bba0d22fbd6924cb1ed7e..49e78388f3cff13506e77e26e32da4b21c2f42b3 100644
--- a/webrtc/modules/audio_processing/include/audio_processing.h
+++ b/webrtc/modules/audio_processing/include/audio_processing.h
@@ -915,6 +915,9 @@ class NoiseSuppression {
// which |kUnsupportedFunctionError| is returned.
virtual float speech_probability() const = 0;
+ // Returns the noise estimate per frequency bin averaged over all channels.
+ virtual std::vector<float> noise_estimate() = 0;
+
protected:
virtual ~NoiseSuppression() {}
};

Powered by Google App Engine
This is Rietveld 408576698