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

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: Hans nit 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.gyp » ('j') | no next file with comments »
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..fdfb8f08838d558fcfbe8d86a1973c6aec9ad655
--- /dev/null
+++ b/content/browser/speech/proto/google_streaming_api.proto
@@ -0,0 +1,47 @@
+// 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;
+
+// TODO(primiano) Commented out due to compilation errors. What's its purpose?
+//option cc_api_version = 2;
+
+package speech;
+
+// Used for receiving results from the Google continuous speech recognition
+// webservice.
+message HttpStreamingResult {
+ // Used in case of errors.
+ // TODO(primiano) Not completely sure about its semantic. Ask gshires@.
+ optional int32 status = 1;
+
+ // TODO(primiano) this seems to be not used anymore. Ask gshires@.
+ optional int32 id = 2;
+
+ // Definitive results provide an array of hypotheses.
+ repeated HttpStreamingHypothesis hypotheses = 3;
+
+ // Non definitive results, instead, provide a provisional (read: likely to be
+ // confirmed) and an ephemeral (read: likely to be changed soon) string.
+ optional string provisional = 4;
+ optional string ephemeral = 5;
+
+ // TODO(primiano) this seems to be not used anymore. Ask gshires@.
+ optional string upstream_url = 6;
+
+ // Used by the webservice to acknowledge the successfull connection of the
+ // upstream (the one pushing audio data).
+ optional bool upstream_connected = 7;
+}
+
+// Part of a definitive result. See HttpStreamingResult.hypotheses array.
+message HttpStreamingHypothesis {
+ // Textual transcript of the hypothesis.
+ optional string utterance = 1;
+
+ // Confidence score associated with the hypothesis.
+ optional float confidence = 2;
+}
+
« no previous file with comments | « no previous file | content/browser/speech/proto/speech_proto.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698