OLD | NEW |
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 | 7 |
7 // TODO(hans): Commented out due to compilation errors. | 8 // TODO(hans): Commented out due to compilation errors. |
8 // option cc_api_version = 2; | 9 // option cc_api_version = 2; |
9 | 10 |
10 package content.proto; | 11 package content.proto; |
11 | 12 |
12 // SpeechRecognitionEvent is the only message type sent to client. | 13 // SpeechRecognitionEvent is the only message type sent to client. |
13 // | 14 // |
14 // The first SpeechRecognitionEvent is an empty (default) message to indicate | 15 // The first SpeechRecognitionEvent is an empty (default) message to indicate |
15 // as early as possible that the stream connection has been established. | 16 // as early as possible that the stream connection has been established. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 message SpeechRecognitionAlternative { | 57 message SpeechRecognitionAlternative { |
57 // Spoken text. | 58 // Spoken text. |
58 optional string transcript = 1; | 59 optional string transcript = 1; |
59 | 60 |
60 // 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 |
61 // system is more confident that the recognition is correct. | 62 // system is more confident that the recognition is correct. |
62 // 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 |
63 // final results. | 64 // final results. |
64 optional float confidence = 2; | 65 optional float confidence = 2; |
65 } | 66 } |
OLD | NEW |