Surface the noise estimate of the NS to be used by other components
R=henrik.lundin@webrtc.org, turaj@webrtc.org Review URL: https://codereview.webrtc.org/1654443004 . Cr-Commit-Position: refs/heads/master@{#11541}
This commit is contained in:
@ -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> NoiseEstimate() = 0;
|
||||
|
||||
protected:
|
||||
virtual ~NoiseSuppression() {}
|
||||
};
|
||||
|
||||
@ -140,6 +140,7 @@ class MockNoiseSuppression : public NoiseSuppression {
|
||||
Level());
|
||||
MOCK_CONST_METHOD0(speech_probability,
|
||||
float());
|
||||
MOCK_METHOD0(NoiseEstimate, std::vector<float>());
|
||||
};
|
||||
|
||||
class MockVoiceDetection : public VoiceDetection {
|
||||
|
||||
Reference in New Issue
Block a user