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

Unified Diff: content/browser/speech/proto/google_streaming_api.proto

Issue 10384153: Adding protobuf headers that will be used by upcoming continuous speech recognition classes (Speech… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed and moved content_protobuf.gypi. Created 8 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/speech/proto/speech_proto.gypi » ('j') | content/content.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/speech/proto/google_streaming_api.proto
diff --git a/content/browser/speech/proto/google_streaming_api.proto b/content/browser/speech/proto/google_streaming_api.proto
new file mode 100644
index 0000000000000000000000000000000000000000..03d0a3a2fe64f416003bbad25e97234b8689764d
--- /dev/null
+++ b/content/browser/speech/proto/google_streaming_api.proto
@@ -0,0 +1,38 @@
+// 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.
+
+syntax = "proto2";
+option optimize_for = LITE_RUNTIME;
+
+//option cc_api_version = 2;
+//option java_api_version = 2;
hans 2012/05/16 10:42:47 should these two commented out lines be here?
Primiano Tucci (use gerrit) 2012/05/16 13:34:19 Done.
+
+package speech;
+
+// ==================================================================
+// Messages sent to client.
hans 2012/05/16 10:42:47 not sure how helpful this comment is?
Primiano Tucci (use gerrit) 2012/05/16 13:34:19 Right.
Primiano Tucci (use gerrit) 2012/05/16 13:34:19 Agree, removed.
+// ==================================================================
+
+// All responses must be an extension of this message.
hans 2012/05/16 10:42:47 hmm, but this this seems to be the only response m
Primiano Tucci (use gerrit) 2012/05/16 13:34:19 Agree. removed.
+message HttpStreamingResult {
+ optional int32 status = 1;
+ // Required. The request_id of the RecognitionRequest that
hans 2012/05/16 10:42:47 if it's required, why is it marked optional?
Primiano Tucci (use gerrit) 2012/05/16 13:34:19 Ha. To be honest either its purpose is not complet
+ // initiated the sequence associated with this response.
+ optional int32 id = 2;
+ repeated HttpStreamingHypothesis hypotheses = 3;
+
+ optional string provisional = 4;
hans 2012/05/16 10:42:47 could we try to comment this file a bit more exten
Primiano Tucci (use gerrit) 2012/05/16 13:34:19 Done.
+ optional string ephemeral = 5;
+
+ optional string upstream_url = 6;
+ optional bool upstream_connected = 7;
+}
+
+message HttpStreamingHypothesis {
+ // Hypothesis as text.
+ optional string utterance = 1;
hans 2012/05/16 10:42:47 i like a blank line between fields when they have
Primiano Tucci (use gerrit) 2012/05/16 13:34:19 Done.
+ // Field below is typically provided only for the top hypothesis.
+ // Confidence score associated with this hypothesis.
+ optional float confidence = 2;
+}
« no previous file with comments | « no previous file | content/browser/speech/proto/speech_proto.gypi » ('j') | content/content.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698