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 option optimize_for = LITE_RUNTIME; |
7 | 7 |
8 // TODO(hans): Commented out due to compilation errors. | 8 // TODO(hans): Commented out due to compilation errors. |
9 // option cc_api_version = 2; | 9 // option cc_api_version = 2; |
10 | 10 |
11 package speech.proto; | 11 package content.proto; |
jam
2012/10/29 03:05:21
i'm not familiar with proto files, so i don't know
hans
2012/10/29 11:29:29
This looks fine. This has the effect of moving the
| |
12 | 12 |
13 // SpeechRecognitionEvent is the only message type sent to client. | 13 // SpeechRecognitionEvent is the only message type sent to client. |
14 // | 14 // |
15 // The first SpeechRecognitionEvent is an empty (default) message to indicate | 15 // The first SpeechRecognitionEvent is an empty (default) message to indicate |
16 // as early as possible that the stream connection has been established. | 16 // as early as possible that the stream connection has been established. |
17 message SpeechRecognitionEvent { | 17 message SpeechRecognitionEvent { |
18 enum StatusCode { | 18 enum StatusCode { |
19 // Note: in JavaScript API SpeechRecognitionError 0 is "OTHER" error. | 19 // Note: in JavaScript API SpeechRecognitionError 0 is "OTHER" error. |
20 STATUS_SUCCESS = 0; | 20 STATUS_SUCCESS = 0; |
21 STATUS_NO_SPEECH = 1; | 21 STATUS_NO_SPEECH = 1; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
57 message SpeechRecognitionAlternative { | 57 message SpeechRecognitionAlternative { |
58 // Spoken text. | 58 // Spoken text. |
59 optional string transcript = 1; | 59 optional string transcript = 1; |
60 | 60 |
61 // 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 |
62 // system is more confident that the recognition is correct. | 62 // system is more confident that the recognition is correct. |
63 // 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 |
64 // final results. | 64 // final results. |
65 optional float confidence = 2; | 65 optional float confidence = 2; |
66 } | 66 } |
OLD | NEW |