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_SPEECH_RECOGNITION_ENGINE_H_ | 5 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ |
6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ | 6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 }; | 49 }; |
50 | 50 |
51 // Remote engine configuration. | 51 // Remote engine configuration. |
52 struct CONTENT_EXPORT Config { | 52 struct CONTENT_EXPORT Config { |
53 Config(); | 53 Config(); |
54 ~Config(); | 54 ~Config(); |
55 | 55 |
56 std::string language; | 56 std::string language; |
57 content::SpeechRecognitionGrammarArray grammars; | 57 content::SpeechRecognitionGrammarArray grammars; |
58 bool filter_profanities; | 58 bool filter_profanities; |
| 59 uint32 max_hypotheses; |
59 std::string hardware_info; | 60 std::string hardware_info; |
60 std::string origin_url; | 61 std::string origin_url; |
61 int audio_sample_rate; | 62 int audio_sample_rate; |
62 int audio_num_bits_per_sample; | 63 int audio_num_bits_per_sample; |
63 }; | 64 }; |
64 | 65 |
65 virtual ~SpeechRecognitionEngine() {} | 66 virtual ~SpeechRecognitionEngine() {} |
66 | 67 |
67 // Set/change the recognition engine configuration. It is not allowed to call | 68 // Set/change the recognition engine configuration. It is not allowed to call |
68 // this function while a recognition is ongoing. | 69 // this function while a recognition is ongoing. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 105 |
105 // These typedefs are to workaround the issue with certain versions of | 106 // These typedefs are to workaround the issue with certain versions of |
106 // Visual Studio where it gets confused between multiple Delegate | 107 // Visual Studio where it gets confused between multiple Delegate |
107 // classes and gives a C2500 error. | 108 // classes and gives a C2500 error. |
108 typedef SpeechRecognitionEngine::Delegate SpeechRecognitionEngineDelegate; | 109 typedef SpeechRecognitionEngine::Delegate SpeechRecognitionEngineDelegate; |
109 typedef SpeechRecognitionEngine::Config SpeechRecognitionEngineConfig; | 110 typedef SpeechRecognitionEngine::Config SpeechRecognitionEngineConfig; |
110 | 111 |
111 } // namespace speech | 112 } // namespace speech |
112 | 113 |
113 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ | 114 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ |
OLD | NEW |