Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(505)

Side by Side Diff: content/browser/speech/proto/google_streaming_api.proto

Issue 11347004: content/browser: Move speech code into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 syntax = "proto2"; 5 syntax = "proto2";
6 option optimize_for = LITE_RUNTIME; 6 option optimize_for = LITE_RUNTIME;
7 7
8 // TODO(hans): Commented out due to compilation errors. 8 // TODO(hans): Commented out due to compilation errors.
9 // option cc_api_version = 2; 9 // option cc_api_version = 2;
10 10
11 package speech.proto; 11 package content.proto;
jam 2012/10/29 03:05:21 i'm not familiar with proto files, so i don't know
hans 2012/10/29 11:29:29 This looks fine. This has the effect of moving the
12 12
13 // SpeechRecognitionEvent is the only message type sent to client. 13 // SpeechRecognitionEvent is the only message type sent to client.
14 // 14 //
15 // The first SpeechRecognitionEvent is an empty (default) message to indicate 15 // The first SpeechRecognitionEvent is an empty (default) message to indicate
16 // as early as possible that the stream connection has been established. 16 // as early as possible that the stream connection has been established.
17 message SpeechRecognitionEvent { 17 message SpeechRecognitionEvent {
18 enum StatusCode { 18 enum StatusCode {
19 // Note: in JavaScript API SpeechRecognitionError 0 is "OTHER" error. 19 // Note: in JavaScript API SpeechRecognitionError 0 is "OTHER" error.
20 STATUS_SUCCESS = 0; 20 STATUS_SUCCESS = 0;
21 STATUS_NO_SPEECH = 1; 21 STATUS_NO_SPEECH = 1;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 message SpeechRecognitionAlternative { 57 message SpeechRecognitionAlternative {
58 // Spoken text. 58 // Spoken text.
59 optional string transcript = 1; 59 optional string transcript = 1;
60 60
61 // The confidence estimate between 0.0 and 1.0. A higher number means the 61 // The confidence estimate between 0.0 and 1.0. A higher number means the
62 // system is more confident that the recognition is correct. 62 // system is more confident that the recognition is correct.
63 // This field is typically provided only for the top hypothesis and only for 63 // This field is typically provided only for the top hypothesis and only for
64 // final results. 64 // final results.
65 optional float confidence = 2; 65 optional float confidence = 2;
66 } 66 }
OLDNEW
« no previous file with comments | « content/browser/speech/input_tag_speech_dispatcher_host.cc ('k') | content/browser/speech/speech_recognition_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698