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

Side by Side Diff: discovery/googleapis_beta/speech__v1beta1.json

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": { 5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services" 6 "description": "View and manage your data across Google Clou d Platform services"
7 } 7 }
8 } 8 }
9 } 9 }
10 }, 10 },
11 "basePath": "", 11 "basePath": "",
12 "baseUrl": "https://speech.googleapis.com/", 12 "baseUrl": "https://speech.googleapis.com/",
13 "batchPath": "batch", 13 "batchPath": "batch",
14 "description": "Google Cloud Speech API.", 14 "description": "Google Cloud Speech API.",
15 "discoveryVersion": "v1", 15 "discoveryVersion": "v1",
16 "documentationLink": "https://cloud.google.com/speech/", 16 "documentationLink": "https://cloud.google.com/speech/",
17 "icons": { 17 "icons": {
18 "x16": "http://www.google.com/images/icons/product/search-16.gif", 18 "x16": "http://www.google.com/images/icons/product/search-16.gif",
19 "x32": "http://www.google.com/images/icons/product/search-32.gif" 19 "x32": "http://www.google.com/images/icons/product/search-32.gif"
20 }, 20 },
21 "id": "speech:v1beta1", 21 "id": "speech:v1beta1",
22 "kind": "discovery#restDescription", 22 "kind": "discovery#restDescription",
23 "name": "speech", 23 "name": "speech",
24 "ownerDomain": "google.com", 24 "ownerDomain": "google.com",
25 "ownerName": "Google", 25 "ownerName": "Google",
26 "parameters": { 26 "parameters": {
27 "access_token": { 27 "upload_protocol": {
28 "description": "OAuth access token.", 28 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
29 "location": "query", 29 "location": "query",
30 "type": "string" 30 "type": "string"
31 }, 31 },
32 "prettyPrint": { 32 "prettyPrint": {
33 "default": "true", 33 "default": "true",
34 "description": "Returns response with indentations and line breaks." , 34 "description": "Returns response with indentations and line breaks." ,
35 "location": "query", 35 "location": "query",
36 "type": "boolean" 36 "type": "boolean"
37 }, 37 },
38 "key": { 38 "uploadType": {
39 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.", 39 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
40 "location": "query", 40 "location": "query",
41 "type": "string" 41 "type": "string"
42 }, 42 },
43 "quotaUser": {
44 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.",
45 "location": "query",
46 "type": "string"
47 },
48 "pp": {
49 "default": "true",
50 "description": "Pretty-print response.",
51 "location": "query",
52 "type": "boolean"
53 },
54 "fields": { 43 "fields": {
55 "description": "Selector specifying which fields to include in a par tial response.", 44 "description": "Selector specifying which fields to include in a par tial response.",
56 "location": "query", 45 "location": "query",
57 "type": "string" 46 "type": "string"
58 }, 47 },
48 "$.xgafv": {
49 "description": "V1 error format.",
50 "enum": [
51 "1",
52 "2"
53 ],
54 "enumDescriptions": [
55 "v1 error format",
56 "v2 error format"
57 ],
58 "location": "query",
59 "type": "string"
60 },
61 "callback": {
62 "description": "JSONP",
63 "location": "query",
64 "type": "string"
65 },
59 "alt": { 66 "alt": {
60 "default": "json", 67 "default": "json",
61 "description": "Data format for response.", 68 "description": "Data format for response.",
62 "enum": [ 69 "enum": [
63 "json", 70 "json",
64 "media", 71 "media",
65 "proto" 72 "proto"
66 ], 73 ],
67 "enumDescriptions": [ 74 "enumDescriptions": [
68 "Responses with Content-Type of application/json", 75 "Responses with Content-Type of application/json",
69 "Media download with context-dependent Content-Type", 76 "Media download with context-dependent Content-Type",
70 "Responses with Content-Type of application/x-protobuf" 77 "Responses with Content-Type of application/x-protobuf"
71 ], 78 ],
72 "location": "query", 79 "location": "query",
73 "type": "string" 80 "type": "string"
74 }, 81 },
75 "$.xgafv": { 82 "access_token": {
76 "description": "V1 error format.", 83 "description": "OAuth access token.",
77 "enum": [
78 "1",
79 "2"
80 ],
81 "enumDescriptions": [
82 "v1 error format",
83 "v2 error format"
84 ],
85 "location": "query", 84 "location": "query",
86 "type": "string" 85 "type": "string"
87 }, 86 },
88 "callback": { 87 "key": {
89 "description": "JSONP", 88 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
90 "location": "query", 89 "location": "query",
91 "type": "string" 90 "type": "string"
92 }, 91 },
93 "oauth_token": { 92 "quotaUser": {
94 "description": "OAuth 2.0 token for the current user.", 93 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.",
95 "location": "query", 94 "location": "query",
96 "type": "string" 95 "type": "string"
97 }, 96 },
98 "uploadType": { 97 "pp": {
99 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").", 98 "default": "true",
99 "description": "Pretty-print response.",
100 "location": "query",
101 "type": "boolean"
102 },
103 "oauth_token": {
104 "description": "OAuth 2.0 token for the current user.",
100 "location": "query", 105 "location": "query",
101 "type": "string" 106 "type": "string"
102 }, 107 },
103 "bearer_token": { 108 "bearer_token": {
104 "description": "OAuth bearer token.", 109 "description": "OAuth bearer token.",
105 "location": "query", 110 "location": "query",
106 "type": "string" 111 "type": "string"
107 },
108 "upload_protocol": {
109 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
110 "location": "query",
111 "type": "string"
112 } 112 }
113 }, 113 },
114 "protocol": "rest", 114 "protocol": "rest",
115 "resources": { 115 "resources": {
116 "operations": { 116 "speech": {
117 "methods": { 117 "methods": {
118 "get": { 118 "asyncrecognize": {
119 "description": "Gets the latest state of a long-running oper ation. Clients can use this\nmethod to poll the operation result at intervals a s recommended by the API\nservice.", 119 "description": "Performs asynchronous speech recognition: re ceive results via the\n[google.longrunning.Operations]\n(/speech/reference/rest/ v1beta1/operations#Operation)\ninterface. Returns either an\n`Operation.error` o r an `Operation.response` which contains\nan `AsyncRecognizeResponse` message.",
120 "httpMethod": "GET", 120 "httpMethod": "POST",
121 "id": "speech.operations.get", 121 "id": "speech.speech.asyncrecognize",
122 "parameterOrder": [ 122 "parameterOrder": [],
123 "name" 123 "parameters": {},
124 ], 124 "path": "v1beta1/speech:asyncrecognize",
125 "parameters": { 125 "request": {
126 "name": { 126 "$ref": "AsyncRecognizeRequest"
127 "description": "The name of the operation resource." ,
128 "location": "path",
129 "pattern": "^[^/]+$",
130 "required": true,
131 "type": "string"
132 }
133 }, 127 },
134 "path": "v1beta1/operations/{+name}",
135 "response": { 128 "response": {
136 "$ref": "Operation" 129 "$ref": "Operation"
137 }, 130 },
138 "scopes": [ 131 "scopes": [
139 "https://www.googleapis.com/auth/cloud-platform" 132 "https://www.googleapis.com/auth/cloud-platform"
140 ] 133 ]
141 }, 134 },
135 "syncrecognize": {
136 "description": "Performs synchronous speech recognition: rec eive results after all audio\nhas been sent and processed.",
137 "httpMethod": "POST",
138 "id": "speech.speech.syncrecognize",
139 "parameterOrder": [],
140 "parameters": {},
141 "path": "v1beta1/speech:syncrecognize",
142 "request": {
143 "$ref": "SyncRecognizeRequest"
144 },
145 "response": {
146 "$ref": "SyncRecognizeResponse"
147 },
148 "scopes": [
149 "https://www.googleapis.com/auth/cloud-platform"
150 ]
151 }
152 }
153 },
154 "operations": {
155 "methods": {
142 "list": { 156 "list": {
143 "description": "Lists operations that match the specified fi lter in the request. If the\nserver doesn't support this method, it returns `UNI MPLEMENTED`.\n\nNOTE: the `name` binding below allows API services to override t he binding\nto use different resource name schemes, such as `users/*/operations` .", 157 "description": "Lists operations that match the specified fi lter in the request. If the\nserver doesn't support this method, it returns `UNI MPLEMENTED`.\n\nNOTE: the `name` binding below allows API services to override t he binding\nto use different resource name schemes, such as `users/*/operations` .",
144 "httpMethod": "GET", 158 "httpMethod": "GET",
145 "id": "speech.operations.list", 159 "id": "speech.operations.list",
146 "parameterOrder": [], 160 "parameterOrder": [],
147 "parameters": { 161 "parameters": {
162 "name": {
163 "description": "The name of the operation collection .",
164 "location": "query",
165 "type": "string"
166 },
167 "pageToken": {
168 "description": "The standard list page token.",
169 "location": "query",
170 "type": "string"
171 },
148 "pageSize": { 172 "pageSize": {
149 "description": "The standard list page size.", 173 "description": "The standard list page size.",
150 "format": "int32", 174 "format": "int32",
151 "location": "query", 175 "location": "query",
152 "type": "integer" 176 "type": "integer"
153 }, 177 },
154 "filter": { 178 "filter": {
155 "description": "The standard list filter.", 179 "description": "The standard list filter.",
156 "location": "query", 180 "location": "query",
157 "type": "string" 181 "type": "string"
158 },
159 "name": {
160 "description": "The name of the operation collection .",
161 "location": "query",
162 "type": "string"
163 },
164 "pageToken": {
165 "description": "The standard list page token.",
166 "location": "query",
167 "type": "string"
168 } 182 }
169 }, 183 },
170 "path": "v1beta1/operations", 184 "path": "v1beta1/operations",
171 "response": { 185 "response": {
172 "$ref": "ListOperationsResponse" 186 "$ref": "ListOperationsResponse"
173 }, 187 },
174 "scopes": [ 188 "scopes": [
175 "https://www.googleapis.com/auth/cloud-platform" 189 "https://www.googleapis.com/auth/cloud-platform"
176 ] 190 ]
177 }, 191 },
178 "delete": { 192 "get": {
179 "description": "Deletes a long-running operation. This metho d indicates that the client is\nno longer interested in the operation result. It does not cancel the\noperation. If the server doesn't support this method, it r eturns\n`google.rpc.Code.UNIMPLEMENTED`.", 193 "description": "Gets the latest state of a long-running oper ation. Clients can use this\nmethod to poll the operation result at intervals a s recommended by the API\nservice.",
180 "httpMethod": "DELETE", 194 "httpMethod": "GET",
181 "id": "speech.operations.delete", 195 "id": "speech.operations.get",
182 "parameterOrder": [ 196 "parameterOrder": [
183 "name" 197 "name"
184 ], 198 ],
185 "parameters": { 199 "parameters": {
186 "name": { 200 "name": {
187 "description": "The name of the operation resource t o be deleted.", 201 "description": "The name of the operation resource." ,
188 "location": "path", 202 "location": "path",
189 "pattern": "^[^/]+$", 203 "pattern": "^[^/]+$",
190 "required": true, 204 "required": true,
191 "type": "string" 205 "type": "string"
192 } 206 }
193 }, 207 },
194 "path": "v1beta1/operations/{+name}", 208 "path": "v1beta1/operations/{+name}",
195 "response": { 209 "response": {
196 "$ref": "Empty" 210 "$ref": "Operation"
197 }, 211 },
198 "scopes": [ 212 "scopes": [
199 "https://www.googleapis.com/auth/cloud-platform" 213 "https://www.googleapis.com/auth/cloud-platform"
200 ] 214 ]
201 }, 215 },
202 "cancel": { 216 "cancel": {
203 "description": "Starts asynchronous cancellation on a long-r unning operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it retur ns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation o r\nother methods to check whether the cancellation succeeded or whether the\nope ration completed despite cancellation. On successful cancellation,\nthe operatio n is not deleted; instead, it becomes an operation with\nan Operation.error valu e with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.", 217 "description": "Starts asynchronous cancellation on a long-r unning operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it retur ns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation o r\nother methods to check whether the cancellation succeeded or whether the\nope ration completed despite cancellation. On successful cancellation,\nthe operatio n is not deleted; instead, it becomes an operation with\nan Operation.error valu e with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.",
204 "httpMethod": "POST", 218 "httpMethod": "POST",
205 "id": "speech.operations.cancel", 219 "id": "speech.operations.cancel",
206 "parameterOrder": [ 220 "parameterOrder": [
207 "name" 221 "name"
208 ], 222 ],
209 "parameters": { 223 "parameters": {
210 "name": { 224 "name": {
211 "description": "The name of the operation resource t o be cancelled.", 225 "description": "The name of the operation resource t o be cancelled.",
212 "location": "path", 226 "location": "path",
213 "pattern": "^[^/]+$", 227 "pattern": "^[^/]+$",
214 "required": true, 228 "required": true,
215 "type": "string" 229 "type": "string"
216 } 230 }
217 }, 231 },
218 "path": "v1beta1/operations/{+name}:cancel", 232 "path": "v1beta1/operations/{+name}:cancel",
219 "request": {
220 "$ref": "CancelOperationRequest"
221 },
222 "response": { 233 "response": {
223 "$ref": "Empty" 234 "$ref": "Empty"
224 }, 235 },
225 "scopes": [ 236 "scopes": [
226 "https://www.googleapis.com/auth/cloud-platform" 237 "https://www.googleapis.com/auth/cloud-platform"
227 ] 238 ]
228 } 239 },
229 } 240 "delete": {
230 }, 241 "description": "Deletes a long-running operation. This metho d indicates that the client is\nno longer interested in the operation result. It does not cancel the\noperation. If the server doesn't support this method, it r eturns\n`google.rpc.Code.UNIMPLEMENTED`.",
231 "speech": { 242 "httpMethod": "DELETE",
232 "methods": { 243 "id": "speech.operations.delete",
233 "syncrecognize": { 244 "parameterOrder": [
234 "description": "Performs synchronous speech recognition: rec eive results after all audio\nhas been sent and processed.", 245 "name"
235 "httpMethod": "POST", 246 ],
236 "id": "speech.speech.syncrecognize", 247 "parameters": {
237 "parameterOrder": [], 248 "name": {
238 "parameters": {}, 249 "description": "The name of the operation resource t o be deleted.",
239 "path": "v1beta1/speech:syncrecognize", 250 "location": "path",
240 "request": { 251 "pattern": "^[^/]+$",
241 "$ref": "SyncRecognizeRequest" 252 "required": true,
253 "type": "string"
254 }
242 }, 255 },
256 "path": "v1beta1/operations/{+name}",
243 "response": { 257 "response": {
244 "$ref": "SyncRecognizeResponse" 258 "$ref": "Empty"
245 }, 259 },
246 "scopes": [ 260 "scopes": [
247 "https://www.googleapis.com/auth/cloud-platform" 261 "https://www.googleapis.com/auth/cloud-platform"
248 ]
249 },
250 "asyncrecognize": {
251 "description": "Performs asynchronous speech recognition: re ceive results via the\n[google.longrunning.Operations]\n(/speech/reference/rest/ v1beta1/operations#Operation)\ninterface. Returns either an\n`Operation.error` o r an `Operation.response` which contains\nan `AsyncRecognizeResponse` message.",
252 "httpMethod": "POST",
253 "id": "speech.speech.asyncrecognize",
254 "parameterOrder": [],
255 "parameters": {},
256 "path": "v1beta1/speech:asyncrecognize",
257 "request": {
258 "$ref": "AsyncRecognizeRequest"
259 },
260 "response": {
261 "$ref": "Operation"
262 },
263 "scopes": [
264 "https://www.googleapis.com/auth/cloud-platform"
265 ] 262 ]
266 } 263 }
267 } 264 }
268 } 265 }
269 }, 266 },
270 "revision": "20170118", 267 "revision": "20170209",
271 "rootUrl": "https://speech.googleapis.com/", 268 "rootUrl": "https://speech.googleapis.com/",
272 "schemas": { 269 "schemas": {
273 "Status": { 270 "Status": {
274 "description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RP C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie ces of data: error code, error message,\nand error details. The error code shoul d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message tha t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa cing\nerror message is needed, put the localized message in the error details or \nlocalize it in the client. The optional error details may contain arbitrary\ni nformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` which can be used for common error conditions.\n\n# Lan guage mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` mes sage is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some except ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\ n\nThe error model and the `Status` message can be used in a variety of\nenviron ments, either with or without APIs, to provide a\nconsistent developer experienc e across different environments.\n\nExample uses of this error model include:\n\ n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting purpose.\n\n- Batch operati ons. If a client uses batch request and batch response, the\n `Status` messag e should be used directly inside batch response, one for\n each error sub-res ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio n\n results in its response, the status of those operations should be\n re presented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any s tripping needed for security/privacy reasons.", 271 "description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RP C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie ces of data: error code, error message,\nand error details. The error code shoul d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message tha t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa cing\nerror message is needed, put the localized message in the error details or \nlocalize it in the client. The optional error details may contain arbitrary\ni nformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` which can be used for common error conditions.\n\n# Lan guage mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` mes sage is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some except ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\ n\nThe error model and the `Status` message can be used in a variety of\nenviron ments, either with or without APIs, to provide a\nconsistent developer experienc e across different environments.\n\nExample uses of this error model include:\n\ n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting purpose.\n\n- Batch operati ons. If a client uses batch request and batch response, the\n `Status` messag e should be used directly inside batch response, one for\n each error sub-res ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio n\n results in its response, the status of those operations should be\n re presented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any s tripping needed for security/privacy reasons.",
275 "id": "Status", 272 "id": "Status",
276 "properties": { 273 "properties": {
277 "code": { 274 "code": {
278 "description": "The status code, which should be an enum val ue of google.rpc.Code.", 275 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
279 "format": "int32", 276 "format": "int32",
280 "type": "integer" 277 "type": "integer"
281 }, 278 },
279 "message": {
280 "description": "A developer-facing error message, which shou ld be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
281 "type": "string"
282 },
282 "details": { 283 "details": {
283 "description": "A list of messages that carry the error deta ils. There will be a\ncommon set of message types for APIs to use.", 284 "description": "A list of messages that carry the error deta ils. There will be a\ncommon set of message types for APIs to use.",
284 "items": { 285 "items": {
285 "additionalProperties": { 286 "additionalProperties": {
286 "description": "Properties of the object. Contains f ield @type with type URL.", 287 "description": "Properties of the object. Contains f ield @type with type URL.",
287 "type": "any" 288 "type": "any"
288 }, 289 },
289 "type": "object" 290 "type": "object"
290 }, 291 },
291 "type": "array" 292 "type": "array"
293 }
294 },
295 "type": "object"
296 },
297 "SyncRecognizeResponse": {
298 "description": "The only message returned to the client by `SyncReco gnize`. method. It\ncontains the result as zero or more sequential `SpeechRecogn itionResult`\nmessages.",
299 "id": "SyncRecognizeResponse",
300 "properties": {
301 "results": {
302 "description": "*Output-only* Sequential list of transcripti on results corresponding to\nsequential portions of audio.",
303 "items": {
304 "$ref": "SpeechRecognitionResult"
305 },
306 "type": "array"
307 }
308 },
309 "type": "object"
310 },
311 "Empty": {
312 "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use i t as the request\nor the response type of an API method. For instance:\n\n se rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty );\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
313 "id": "Empty",
314 "properties": {},
315 "type": "object"
316 },
317 "SpeechRecognitionAlternative": {
318 "description": "Alternative hypotheses (a.k.a. n-best list).",
319 "id": "SpeechRecognitionAlternative",
320 "properties": {
321 "confidence": {
322 "description": "*Output-only* The confidence estimate betwee n 0.0 and 1.0. A higher number\nindicates an estimated greater likelihood that t he recognized words are\ncorrect. This field is typically provided only for the top hypothesis, and\nonly for `is_final=true` results. Clients should not rely o n the\n`confidence` field as it is not guaranteed to be accurate, or even set, i n\nany of the results.\nThe default of 0.0 is a sentinel value indicating `confi dence` was not set.",
323 "format": "float",
324 "type": "number"
292 }, 325 },
293 "message": { 326 "transcript": {
294 "description": "A developer-facing error message, which shou ld be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.", 327 "description": "*Output-only* Transcript text representing t he words that the user spoke.",
295 "type": "string" 328 "type": "string"
296 } 329 }
297 }, 330 },
298 "type": "object" 331 "type": "object"
332 },
333 "SpeechContext": {
334 "description": "Provides \"hints\" to the speech recognizer to favor specific words and phrases\nin the results.",
335 "id": "SpeechContext",
336 "properties": {
337 "phrases": {
338 "description": "*Optional* A list of strings containing word s and phrases \"hints\" so that\nthe speech recognition is more likely to recogn ize them. This can be used\nto improve the accuracy for specific words and phras es, for example, if\nspecific commands are typically spoken by the user. This ca n also be used\nto add additional words to the vocabulary of the recognizer. See \n[usage limits](https://cloud.google.com/speech/limits#content).",
339 "items": {
340 "type": "string"
341 },
342 "type": "array"
343 }
344 },
345 "type": "object"
346 },
347 "ListOperationsResponse": {
348 "description": "The response message for Operations.ListOperations." ,
349 "id": "ListOperationsResponse",
350 "properties": {
351 "nextPageToken": {
352 "description": "The standard List next-page token.",
353 "type": "string"
354 },
355 "operations": {
356 "description": "A list of operations that matches the specif ied filter in the request.",
357 "items": {
358 "$ref": "Operation"
359 },
360 "type": "array"
361 }
362 },
363 "type": "object"
364 },
365 "SpeechRecognitionResult": {
366 "description": "A speech recognition result corresponding to a porti on of the audio.",
367 "id": "SpeechRecognitionResult",
368 "properties": {
369 "alternatives": {
370 "description": "*Output-only* May contain one or more recogn ition hypotheses (up to the\nmaximum specified in `max_alternatives`).",
371 "items": {
372 "$ref": "SpeechRecognitionAlternative"
373 },
374 "type": "array"
375 }
376 },
377 "type": "object"
299 }, 378 },
300 "RecognitionAudio": { 379 "RecognitionAudio": {
301 "description": "Contains audio data in the encoding specified in the `RecognitionConfig`.\nEither `content` or `uri` must be supplied. Supplying bot h or neither\nreturns google.rpc.Code.INVALID_ARGUMENT. See\n[audio limits](http s://cloud.google.com/speech/limits#content).", 380 "description": "Contains audio data in the encoding specified in the `RecognitionConfig`.\nEither `content` or `uri` must be supplied. Supplying bot h or neither\nreturns google.rpc.Code.INVALID_ARGUMENT. See\n[audio limits](http s://cloud.google.com/speech/limits#content).",
302 "id": "RecognitionAudio", 381 "id": "RecognitionAudio",
303 "properties": { 382 "properties": {
304 "content": { 383 "content": {
305 "description": "The audio data bytes encoded as specified in \n`RecognitionConfig`. Note: as with all bytes fields, protobuffers use a\npure binary representation, whereas JSON representations use base64.", 384 "description": "The audio data bytes encoded as specified in \n`RecognitionConfig`. Note: as with all bytes fields, protobuffers use a\npure binary representation, whereas JSON representations use base64.",
306 "format": "byte", 385 "format": "byte",
307 "type": "string" 386 "type": "string"
308 }, 387 },
309 "uri": { 388 "uri": {
310 "description": "URI that points to a file that contains audi o data bytes as specified in\n`RecognitionConfig`. Currently, only Google Cloud Storage URIs are\nsupported, which must be specified in the following format:\n` gs://bucket_name/object_name` (other URI formats return\ngoogle.rpc.Code.INVALID _ARGUMENT). For more information, see\n[Request URIs](https://cloud.google.com/s torage/docs/reference-uris).", 389 "description": "URI that points to a file that contains audi o data bytes as specified in\n`RecognitionConfig`. Currently, only Google Cloud Storage URIs are\nsupported, which must be specified in the following format:\n` gs://bucket_name/object_name` (other URI formats return\ngoogle.rpc.Code.INVALID _ARGUMENT). For more information, see\n[Request URIs](https://cloud.google.com/s torage/docs/reference-uris).",
311 "type": "string" 390 "type": "string"
312 } 391 }
313 }, 392 },
314 "type": "object" 393 "type": "object"
315 }, 394 },
395 "AsyncRecognizeRequest": {
396 "description": "The top-level message sent by the client for the `As yncRecognize` method.",
397 "id": "AsyncRecognizeRequest",
398 "properties": {
399 "config": {
400 "$ref": "RecognitionConfig",
401 "description": "*Required* Provides information to the recog nizer that specifies how to\nprocess the request."
402 },
403 "audio": {
404 "$ref": "RecognitionAudio",
405 "description": "*Required* The audio data to be recognized."
406 }
407 },
408 "type": "object"
409 },
316 "Operation": { 410 "Operation": {
317 "description": "This resource represents a long-running operation th at is the result of a\nnetwork API call.", 411 "description": "This resource represents a long-running operation th at is the result of a\nnetwork API call.",
318 "id": "Operation", 412 "id": "Operation",
319 "properties": { 413 "properties": {
320 "error": {
321 "$ref": "Status",
322 "description": "The error result of the operation in case of failure or cancellation."
323 },
324 "done": {
325 "description": "If the value is `false`, it means the operat ion is still in progress.\nIf true, the operation is completed, and either `erro r` or `response` is\navailable.",
326 "type": "boolean"
327 },
328 "metadata": {
329 "additionalProperties": {
330 "description": "Properties of the object. Contains field @type with type URL.",
331 "type": "any"
332 },
333 "description": "Service-specific metadata associated with th e operation. It typically\ncontains progress information and common metadata su ch as create time.\nSome services might not provide such metadata. Any method t hat returns a\nlong-running operation should document the metadata type, if any. ",
334 "type": "object"
335 },
336 "response": { 414 "response": {
337 "additionalProperties": { 415 "additionalProperties": {
338 "description": "Properties of the object. Contains field @type with type URL.", 416 "description": "Properties of the object. Contains field @type with type URL.",
339 "type": "any" 417 "type": "any"
340 }, 418 },
341 "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delet e`, the response is\n`google.protobuf.Empty`. If the original method is standar d\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmet hods, the response should have the type `XxxResponse`, where `Xxx`\nis the origi nal method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.", 419 "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delet e`, the response is\n`google.protobuf.Empty`. If the original method is standar d\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmet hods, the response should have the type `XxxResponse`, where `Xxx`\nis the origi nal method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.",
342 "type": "object" 420 "type": "object"
343 }, 421 },
344 "name": { 422 "name": {
345 "description": "The server-assigned name, which is only uniq ue within the same service that\noriginally returns it. If you use the default H TTP mapping, the\n`name` should have the format of `operations/some/unique/name` .", 423 "description": "The server-assigned name, which is only uniq ue within the same service that\noriginally returns it. If you use the default H TTP mapping, the\n`name` should have the format of `operations/some/unique/name` .",
346 "type": "string" 424 "type": "string"
425 },
426 "error": {
427 "$ref": "Status",
428 "description": "The error result of the operation in case of failure or cancellation."
429 },
430 "metadata": {
431 "additionalProperties": {
432 "description": "Properties of the object. Contains field @type with type URL.",
433 "type": "any"
434 },
435 "description": "Service-specific metadata associated with th e operation. It typically\ncontains progress information and common metadata su ch as create time.\nSome services might not provide such metadata. Any method t hat returns a\nlong-running operation should document the metadata type, if any. ",
436 "type": "object"
437 },
438 "done": {
439 "description": "If the value is `false`, it means the operat ion is still in progress.\nIf true, the operation is completed, and either `erro r` or `response` is\navailable.",
440 "type": "boolean"
347 } 441 }
348 }, 442 },
349 "type": "object" 443 "type": "object"
350 }, 444 },
351 "SpeechRecognitionAlternative": {
352 "description": "Alternative hypotheses (a.k.a. n-best list).",
353 "id": "SpeechRecognitionAlternative",
354 "properties": {
355 "transcript": {
356 "description": "[Output-only] Transcript text representing t he words that the user spoke.",
357 "type": "string"
358 },
359 "confidence": {
360 "description": "[Output-only] The confidence estimate betwee n 0.0 and 1.0. A higher number\nmeans the system is more confident that the reco gnition is correct.\nThis field is typically provided only for the top hypothesi s, and only for\n`is_final=true` results.\nThe default of 0.0 is a sentinel valu e indicating confidence was not set.",
361 "format": "float",
362 "type": "number"
363 }
364 },
365 "type": "object"
366 },
367 "CancelOperationRequest": {
368 "description": "The request message for Operations.CancelOperation." ,
369 "id": "CancelOperationRequest",
370 "properties": {},
371 "type": "object"
372 },
373 "RecognitionConfig": { 445 "RecognitionConfig": {
374 "description": "The `RecognitionConfig` message provides information to the recognizer\nthat specifies how to process the request.", 446 "description": "Provides information to the recognizer that specifie s how to process the\nrequest.",
375 "id": "RecognitionConfig", 447 "id": "RecognitionConfig",
376 "properties": { 448 "properties": {
377 "maxAlternatives": { 449 "maxAlternatives": {
378 "description": "[Optional] Maximum number of recognition hyp otheses to be returned.\nSpecifically, the maximum number of `SpeechRecognitionA lternative` messages\nwithin each `SpeechRecognitionResult`.\nThe server may ret urn fewer than `max_alternatives`.\nValid values are `0`-`30`. A value of `0` or `1` will return a maximum of\n`1`. If omitted, defaults to `1`.", 450 "description": "*Optional* Maximum number of recognition hyp otheses to be returned.\nSpecifically, the maximum number of `SpeechRecognitionA lternative` messages\nwithin each `SpeechRecognitionResult`.\nThe server may ret urn fewer than `max_alternatives`.\nValid values are `0`-`30`. A value of `0` or `1` will return a maximum of\none. If omitted, will return a maximum of one.",
451 "format": "int32",
452 "type": "integer"
453 },
454 "sampleRate": {
455 "description": "*Required* Sample rate in Hertz of the audio data sent in all\n`RecognitionAudio` messages. Valid values are: 8000-48000.\n1 6000 is optimal. For best results, set the sampling rate of the audio\nsource to 16000 Hz. If that's not possible, use the native sample rate of\nthe audio sour ce (instead of re-sampling).",
379 "format": "int32", 456 "format": "int32",
380 "type": "integer" 457 "type": "integer"
381 }, 458 },
382 "languageCode": { 459 "languageCode": {
383 "description": "[Optional] The language of the supplied audi o as a BCP-47 language tag.\nExample: \"en-GB\" https://www.rfc-editor.org/rfc/ bcp/bcp47.txt\nIf omitted, defaults to \"en-US\". See\n[Language Support](https: //cloud.google.com/speech/docs/languages)\nfor a list of the currently supported language codes.", 460 "description": "*Optional* The language of the supplied audi o as a BCP-47 language tag.\nExample: \"en-GB\" https://www.rfc-editor.org/rfc/ bcp/bcp47.txt\nIf omitted, defaults to \"en-US\". See\n[Language Support](https: //cloud.google.com/speech/docs/languages)\nfor a list of the currently supported language codes.",
384 "type": "string" 461 "type": "string"
385 }, 462 },
386 "speechContext": { 463 "speechContext": {
387 "$ref": "SpeechContext", 464 "$ref": "SpeechContext",
388 "description": "[Optional] A means to provide context to ass ist the speech recognition." 465 "description": "*Optional* A means to provide context to ass ist the speech recognition."
389 }, 466 },
390 "encoding": { 467 "encoding": {
391 "description": "[Required] Encoding of audio data sent in al l `RecognitionAudio` messages.", 468 "description": "*Required* Encoding of audio data sent in al l `RecognitionAudio` messages.",
392 "enum": [ 469 "enum": [
393 "ENCODING_UNSPECIFIED", 470 "ENCODING_UNSPECIFIED",
394 "LINEAR16", 471 "LINEAR16",
395 "FLAC", 472 "FLAC",
396 "MULAW", 473 "MULAW",
397 "AMR", 474 "AMR",
398 "AMR_WB" 475 "AMR_WB"
399 ], 476 ],
400 "enumDescriptions": [ 477 "enumDescriptions": [
401 "Not specified. Will return result google.rpc.Code.INVAL ID_ARGUMENT.", 478 "Not specified. Will return result google.rpc.Code.INVAL ID_ARGUMENT.",
402 "Uncompressed 16-bit signed little-endian samples (Linea r PCM).\nThis is the only encoding that may be used by `AsyncRecognize`.", 479 "Uncompressed 16-bit signed little-endian samples (Linea r PCM).\nThis is the only encoding that may be used by `AsyncRecognize`.",
403 "This is the recommended encoding for `SyncRecognize` an d\n`StreamingRecognize` because it uses lossless compression; therefore\nrecogni tion accuracy is not compromised by a lossy codec.\n\nThe stream FLAC (Free Loss less Audio Codec) encoding is specified at:\nhttp://flac.sourceforge.net/documen tation.html.\n16-bit and 24-bit samples are supported.\nNot all fields in STREAM INFO are supported.", 480 "This is the recommended encoding for `SyncRecognize` an d\n`StreamingRecognize` because it uses lossless compression; therefore\nrecogni tion accuracy is not compromised by a lossy codec.\n\nThe stream FLAC (Free Loss less Audio Codec) encoding is specified at:\nhttp://flac.sourceforge.net/documen tation.html.\n16-bit and 24-bit samples are supported.\nNot all fields in STREAM INFO are supported.",
404 "8-bit samples that compand 14-bit audio samples using G .711 PCMU/mu-law.", 481 "8-bit samples that compand 14-bit audio samples using G .711 PCMU/mu-law.",
405 "Adaptive Multi-Rate Narrowband codec. `sample_rate` mus t be 8000 Hz.", 482 "Adaptive Multi-Rate Narrowband codec. `sample_rate` mus t be 8000 Hz.",
406 "Adaptive Multi-Rate Wideband codec. `sample_rate` must be 16000 Hz." 483 "Adaptive Multi-Rate Wideband codec. `sample_rate` must be 16000 Hz."
407 ], 484 ],
408 "type": "string" 485 "type": "string"
409 }, 486 },
410 "profanityFilter": { 487 "profanityFilter": {
411 "description": "[Optional] If set to `true`, the server will attempt to filter out\nprofanities, replacing all but the initial character in each filtered word\nwith asterisks, e.g. \"f***\". If set to `false` or omitted, profanities\nwon't be filtered out.", 488 "description": "*Optional* If set to `true`, the server will attempt to filter out\nprofanities, replacing all but the initial character in each filtered word\nwith asterisks, e.g. \"f***\". If set to `false` or omitted, profanities\nwon't be filtered out.",
412 "type": "boolean" 489 "type": "boolean"
413 },
414 "sampleRate": {
415 "description": "[Required] Sample rate in Hertz of the audio data sent in all\n`RecognitionAudio` messages. Valid values are: 8000-48000.\n1 6000 is optimal. For best results, set the sampling rate of the audio\nsource to 16000 Hz. If that's not possible, use the native sample rate of\nthe audio sour ce (instead of re-sampling).",
416 "format": "int32",
417 "type": "integer"
418 } 490 }
419 }, 491 },
420 "type": "object" 492 "type": "object"
421 }, 493 },
422 "SyncRecognizeRequest": { 494 "SyncRecognizeRequest": {
423 "description": "`SyncRecognizeRequest` is the top-level message sent by the client for\nthe `SyncRecognize` method.", 495 "description": "The top-level message sent by the client for the `Sy ncRecognize` method.",
424 "id": "SyncRecognizeRequest", 496 "id": "SyncRecognizeRequest",
425 "properties": { 497 "properties": {
498 "config": {
499 "$ref": "RecognitionConfig",
500 "description": "*Required* Provides information to the recog nizer that specifies how to\nprocess the request."
501 },
426 "audio": { 502 "audio": {
427 "$ref": "RecognitionAudio", 503 "$ref": "RecognitionAudio",
428 "description": "[Required] The audio data to be recognized." 504 "description": "*Required* The audio data to be recognized."
429 },
430 "config": {
431 "$ref": "RecognitionConfig",
432 "description": "[Required] The `config` message provides inf ormation to the recognizer\nthat specifies how to process the request."
433 } 505 }
434 }, 506 },
435 "type": "object" 507 "type": "object"
436 },
437 "SpeechRecognitionResult": {
438 "description": "A speech recognition result corresponding to a porti on of the audio.",
439 "id": "SpeechRecognitionResult",
440 "properties": {
441 "alternatives": {
442 "description": "[Output-only] May contain one or more recogn ition hypotheses (up to the\nmaximum specified in `max_alternatives`).",
443 "items": {
444 "$ref": "SpeechRecognitionAlternative"
445 },
446 "type": "array"
447 }
448 },
449 "type": "object"
450 },
451 "ListOperationsResponse": {
452 "description": "The response message for Operations.ListOperations." ,
453 "id": "ListOperationsResponse",
454 "properties": {
455 "nextPageToken": {
456 "description": "The standard List next-page token.",
457 "type": "string"
458 },
459 "operations": {
460 "description": "A list of operations that matches the specif ied filter in the request.",
461 "items": {
462 "$ref": "Operation"
463 },
464 "type": "array"
465 }
466 },
467 "type": "object"
468 },
469 "Empty": {
470 "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use i t as the request\nor the response type of an API method. For instance:\n\n se rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty );\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
471 "id": "Empty",
472 "properties": {},
473 "type": "object"
474 },
475 "SyncRecognizeResponse": {
476 "description": "`SyncRecognizeResponse` is the only message returned to the client by\n`SyncRecognize`. It contains the result as zero or more seque ntial\n`SpeechRecognitionResult` messages.",
477 "id": "SyncRecognizeResponse",
478 "properties": {
479 "results": {
480 "description": "[Output-only] Sequential list of transcripti on results corresponding to\nsequential portions of audio.",
481 "items": {
482 "$ref": "SpeechRecognitionResult"
483 },
484 "type": "array"
485 }
486 },
487 "type": "object"
488 },
489 "SpeechContext": {
490 "description": "Provides \"hints\" to the speech recognizer to favor specific words and phrases\nin the results.",
491 "id": "SpeechContext",
492 "properties": {
493 "phrases": {
494 "description": "[Optional] A list of strings containing word s and phrases \"hints\" so that\nthe speech recognition is more likely to recogn ize them. This can be used\nto improve the accuracy for specific words and phras es, for example, if\nspecific commands are typically spoken by the user. This ca n also be used\nto add additional words to the vocabulary of the recognizer. See \n[usage limits](https://cloud.google.com/speech/limits#content).",
495 "items": {
496 "type": "string"
497 },
498 "type": "array"
499 }
500 },
501 "type": "object"
502 },
503 "AsyncRecognizeRequest": {
504 "description": "`AsyncRecognizeRequest` is the top-level message sen t by the client for\nthe `AsyncRecognize` method.",
505 "id": "AsyncRecognizeRequest",
506 "properties": {
507 "audio": {
508 "$ref": "RecognitionAudio",
509 "description": "[Required] The audio data to be recognized."
510 },
511 "config": {
512 "$ref": "RecognitionConfig",
513 "description": "[Required] The `config` message provides inf ormation to the recognizer\nthat specifies how to process the request."
514 }
515 },
516 "type": "object"
517 } 508 }
518 }, 509 },
519 "servicePath": "", 510 "servicePath": "",
520 "title": "Google Cloud Speech API", 511 "title": "Google Cloud Speech API",
521 "version": "v1beta1" 512 "version": "v1beta1"
522 } 513 }
OLDNEW
« no previous file with comments | « discovery/googleapis_beta/runtimeconfig__v1beta1.json ('k') | discovery/googleapis_beta/sqladmin__v1beta3.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698