Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 syntax = "proto2"; | |
| 6 option optimize_for = LITE_RUNTIME; | |
| 7 | |
| 8 // TODO(primiano) Commented out due to compilation errors. What's its purpose? | |
| 9 //option cc_api_version = 2; | |
| 10 | |
| 11 package speech; | |
| 12 | |
| 13 // Used for receiving results from the Google continuous speech recognition | |
| 14 // webservice. | |
| 15 message HttpStreamingResult { | |
| 16 // Used in case of errors. | |
| 17 // TODO(primiano) Not completely sure about its semantic. Ask gshires@. | |
| 18 optional int32 status = 1; | |
| 19 | |
| 20 // TODO(primiano) this seems to be not used anymore. Ask gshires@. | |
| 21 optional int32 id = 2; | |
| 22 | |
| 23 // Definitive results provide an array of hypotheses. | |
| 24 repeated HttpStreamingHypothesis hypotheses = 3; | |
| 25 | |
| 26 // Non definitive results, instead, provide a provisional (read: likely to be | |
| 27 // confirmed) and an ephemeral (read: likely to be changed soon) string. | |
| 28 optional string provisional = 4; | |
| 29 optional string ephemeral = 5; | |
| 30 | |
| 31 // TODO(primiano) this seems to be not used anymore. Ask gshires@. | |
| 32 optional string upstream_url = 6; | |
| 33 | |
| 34 // Used by the webservice to acknowledge the successfull connection of the | |
| 35 // upstream (the one pushing audio data). | |
| 36 optional bool upstream_connected = 7; | |
| 37 } | |
| 38 | |
| 39 // Used for receiving and hypothesis for a definitive result. | |
|
hans
2012/05/16 13:49:13
"used for receiving and" sounds weird
| |
| 40 message HttpStreamingHypothesis { | |
| 41 // Textual transcript of the hypothesis. | |
| 42 optional string utterance = 1; | |
| 43 | |
| 44 // Confidence score associated with the hypothesis. | |
| 45 optional float confidence = 2; | |
| 46 } | |
| 47 | |
| OLD | NEW |