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