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 |
11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_TYPING_DETECTION_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_TYPING_DETECTION_H_ |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_TYPING_DETECTION_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_TYPING_DETECTION_H_ |
13 | 13 |
14 #include "webrtc/modules/interface/module_common_types.h" | 14 #include "webrtc/modules/include/module_common_types.h" |
15 #include "webrtc/typedefs.h" | 15 #include "webrtc/typedefs.h" |
16 | 16 |
17 namespace webrtc { | 17 namespace webrtc { |
18 | 18 |
19 class TypingDetection { | 19 class TypingDetection { |
20 public: | 20 public: |
21 TypingDetection(); | 21 TypingDetection(); |
22 virtual ~TypingDetection(); | 22 virtual ~TypingDetection(); |
23 | 23 |
24 // Run the detection algortihm. Shall be called every 10 ms. Returns true if | 24 // Run the detection algortihm. Shall be called every 10 ms. Returns true if |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // of the last N calls to Process() has detected typing for each respective | 84 // of the last N calls to Process() has detected typing for each respective |
85 // 10 ms slot, Process() will return false. If at least one of the last N | 85 // 10 ms slot, Process() will return false. If at least one of the last N |
86 // calls has detected typing, Process() will return true. And that returned | 86 // calls has detected typing, Process() will return true. And that returned |
87 // status will then remain the same until the next N calls have been done. | 87 // status will then remain the same until the next N calls have been done. |
88 int report_detection_update_period_; | 88 int report_detection_update_period_; |
89 }; | 89 }; |
90 | 90 |
91 } // namespace webrtc | 91 } // namespace webrtc |
92 | 92 |
93 #endif // #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_TYPING_DETECTION_H_ | 93 #endif // #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_TYPING_DETECTION_H_ |
OLD | NEW |