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 #include "content/browser/speech/speech_recognition_engine.h" | 5 #include "content/browser/speech/speech_recognition_engine.h" |
6 | 6 |
7 namespace { | 7 namespace { |
8 const int kDefaultConfigSampleRate = 8000; | 8 const int kDefaultConfigSampleRate = 8000; |
9 const int kDefaultConfigBitsPerSample = 16; | 9 const int kDefaultConfigBitsPerSample = 16; |
| 10 const uint32 kDefaultMaxHypotheses = 1; |
10 } // namespace | 11 } // namespace |
11 | 12 |
12 namespace speech { | 13 namespace speech { |
13 | 14 |
14 SpeechRecognitionEngine::Config::Config() | 15 SpeechRecognitionEngine::Config::Config() |
15 : filter_profanities(false), | 16 : filter_profanities(false), |
| 17 max_hypotheses(kDefaultMaxHypotheses), |
16 audio_sample_rate(kDefaultConfigSampleRate), | 18 audio_sample_rate(kDefaultConfigSampleRate), |
17 audio_num_bits_per_sample(kDefaultConfigBitsPerSample) { | 19 audio_num_bits_per_sample(kDefaultConfigBitsPerSample) { |
18 } | 20 } |
19 | 21 |
20 SpeechRecognitionEngine::Config::~Config() { | 22 SpeechRecognitionEngine::Config::~Config() { |
21 } | 23 } |
22 | 24 |
23 } // namespace speech | 25 } // namespace speech |
OLD | NEW |