| 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 19 matching lines...) Expand all Loading... |
| 30 enum Activity { kPassive = 0, kActive = 1, kError = -1 }; | 30 enum Activity { kPassive = 0, kActive = 1, kError = -1 }; |
| 31 | 31 |
| 32 explicit Vad(enum Aggressiveness mode); | 32 explicit Vad(enum Aggressiveness mode); |
| 33 | 33 |
| 34 virtual ~Vad(); | 34 virtual ~Vad(); |
| 35 | 35 |
| 36 virtual Activity VoiceActivity(const int16_t* audio, | 36 virtual Activity VoiceActivity(const int16_t* audio, |
| 37 size_t num_samples, | 37 size_t num_samples, |
| 38 int sample_rate_hz); | 38 int sample_rate_hz); |
| 39 | 39 |
| 40 // Reset VAD state. |
| 41 virtual void Reset(); |
| 42 |
| 40 private: | 43 private: |
| 41 VadInst* handle_; | 44 VadInst* handle_; |
| 45 Aggressiveness aggressiveness_; |
| 42 }; | 46 }; |
| 43 | 47 |
| 44 } // namespace webrtc | 48 } // namespace webrtc |
| 45 #endif // WEBRTC_COMMON_AUDIO_VAD_INCLUDE_VAD_H_ | 49 #endif // WEBRTC_COMMON_AUDIO_VAD_INCLUDE_VAD_H_ |
| OLD | NEW |