diff options
author | primiano@chromium.org <primiano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-15 15:45:22 +0000 |
---|---|---|
committer | primiano@chromium.org <primiano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-15 15:45:22 +0000 |
commit | 7869c0d85c0588b9626ddc680512a0b398d5f10f (patch) | |
tree | d213ca113ea4cd45dc1483901b8177071b3f478c /content/browser/speech/speech_recognition_engine.cc | |
parent | 93079e0c4d33bcbfa3e2c214aa3069827b1439be (diff) | |
download | chromium_src-7869c0d85c0588b9626ddc680512a0b398d5f10f.zip chromium_src-7869c0d85c0588b9626ddc680512a0b398d5f10f.tar.gz chromium_src-7869c0d85c0588b9626ddc680512a0b398d5f10f.tar.bz2 |
Introducing new data types and IPC messages for scripted JS speech recognition APIs (Speech CL2.0)
Furthermore GoogleOneShotRemoteEngineConfig struct has been renamed and moved into the (more generic) SpeechRecognitionEngineConfig, that will be shared with the streaming recognition engine implementation.
BUG=116954
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10233010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137141 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/speech/speech_recognition_engine.cc')
-rw-r--r-- | content/browser/speech/speech_recognition_engine.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/content/browser/speech/speech_recognition_engine.cc b/content/browser/speech/speech_recognition_engine.cc new file mode 100644 index 0000000..22b8c11 --- /dev/null +++ b/content/browser/speech/speech_recognition_engine.cc @@ -0,0 +1,23 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "content/browser/speech/speech_recognition_engine.h" + +namespace { +const int kDefaultConfigSampleRate = 8000; +const int kDefaultConfigBitsPerSample = 16; +} // namespace + +namespace speech { + +SpeechRecognitionEngine::Config::Config() + : filter_profanities(false), + audio_sample_rate(kDefaultConfigSampleRate), + audio_num_bits_per_sample(kDefaultConfigBitsPerSample) { +} + +SpeechRecognitionEngine::Config::~Config() { +} + +} // namespace speech |