| OLD | NEW |
| 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_SPEECH_ENDPOINTER_ENDPOINTER_H_ | 5 #ifndef CONTENT_BROWSER_SPEECH_ENDPOINTER_ENDPOINTER_H_ |
| 6 #define CONTENT_BROWSER_SPEECH_ENDPOINTER_ENDPOINTER_H_ | 6 #define CONTENT_BROWSER_SPEECH_ENDPOINTER_ENDPOINTER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "content/browser/speech/endpointer/energy_endpointer.h" | 9 #include "content/browser/speech/endpointer/energy_endpointer.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 | 11 |
| 12 class EpStatus; | 12 class EpStatus; |
| 13 | 13 |
| 14 namespace speech { | 14 namespace content { |
| 15 | 15 |
| 16 class AudioChunk; | 16 class AudioChunk; |
| 17 | 17 |
| 18 // A simple interface to the underlying energy-endpointer implementation, this | 18 // A simple interface to the underlying energy-endpointer implementation, this |
| 19 // class lets callers provide audio as being recorded and let them poll to find | 19 // class lets callers provide audio as being recorded and let them poll to find |
| 20 // when the user has stopped speaking. | 20 // when the user has stopped speaking. |
| 21 // | 21 // |
| 22 // There are two events that may trigger the end of speech: | 22 // There are two events that may trigger the end of speech: |
| 23 // | 23 // |
| 24 // speechInputPossiblyComplete event: | 24 // speechInputPossiblyComplete event: |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 EpStatus old_ep_status_; | 141 EpStatus old_ep_status_; |
| 142 bool waiting_for_speech_possibly_complete_timeout_; | 142 bool waiting_for_speech_possibly_complete_timeout_; |
| 143 bool waiting_for_speech_complete_timeout_; | 143 bool waiting_for_speech_complete_timeout_; |
| 144 bool speech_previously_detected_; | 144 bool speech_previously_detected_; |
| 145 bool speech_input_complete_; | 145 bool speech_input_complete_; |
| 146 EnergyEndpointer energy_endpointer_; | 146 EnergyEndpointer energy_endpointer_; |
| 147 int sample_rate_; | 147 int sample_rate_; |
| 148 int32 frame_size_; | 148 int32 frame_size_; |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 } // namespace speech | 151 } // namespace content |
| 152 | 152 |
| 153 #endif // CONTENT_BROWSER_SPEECH_ENDPOINTER_ENDPOINTER_H_ | 153 #endif // CONTENT_BROWSER_SPEECH_ENDPOINTER_ENDPOINTER_H_ |
| OLD | NEW |