OLD | NEW |
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 * confused. | 102 * confused. |
103 * | 103 * |
104 * Input | 104 * Input |
105 * - handle : Noise suppression instance. | 105 * - handle : Noise suppression instance. |
106 * | 106 * |
107 * Return value : Prior speech probability in interval [0.0, 1.0]. | 107 * Return value : Prior speech probability in interval [0.0, 1.0]. |
108 * -1 - NULL pointer or uninitialized instance. | 108 * -1 - NULL pointer or uninitialized instance. |
109 */ | 109 */ |
110 float WebRtcNs_prior_speech_probability(NsHandle* handle); | 110 float WebRtcNs_prior_speech_probability(NsHandle* handle); |
111 | 111 |
| 112 /* Returns a pointer to the noise estimate per frequency bin. The number of |
| 113 * frequency bins can be provided using WebRtcNs_num_freq(). |
| 114 * |
| 115 * Input |
| 116 * - handle : Noise suppression instance. |
| 117 * |
| 118 * Return value : Pointer to the noise estimate per frequency bin. |
| 119 * Returns NULL if the input is a NULL pointer or an |
| 120 * uninitialized instance. |
| 121 */ |
| 122 const float* WebRtcNs_noise_estimate(const NsHandle* handle); |
| 123 |
| 124 /* Returns the number of frequency bins, which is the length of the noise |
| 125 * estimate for example. |
| 126 * |
| 127 * Return value : Number of frequency bins. |
| 128 */ |
| 129 size_t WebRtcNs_num_freq(); |
| 130 |
112 #ifdef __cplusplus | 131 #ifdef __cplusplus |
113 } | 132 } |
114 #endif | 133 #endif |
115 | 134 |
116 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_NS_NOISE_SUPPRESSION_H_ | 135 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_NS_NOISE_SUPPRESSION_H_ |
OLD | NEW |