| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 |
| 11 | #ifndef MODULES_AUDIO_PROCESSING_VAD_COMMON_H_ |
| 12 | #define MODULES_AUDIO_PROCESSING_VAD_COMMON_H_ |
| 13 |
| 14 | #include <stddef.h> |
| 15 |
| 16 | static const int kSampleRateHz = 16000; |
| 17 | static const size_t kLength10Ms = kSampleRateHz / 100; |
| 18 | static const size_t kMaxNumFrames = 4; |
| 19 |
| 20 | struct AudioFeatures { |
| 21 | double log_pitch_gain[kMaxNumFrames]; |
| 22 | double pitch_lag_hz[kMaxNumFrames]; |
| 23 | double spectral_peak[kMaxNumFrames]; |
| 24 | double rms[kMaxNumFrames]; |
| 25 | size_t num_frames; |
| 26 | bool silence; |
| 27 | }; |
| 28 |
| 29 | #endif // MODULES_AUDIO_PROCESSING_VAD_COMMON_H_ |
| 30 |