OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // The EnergyEndpointer class finds likely speech onset and offset points. | 5 // The EnergyEndpointer class finds likely speech onset and offset points. |
6 // | 6 // |
7 // The implementation described here is about the simplest possible. | 7 // The implementation described here is about the simplest possible. |
8 // It is based on timings of threshold crossings for overall signal | 8 // It is based on timings of threshold crossings for overall signal |
9 // RMS. It is suitable for light weight applications. | 9 // RMS. It is suitable for light weight applications. |
10 // | 10 // |
11 // As written, the basic idea is that one specifies intervals that | 11 // As written, the basic idea is that one specifies intervals that |
(...skipping 25 matching lines...) Expand all Loading... |
37 #ifndef CONTENT_BROWSER_SPEECH_ENDPOINTER_ENERGY_ENDPOINTER_H_ | 37 #ifndef CONTENT_BROWSER_SPEECH_ENDPOINTER_ENERGY_ENDPOINTER_H_ |
38 #define CONTENT_BROWSER_SPEECH_ENDPOINTER_ENERGY_ENDPOINTER_H_ | 38 #define CONTENT_BROWSER_SPEECH_ENDPOINTER_ENERGY_ENDPOINTER_H_ |
39 | 39 |
40 #include <vector> | 40 #include <vector> |
41 | 41 |
42 #include "base/basictypes.h" | 42 #include "base/basictypes.h" |
43 #include "base/memory/scoped_ptr.h" | 43 #include "base/memory/scoped_ptr.h" |
44 #include "content/browser/speech/endpointer/energy_endpointer_params.h" | 44 #include "content/browser/speech/endpointer/energy_endpointer_params.h" |
45 #include "content/common/content_export.h" | 45 #include "content/common/content_export.h" |
46 | 46 |
47 namespace speech_input { | 47 namespace speech { |
48 | 48 |
49 // Endpointer status codes | 49 // Endpointer status codes |
50 enum EpStatus { | 50 enum EpStatus { |
51 EP_PRE_SPEECH = 10, | 51 EP_PRE_SPEECH = 10, |
52 EP_POSSIBLE_ONSET, | 52 EP_POSSIBLE_ONSET, |
53 EP_SPEECH_PRESENT, | 53 EP_SPEECH_PRESENT, |
54 EP_POSSIBLE_OFFSET, | 54 EP_POSSIBLE_OFFSET, |
55 EP_POST_SPEECH, | 55 EP_POST_SPEECH, |
56 }; | 56 }; |
57 | 57 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // End lag corresponds to the lowest fundamental frequency. | 143 // End lag corresponds to the lowest fundamental frequency. |
144 int end_lag_; | 144 int end_lag_; |
145 | 145 |
146 // Time when mode switched from environment estimation to user input. This | 146 // Time when mode switched from environment estimation to user input. This |
147 // is used to time forced rejection of audio feedback contamination. | 147 // is used to time forced rejection of audio feedback contamination. |
148 int64 user_input_start_time_us_; | 148 int64 user_input_start_time_us_; |
149 | 149 |
150 DISALLOW_COPY_AND_ASSIGN(EnergyEndpointer); | 150 DISALLOW_COPY_AND_ASSIGN(EnergyEndpointer); |
151 }; | 151 }; |
152 | 152 |
153 } // namespace speech_input | 153 } // namespace speech |
154 | 154 |
155 #endif // CONTENT_BROWSER_SPEECH_ENDPOINTER_ENERGY_ENDPOINTER_H_ | 155 #endif // CONTENT_BROWSER_SPEECH_ENDPOINTER_ENERGY_ENDPOINTER_H_ |
OLD | NEW |