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

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

Issue 2226653002: Api-roll 40: 2016-08-08 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 4 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
(Empty)
1 {
2 "auth": {
3 "oauth2": {
4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services"
7 }
8 }
9 }
10 },
11 "basePath": "",
12 "baseUrl": "https://speech.googleapis.com/",
13 "batchPath": "batch",
14 "canonicalName": "Cloud Speech API",
15 "description": "Google Cloud Speech API.",
16 "discoveryVersion": "v1",
17 "documentationLink": "https://cloud.google.com/speech/",
18 "icons": {
19 "x16": "http://www.google.com/images/icons/product/search-16.gif",
20 "x32": "http://www.google.com/images/icons/product/search-32.gif"
21 },
22 "id": "speech:v1beta1",
23 "kind": "discovery#restDescription",
24 "name": "speech",
25 "ownerDomain": "google.com",
26 "ownerName": "Google",
27 "parameters": {
28 "access_token": {
29 "description": "OAuth access token.",
30 "location": "query",
31 "type": "string"
32 },
33 "prettyPrint": {
34 "default": "true",
35 "description": "Returns response with indentations and line breaks." ,
36 "location": "query",
37 "type": "boolean"
38 },
39 "key": {
40 "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.",
41 "location": "query",
42 "type": "string"
43 },
44 "quotaUser": {
45 "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.",
46 "location": "query",
47 "type": "string"
48 },
49 "pp": {
50 "default": "true",
51 "description": "Pretty-print response.",
52 "location": "query",
53 "type": "boolean"
54 },
55 "fields": {
56 "description": "Selector specifying which fields to include in a par tial response.",
57 "location": "query",
58 "type": "string"
59 },
60 "alt": {
61 "default": "json",
62 "description": "Data format for response.",
63 "enum": [
64 "json",
65 "media",
66 "proto"
67 ],
68 "enumDescriptions": [
69 "Responses with Content-Type of application/json",
70 "Media download with context-dependent Content-Type",
71 "Responses with Content-Type of application/x-protobuf"
72 ],
73 "location": "query",
74 "type": "string"
75 },
76 "$.xgafv": {
77 "description": "V1 error format.",
78 "enum": [
79 "1",
80 "2"
81 ],
82 "enumDescriptions": [
83 "v1 error format",
84 "v2 error format"
85 ],
86 "location": "query",
87 "type": "string"
88 },
89 "callback": {
90 "description": "JSONP",
91 "location": "query",
92 "type": "string"
93 },
94 "oauth_token": {
95 "description": "OAuth 2.0 token for the current user.",
96 "location": "query",
97 "type": "string"
98 },
99 "uploadType": {
100 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
101 "location": "query",
102 "type": "string"
103 },
104 "bearer_token": {
105 "description": "OAuth bearer token.",
106 "location": "query",
107 "type": "string"
108 },
109 "upload_protocol": {
110 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
111 "location": "query",
112 "type": "string"
113 }
114 },
115 "protocol": "rest",
116 "resources": {
117 "speech": {
118 "methods": {
119 "syncrecognize": {
120 "description": "Perform synchronous speech-recognition: rece ive results after all audio\nhas been sent and processed.",
121 "httpMethod": "POST",
122 "id": "speech.speech.syncrecognize",
123 "parameterOrder": [],
124 "parameters": {},
125 "path": "v1beta1/speech:syncrecognize",
126 "request": {
127 "$ref": "SyncRecognizeRequest"
128 },
129 "response": {
130 "$ref": "SyncRecognizeResponse"
131 },
132 "scopes": [
133 "https://www.googleapis.com/auth/cloud-platform"
134 ]
135 },
136 "asyncrecognize": {
137 "description": "Perform asynchronous speech-recognition: rec eive results via the\ngoogle.longrunning.Operations interface. Returns either an \n`Operation.error` or an `Operation.response` which contains\nan `AsyncRecogniz eResponse` message.",
138 "httpMethod": "POST",
139 "id": "speech.speech.asyncrecognize",
140 "parameterOrder": [],
141 "parameters": {},
142 "path": "v1beta1/speech:asyncrecognize",
143 "request": {
144 "$ref": "AsyncRecognizeRequest"
145 },
146 "response": {
147 "$ref": "Operation"
148 },
149 "scopes": [
150 "https://www.googleapis.com/auth/cloud-platform"
151 ]
152 }
153 }
154 },
155 "operations": {
156 "methods": {
157 "get": {
158 "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.",
159 "httpMethod": "GET",
160 "id": "speech.operations.get",
161 "parameterOrder": [
162 "name"
163 ],
164 "parameters": {
165 "name": {
166 "description": "The name of the operation resource." ,
167 "location": "path",
168 "pattern": "^[^/]*$",
169 "required": true,
170 "type": "string"
171 }
172 },
173 "path": "v1beta1/operations/{+name}",
174 "response": {
175 "$ref": "Operation"
176 },
177 "scopes": [
178 "https://www.googleapis.com/auth/cloud-platform"
179 ]
180 },
181 "list": {
182 "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` .",
183 "httpMethod": "GET",
184 "id": "speech.operations.list",
185 "parameterOrder": [],
186 "parameters": {
187 "pageSize": {
188 "description": "The standard list page size.",
189 "format": "int32",
190 "location": "query",
191 "type": "integer"
192 },
193 "filter": {
194 "description": "The standard list filter.",
195 "location": "query",
196 "type": "string"
197 },
198 "name": {
199 "description": "The name of the operation collection .",
200 "location": "query",
201 "type": "string"
202 },
203 "pageToken": {
204 "description": "The standard list page token.",
205 "location": "query",
206 "type": "string"
207 }
208 },
209 "path": "v1beta1/operations",
210 "response": {
211 "$ref": "ListOperationsResponse"
212 },
213 "scopes": [
214 "https://www.googleapis.com/auth/cloud-platform"
215 ]
216 },
217 "cancel": {
218 "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.",
219 "httpMethod": "POST",
220 "id": "speech.operations.cancel",
221 "parameterOrder": [
222 "name"
223 ],
224 "parameters": {
225 "name": {
226 "description": "The name of the operation resource t o be cancelled.",
227 "location": "path",
228 "pattern": "^[^/]*$",
229 "required": true,
230 "type": "string"
231 }
232 },
233 "path": "v1beta1/operations/{+name}:cancel",
234 "request": {
235 "$ref": "CancelOperationRequest"
236 },
237 "response": {
238 "$ref": "Empty"
239 },
240 "scopes": [
241 "https://www.googleapis.com/auth/cloud-platform"
242 ]
243 },
244 "delete": {
245 "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`.",
246 "httpMethod": "DELETE",
247 "id": "speech.operations.delete",
248 "parameterOrder": [
249 "name"
250 ],
251 "parameters": {
252 "name": {
253 "description": "The name of the operation resource t o be deleted.",
254 "location": "path",
255 "pattern": "^[^/]*$",
256 "required": true,
257 "type": "string"
258 }
259 },
260 "path": "v1beta1/operations/{+name}",
261 "response": {
262 "$ref": "Empty"
263 },
264 "scopes": [
265 "https://www.googleapis.com/auth/cloud-platform"
266 ]
267 }
268 }
269 }
270 },
271 "revision": "20160726",
272 "rootUrl": "https://speech.googleapis.com/",
273 "schemas": {
274 "Status": {
275 "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.",
276 "id": "Status",
277 "properties": {
278 "code": {
279 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
280 "format": "int32",
281 "type": "integer"
282 },
283 "details": {
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.",
285 "items": {
286 "additionalProperties": {
287 "description": "Properties of the object. Contains f ield @type with type URL.",
288 "type": "any"
289 },
290 "type": "object"
291 },
292 "type": "array"
293 },
294 "message": {
295 "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.",
296 "type": "string"
297 }
298 },
299 "type": "object"
300 },
301 "RecognitionAudio": {
302 "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.",
303 "id": "RecognitionAudio",
304 "properties": {
305 "content": {
306 "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.",
307 "format": "byte",
308 "type": "string"
309 },
310 "uri": {
311 "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](/storage/docs/reference-ur is).",
312 "type": "string"
313 }
314 },
315 "type": "object"
316 },
317 "Operation": {
318 "description": "This resource represents a long-running operation th at is the result of a\nnetwork API call.",
319 "id": "Operation",
320 "properties": {
321 "error": {
322 "$ref": "Status",
323 "description": "The error result of the operation in case of failure."
324 },
325 "done": {
326 "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.",
327 "type": "boolean"
328 },
329 "metadata": {
330 "additionalProperties": {
331 "description": "Properties of the object. Contains field @type with type URL.",
332 "type": "any"
333 },
334 "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. ",
335 "type": "object"
336 },
337 "response": {
338 "additionalProperties": {
339 "description": "Properties of the object. Contains field @type with type URL.",
340 "type": "any"
341 },
342 "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`.",
343 "type": "object"
344 },
345 "name": {
346 "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` .",
347 "type": "string"
348 }
349 },
350 "type": "object"
351 },
352 "SpeechRecognitionAlternative": {
353 "description": "Alternative hypotheses (a.k.a. n-best list).",
354 "id": "SpeechRecognitionAlternative",
355 "properties": {
356 "transcript": {
357 "description": "[Output-only] Transcript text representing t he words that the user spoke.",
358 "type": "string"
359 },
360 "confidence": {
361 "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.",
362 "format": "float",
363 "type": "number"
364 }
365 },
366 "type": "object"
367 },
368 "CancelOperationRequest": {
369 "description": "The request message for Operations.CancelOperation." ,
370 "id": "CancelOperationRequest",
371 "properties": {},
372 "type": "object"
373 },
374 "RecognitionConfig": {
375 "description": "The `RecognitionConfig` message provides information to the recognizer\nthat specifies how to process the request.",
376 "id": "RecognitionConfig",
377 "properties": {
378 "maxAlternatives": {
379 "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`.",
380 "format": "int32",
381 "type": "integer"
382 },
383 "languageCode": {
384 "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](/speec h/docs/best-practices#language_support) for\na list of the currently supported l anguage codes.",
385 "type": "string"
386 },
387 "speechContext": {
388 "$ref": "SpeechContext",
389 "description": "[Optional] A means to provide context to ass ist the speech recognition."
390 },
391 "encoding": {
392 "description": "[Required] Encoding of audio data sent in al l `RecognitionAudio` messages.",
393 "enum": [
394 "ENCODING_UNSPECIFIED",
395 "LINEAR16",
396 "FLAC",
397 "MULAW",
398 "AMR",
399 "AMR_WB"
400 ],
401 "enumDescriptions": [
402 "Not specified. Will return result google.rpc.Code.INVAL ID_ARGUMENT.",
403 "Uncompressed 16-bit signed little-endian samples.\nThis is the only encoding that may be used by `AsyncRecognize`.",
404 "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.\nOnly 16-bit samples are supported.\nNot all fields in STREAMINFO a re supported.",
405 "8-bit samples that compand 14-bit audio samples using G .711 PCMU/mu-law.",
406 "Adaptive Multi-Rate Narrowband codec. `sample_rate` mus t be 8000 Hz.",
407 "Adaptive Multi-Rate Wideband codec. `sample_rate` must be 16000 Hz."
408 ],
409 "type": "string"
410 },
411 "profanityFilter": {
412 "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.",
413 "type": "boolean"
414 },
415 "sampleRate": {
416 "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).",
417 "format": "int32",
418 "type": "integer"
419 }
420 },
421 "type": "object"
422 },
423 "SyncRecognizeRequest": {
424 "description": "`SyncRecognizeRequest` is the top-level message sent by the client for\nthe `SyncRecognize` method.",
425 "id": "SyncRecognizeRequest",
426 "properties": {
427 "audio": {
428 "$ref": "RecognitionAudio",
429 "description": "[Required] The audio data to be recognized."
430 },
431 "config": {
432 "$ref": "RecognitionConfig",
433 "description": "[Required] The `config` message provides inf ormation to the recognizer\nthat specifies how to process the request."
434 }
435 },
436 "type": "object"
437 },
438 "SpeechRecognitionResult": {
439 "description": "A speech recognition result corresponding to a porti on of the audio.",
440 "id": "SpeechRecognitionResult",
441 "properties": {
442 "alternatives": {
443 "description": "[Output-only] May contain one or more recogn ition hypotheses (up to the\nmaximum specified in `max_alternatives`).",
444 "items": {
445 "$ref": "SpeechRecognitionAlternative"
446 },
447 "type": "array"
448 }
449 },
450 "type": "object"
451 },
452 "ListOperationsResponse": {
453 "description": "The response message for Operations.ListOperations." ,
454 "id": "ListOperationsResponse",
455 "properties": {
456 "nextPageToken": {
457 "description": "The standard List next-page token.",
458 "type": "string"
459 },
460 "operations": {
461 "description": "A list of operations that matches the specif ied filter in the request.",
462 "items": {
463 "$ref": "Operation"
464 },
465 "type": "array"
466 }
467 },
468 "type": "object"
469 },
470 "SyncRecognizeResponse": {
471 "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.",
472 "id": "SyncRecognizeResponse",
473 "properties": {
474 "results": {
475 "description": "[Output-only] Sequential list of transcripti on results corresponding to\nsequential portions of audio.",
476 "items": {
477 "$ref": "SpeechRecognitionResult"
478 },
479 "type": "array"
480 }
481 },
482 "type": "object"
483 },
484 "Empty": {
485 "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 `{}`.",
486 "id": "Empty",
487 "properties": {},
488 "type": "object"
489 },
490 "SpeechContext": {
491 "description": "Provides \"hints\" to the speech recognizer to favor specific words and phrases\nin the results.",
492 "id": "SpeechContext",
493 "properties": {
494 "phrases": {
495 "description": "[Optional] A list of up to 50 phrases of up to 100 characters each to\nprovide words and phrases \"hints\" to the speech rec ognition so that it is\nmore likely to recognize them.",
496 "items": {
497 "type": "string"
498 },
499 "type": "array"
500 }
501 },
502 "type": "object"
503 },
504 "AsyncRecognizeRequest": {
505 "description": "`AsyncRecognizeRequest` is the top-level message sen t by the client for\nthe `AsyncRecognize` method.",
506 "id": "AsyncRecognizeRequest",
507 "properties": {
508 "audio": {
509 "$ref": "RecognitionAudio",
510 "description": "[Required] The audio data to be recognized."
511 },
512 "config": {
513 "$ref": "RecognitionConfig",
514 "description": "[Required] The `config` message provides inf ormation to the recognizer\nthat specifies how to process the request."
515 }
516 },
517 "type": "object"
518 }
519 },
520 "servicePath": "",
521 "title": "Google Cloud Speech API",
522 "version": "v1beta1"
523 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698