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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 }; 908 };
909 909
910 virtual int set_level(Level level) = 0; 910 virtual int set_level(Level level) = 0;
911 virtual Level level() const = 0; 911 virtual Level level() const = 0;
912 912
913 // Returns the internally computed prior speech probability of current frame 913 // Returns the internally computed prior speech probability of current frame
914 // averaged over output channels. This is not supported in fixed point, for 914 // averaged over output channels. This is not supported in fixed point, for
915 // which |kUnsupportedFunctionError| is returned. 915 // which |kUnsupportedFunctionError| is returned.
916 virtual float speech_probability() const = 0; 916 virtual float speech_probability() const = 0;
917 917
918 // Returns the noise estimate per frequency bin of current chunk averaged
turaj 2016/02/05 01:47:58 Isn't it some sort of noise power averaged over so
aluebs-webrtc 2016/02/06 00:12:27 No, it actually estimates it smoothly over time. G
919 // over all channels.
920 virtual const std::vector<float>& noise_estimate() = 0;
921
918 protected: 922 protected:
919 virtual ~NoiseSuppression() {} 923 virtual ~NoiseSuppression() {}
920 }; 924 };
921 925
922 // The voice activity detection (VAD) component analyzes the stream to 926 // The voice activity detection (VAD) component analyzes the stream to
923 // determine if voice is present. A facility is also provided to pass in an 927 // determine if voice is present. A facility is also provided to pass in an
924 // external VAD decision. 928 // external VAD decision.
925 // 929 //
926 // In addition to |stream_has_voice()| the VAD decision is provided through the 930 // In addition to |stream_has_voice()| the VAD decision is provided through the
927 // |AudioFrame| passed to |ProcessStream()|. The |vad_activity_| member will be 931 // |AudioFrame| passed to |ProcessStream()|. The |vad_activity_| member will be
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 // This does not impact the size of frames passed to |ProcessStream()|. 968 // This does not impact the size of frames passed to |ProcessStream()|.
965 virtual int set_frame_size_ms(int size) = 0; 969 virtual int set_frame_size_ms(int size) = 0;
966 virtual int frame_size_ms() const = 0; 970 virtual int frame_size_ms() const = 0;
967 971
968 protected: 972 protected:
969 virtual ~VoiceDetection() {} 973 virtual ~VoiceDetection() {}
970 }; 974 };
971 } // namespace webrtc 975 } // namespace webrtc
972 976
973 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ 977 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698