OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 std::unique_ptr<LappedTransform> render_mangler_; | 106 std::unique_ptr<LappedTransform> render_mangler_; |
107 | 107 |
108 VoiceActivityDetector vad_; | 108 VoiceActivityDetector vad_; |
109 std::vector<int16_t> audio_s16_; | 109 std::vector<int16_t> audio_s16_; |
110 size_t chunks_since_voice_; | 110 size_t chunks_since_voice_; |
111 bool is_speech_; | 111 bool is_speech_; |
112 float snr_; | 112 float snr_; |
113 bool is_active_; | 113 bool is_active_; |
114 | 114 |
| 115 size_t num_chunks_; |
| 116 |
115 std::vector<float> noise_estimation_buffer_; | 117 std::vector<float> noise_estimation_buffer_; |
116 SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>> | 118 SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>> |
117 noise_estimation_queue_; | 119 noise_estimation_queue_; |
118 }; | 120 }; |
119 | 121 |
120 } // namespace webrtc | 122 } // namespace webrtc |
121 | 123 |
122 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INTELLIGIBILITY_INTELLIGIBILITY_ENHAN
CER_H_ | 124 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INTELLIGIBILITY_INTELLIGIBILITY_ENHAN
CER_H_ |
OLD | NEW |