OLD | NEW |
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 "canonicalName": "Speech", | 14 "canonicalName": "Speech", |
15 "description": "Converts audio to text by applying powerful neural network m
odels.", | 15 "description": "Converts audio to text by applying powerful neural network m
odels.", |
16 "discoveryVersion": "v1", | 16 "discoveryVersion": "v1", |
17 "documentationLink": "https://cloud.google.com/speech/", | 17 "documentationLink": "https://cloud.google.com/speech/", |
18 "icons": { | 18 "icons": { |
19 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 19 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
20 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 20 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
21 }, | 21 }, |
22 "id": "speech:v1", | 22 "id": "speech:v1", |
23 "kind": "discovery#restDescription", | 23 "kind": "discovery#restDescription", |
24 "name": "speech", | 24 "name": "speech", |
25 "ownerDomain": "google.com", | 25 "ownerDomain": "google.com", |
26 "ownerName": "Google", | 26 "ownerName": "Google", |
27 "parameters": { | 27 "parameters": { |
28 "access_token": { | |
29 "description": "OAuth access token.", | |
30 "location": "query", | |
31 "type": "string" | |
32 }, | |
33 "key": { | |
34 "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.", | |
35 "location": "query", | |
36 "type": "string" | |
37 }, | |
38 "quotaUser": { | |
39 "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.", | |
40 "location": "query", | |
41 "type": "string" | |
42 }, | |
43 "pp": { | |
44 "default": "true", | |
45 "description": "Pretty-print response.", | |
46 "location": "query", | |
47 "type": "boolean" | |
48 }, | |
49 "bearer_token": { | |
50 "description": "OAuth bearer token.", | |
51 "location": "query", | |
52 "type": "string" | |
53 }, | |
54 "oauth_token": { | |
55 "description": "OAuth 2.0 token for the current user.", | |
56 "location": "query", | |
57 "type": "string" | |
58 }, | |
59 "upload_protocol": { | 28 "upload_protocol": { |
60 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 29 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
61 "location": "query", | 30 "location": "query", |
62 "type": "string" | 31 "type": "string" |
63 }, | 32 }, |
64 "prettyPrint": { | 33 "prettyPrint": { |
65 "default": "true", | 34 "default": "true", |
66 "description": "Returns response with indentations and line breaks."
, | 35 "description": "Returns response with indentations and line breaks."
, |
67 "location": "query", | 36 "location": "query", |
68 "type": "boolean" | 37 "type": "boolean" |
69 }, | 38 }, |
| 39 "fields": { |
| 40 "description": "Selector specifying which fields to include in a par
tial response.", |
| 41 "location": "query", |
| 42 "type": "string" |
| 43 }, |
70 "uploadType": { | 44 "uploadType": { |
71 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | 45 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
72 "location": "query", | 46 "location": "query", |
73 "type": "string" | 47 "type": "string" |
74 }, | 48 }, |
75 "fields": { | |
76 "description": "Selector specifying which fields to include in a par
tial response.", | |
77 "location": "query", | |
78 "type": "string" | |
79 }, | |
80 "callback": { | 49 "callback": { |
81 "description": "JSONP", | 50 "description": "JSONP", |
82 "location": "query", | 51 "location": "query", |
83 "type": "string" | 52 "type": "string" |
84 }, | 53 }, |
85 "$.xgafv": { | 54 "$.xgafv": { |
86 "description": "V1 error format.", | 55 "description": "V1 error format.", |
87 "enum": [ | 56 "enum": [ |
88 "1", | 57 "1", |
89 "2" | 58 "2" |
(...skipping 13 matching lines...) Expand all Loading... |
103 "media", | 72 "media", |
104 "proto" | 73 "proto" |
105 ], | 74 ], |
106 "enumDescriptions": [ | 75 "enumDescriptions": [ |
107 "Responses with Content-Type of application/json", | 76 "Responses with Content-Type of application/json", |
108 "Media download with context-dependent Content-Type", | 77 "Media download with context-dependent Content-Type", |
109 "Responses with Content-Type of application/x-protobuf" | 78 "Responses with Content-Type of application/x-protobuf" |
110 ], | 79 ], |
111 "location": "query", | 80 "location": "query", |
112 "type": "string" | 81 "type": "string" |
| 82 }, |
| 83 "key": { |
| 84 "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.", |
| 85 "location": "query", |
| 86 "type": "string" |
| 87 }, |
| 88 "access_token": { |
| 89 "description": "OAuth access token.", |
| 90 "location": "query", |
| 91 "type": "string" |
| 92 }, |
| 93 "quotaUser": { |
| 94 "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", |
| 96 "type": "string" |
| 97 }, |
| 98 "pp": { |
| 99 "default": "true", |
| 100 "description": "Pretty-print response.", |
| 101 "location": "query", |
| 102 "type": "boolean" |
| 103 }, |
| 104 "bearer_token": { |
| 105 "description": "OAuth bearer token.", |
| 106 "location": "query", |
| 107 "type": "string" |
| 108 }, |
| 109 "oauth_token": { |
| 110 "description": "OAuth 2.0 token for the current user.", |
| 111 "location": "query", |
| 112 "type": "string" |
113 } | 113 } |
114 }, | 114 }, |
115 "protocol": "rest", | 115 "protocol": "rest", |
116 "resources": { | 116 "resources": { |
117 "operations": { | 117 "operations": { |
118 "methods": { | 118 "methods": { |
| 119 "cancel": { |
| 120 "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`.", |
| 121 "httpMethod": "POST", |
| 122 "id": "speech.operations.cancel", |
| 123 "parameterOrder": [ |
| 124 "name" |
| 125 ], |
| 126 "parameters": { |
| 127 "name": { |
| 128 "description": "The name of the operation resource t
o be cancelled.", |
| 129 "location": "path", |
| 130 "pattern": "^[^/]+$", |
| 131 "required": true, |
| 132 "type": "string" |
| 133 } |
| 134 }, |
| 135 "path": "v1/operations/{+name}:cancel", |
| 136 "request": { |
| 137 "$ref": "CancelOperationRequest" |
| 138 }, |
| 139 "response": { |
| 140 "$ref": "Empty" |
| 141 }, |
| 142 "scopes": [ |
| 143 "https://www.googleapis.com/auth/cloud-platform" |
| 144 ] |
| 145 }, |
119 "delete": { | 146 "delete": { |
120 "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`.", | 147 "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`.", |
121 "httpMethod": "DELETE", | 148 "httpMethod": "DELETE", |
122 "id": "speech.operations.delete", | 149 "id": "speech.operations.delete", |
123 "parameterOrder": [ | 150 "parameterOrder": [ |
124 "name" | 151 "name" |
125 ], | 152 ], |
126 "parameters": { | 153 "parameters": { |
127 "name": { | 154 "name": { |
128 "description": "The name of the operation resource t
o be deleted.", | 155 "description": "The name of the operation resource t
o be deleted.", |
129 "location": "path", | 156 "location": "path", |
130 "pattern": "^[^/]+$", | 157 "pattern": "^[^/]+$", |
131 "required": true, | 158 "required": true, |
132 "type": "string" | 159 "type": "string" |
133 } | 160 } |
134 }, | 161 }, |
135 "path": "v1/operations/{+name}", | 162 "path": "v1/operations/{+name}", |
136 "response": { | 163 "response": { |
137 "$ref": "Empty" | 164 "$ref": "Empty" |
138 }, | 165 }, |
139 "scopes": [ | 166 "scopes": [ |
140 "https://www.googleapis.com/auth/cloud-platform" | 167 "https://www.googleapis.com/auth/cloud-platform" |
141 ] | 168 ] |
142 }, | 169 }, |
143 "list": { | 170 "list": { |
144 "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`
.", | 171 "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 allows API services to override the bin
ding\nto use different resource name schemes, such as `users/*/operations`. To\n
override the binding, API services can add a binding such as\n`\"/v1/{name=users
/*}/operations\"` to their service configuration.\nFor backwards compatibility,
the default name includes the operations\ncollection id, however overriding user
s must ensure the name binding\nis the parent resource, without the operations c
ollection id.", |
145 "httpMethod": "GET", | 172 "httpMethod": "GET", |
146 "id": "speech.operations.list", | 173 "id": "speech.operations.list", |
147 "parameterOrder": [], | 174 "parameterOrder": [], |
148 "parameters": { | 175 "parameters": { |
| 176 "name": { |
| 177 "description": "The name of the operation's parent r
esource.", |
| 178 "location": "query", |
| 179 "type": "string" |
| 180 }, |
| 181 "pageToken": { |
| 182 "description": "The standard list page token.", |
| 183 "location": "query", |
| 184 "type": "string" |
| 185 }, |
149 "pageSize": { | 186 "pageSize": { |
150 "description": "The standard list page size.", | 187 "description": "The standard list page size.", |
151 "format": "int32", | 188 "format": "int32", |
152 "location": "query", | 189 "location": "query", |
153 "type": "integer" | 190 "type": "integer" |
154 }, | 191 }, |
155 "filter": { | 192 "filter": { |
156 "description": "The standard list filter.", | 193 "description": "The standard list filter.", |
157 "location": "query", | 194 "location": "query", |
158 "type": "string" | 195 "type": "string" |
159 }, | |
160 "name": { | |
161 "description": "The name of the operation collection
.", | |
162 "location": "query", | |
163 "type": "string" | |
164 }, | |
165 "pageToken": { | |
166 "description": "The standard list page token.", | |
167 "location": "query", | |
168 "type": "string" | |
169 } | 196 } |
170 }, | 197 }, |
171 "path": "v1/operations", | 198 "path": "v1/operations", |
172 "response": { | 199 "response": { |
173 "$ref": "ListOperationsResponse" | 200 "$ref": "ListOperationsResponse" |
174 }, | 201 }, |
175 "scopes": [ | 202 "scopes": [ |
176 "https://www.googleapis.com/auth/cloud-platform" | 203 "https://www.googleapis.com/auth/cloud-platform" |
177 ] | 204 ] |
178 }, | 205 }, |
(...skipping 13 matching lines...) Expand all Loading... |
192 "type": "string" | 219 "type": "string" |
193 } | 220 } |
194 }, | 221 }, |
195 "path": "v1/operations/{+name}", | 222 "path": "v1/operations/{+name}", |
196 "response": { | 223 "response": { |
197 "$ref": "Operation" | 224 "$ref": "Operation" |
198 }, | 225 }, |
199 "scopes": [ | 226 "scopes": [ |
200 "https://www.googleapis.com/auth/cloud-platform" | 227 "https://www.googleapis.com/auth/cloud-platform" |
201 ] | 228 ] |
202 }, | |
203 "cancel": { | |
204 "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`.", | |
205 "httpMethod": "POST", | |
206 "id": "speech.operations.cancel", | |
207 "parameterOrder": [ | |
208 "name" | |
209 ], | |
210 "parameters": { | |
211 "name": { | |
212 "description": "The name of the operation resource t
o be cancelled.", | |
213 "location": "path", | |
214 "pattern": "^[^/]+$", | |
215 "required": true, | |
216 "type": "string" | |
217 } | |
218 }, | |
219 "path": "v1/operations/{+name}:cancel", | |
220 "request": { | |
221 "$ref": "CancelOperationRequest" | |
222 }, | |
223 "response": { | |
224 "$ref": "Empty" | |
225 }, | |
226 "scopes": [ | |
227 "https://www.googleapis.com/auth/cloud-platform" | |
228 ] | |
229 } | 229 } |
230 } | 230 } |
231 }, | 231 }, |
232 "speech": { | 232 "speech": { |
233 "methods": { | 233 "methods": { |
234 "longrunningrecognize": { | 234 "longrunningrecognize": { |
235 "description": "Performs asynchronous speech recognition: re
ceive results via the\ngoogle.longrunning.Operations interface. Returns either a
n\n`Operation.error` or an `Operation.response` which contains\na `LongRunningRe
cognizeResponse` message.", | 235 "description": "Performs asynchronous speech recognition: re
ceive results via the\ngoogle.longrunning.Operations interface. Returns either a
n\n`Operation.error` or an `Operation.response` which contains\na `LongRunningRe
cognizeResponse` message.", |
236 "httpMethod": "POST", | 236 "httpMethod": "POST", |
237 "id": "speech.speech.longrunningrecognize", | 237 "id": "speech.speech.longrunningrecognize", |
238 "parameterOrder": [], | 238 "parameterOrder": [], |
(...skipping 22 matching lines...) Expand all Loading... |
261 "response": { | 261 "response": { |
262 "$ref": "RecognizeResponse" | 262 "$ref": "RecognizeResponse" |
263 }, | 263 }, |
264 "scopes": [ | 264 "scopes": [ |
265 "https://www.googleapis.com/auth/cloud-platform" | 265 "https://www.googleapis.com/auth/cloud-platform" |
266 ] | 266 ] |
267 } | 267 } |
268 } | 268 } |
269 } | 269 } |
270 }, | 270 }, |
271 "revision": "20170516", | 271 "revision": "20170609", |
272 "rootUrl": "https://speech.googleapis.com/", | 272 "rootUrl": "https://speech.googleapis.com/", |
273 "schemas": { | 273 "schemas": { |
| 274 "RecognizeRequest": { |
| 275 "description": "The top-level message sent by the client for the `Re
cognize` method.", |
| 276 "id": "RecognizeRequest", |
| 277 "properties": { |
| 278 "config": { |
| 279 "$ref": "RecognitionConfig", |
| 280 "description": "*Required* Provides information to the recog
nizer that specifies how to\nprocess the request." |
| 281 }, |
| 282 "audio": { |
| 283 "$ref": "RecognitionAudio", |
| 284 "description": "*Required* The audio data to be recognized." |
| 285 } |
| 286 }, |
| 287 "type": "object" |
| 288 }, |
| 289 "SpeechContext": { |
| 290 "description": "Provides \"hints\" to the speech recognizer to favor
specific words and phrases\nin the results.", |
| 291 "id": "SpeechContext", |
| 292 "properties": { |
| 293 "phrases": { |
| 294 "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).", |
| 295 "items": { |
| 296 "type": "string" |
| 297 }, |
| 298 "type": "array" |
| 299 } |
| 300 }, |
| 301 "type": "object" |
| 302 }, |
| 303 "ListOperationsResponse": { |
| 304 "description": "The response message for Operations.ListOperations."
, |
| 305 "id": "ListOperationsResponse", |
| 306 "properties": { |
| 307 "nextPageToken": { |
| 308 "description": "The standard List next-page token.", |
| 309 "type": "string" |
| 310 }, |
| 311 "operations": { |
| 312 "description": "A list of operations that matches the specif
ied filter in the request.", |
| 313 "items": { |
| 314 "$ref": "Operation" |
| 315 }, |
| 316 "type": "array" |
| 317 } |
| 318 }, |
| 319 "type": "object" |
| 320 }, |
| 321 "SpeechRecognitionAlternative": { |
| 322 "description": "Alternative hypotheses (a.k.a. n-best list).", |
| 323 "id": "SpeechRecognitionAlternative", |
| 324 "properties": { |
| 325 "confidence": { |
| 326 "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.", |
| 327 "format": "float", |
| 328 "type": "number" |
| 329 }, |
| 330 "transcript": { |
| 331 "description": "*Output-only* Transcript text representing t
he words that the user spoke.", |
| 332 "type": "string" |
| 333 } |
| 334 }, |
| 335 "type": "object" |
| 336 }, |
| 337 "SpeechRecognitionResult": { |
| 338 "description": "A speech recognition result corresponding to a porti
on of the audio.", |
| 339 "id": "SpeechRecognitionResult", |
| 340 "properties": { |
| 341 "alternatives": { |
| 342 "description": "*Output-only* May contain one or more recogn
ition hypotheses (up to the\nmaximum specified in `max_alternatives`).\nThese al
ternatives are ordered in terms of accuracy, with the first/top\nalternative bei
ng the most probable, as ranked by the recognizer.", |
| 343 "items": { |
| 344 "$ref": "SpeechRecognitionAlternative" |
| 345 }, |
| 346 "type": "array" |
| 347 } |
| 348 }, |
| 349 "type": "object" |
| 350 }, |
| 351 "RecognitionAudio": { |
| 352 "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).", |
| 353 "id": "RecognitionAudio", |
| 354 "properties": { |
| 355 "uri": { |
| 356 "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).", |
| 357 "type": "string" |
| 358 }, |
| 359 "content": { |
| 360 "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.", |
| 361 "format": "byte", |
| 362 "type": "string" |
| 363 } |
| 364 }, |
| 365 "type": "object" |
| 366 }, |
| 367 "LongRunningRecognizeRequest": { |
| 368 "description": "The top-level message sent by the client for the `Lo
ngRunningRecognize`\nmethod.", |
| 369 "id": "LongRunningRecognizeRequest", |
| 370 "properties": { |
| 371 "config": { |
| 372 "$ref": "RecognitionConfig", |
| 373 "description": "*Required* Provides information to the recog
nizer that specifies how to\nprocess the request." |
| 374 }, |
| 375 "audio": { |
| 376 "$ref": "RecognitionAudio", |
| 377 "description": "*Required* The audio data to be recognized." |
| 378 } |
| 379 }, |
| 380 "type": "object" |
| 381 }, |
274 "RecognizeResponse": { | 382 "RecognizeResponse": { |
275 "description": "The only message returned to the client by the `Reco
gnize` method. It\ncontains the result as zero or more sequential `SpeechRecogni
tionResult`\nmessages.", | 383 "description": "The only message returned to the client by the `Reco
gnize` method. It\ncontains the result as zero or more sequential `SpeechRecogni
tionResult`\nmessages.", |
276 "id": "RecognizeResponse", | 384 "id": "RecognizeResponse", |
277 "properties": { | 385 "properties": { |
278 "results": { | 386 "results": { |
279 "description": "*Output-only* Sequential list of transcripti
on results corresponding to\nsequential portions of audio.", | 387 "description": "*Output-only* Sequential list of transcripti
on results corresponding to\nsequential portions of audio.", |
280 "items": { | 388 "items": { |
281 "$ref": "SpeechRecognitionResult" | 389 "$ref": "SpeechRecognitionResult" |
282 }, | 390 }, |
283 "type": "array" | 391 "type": "array" |
284 } | 392 } |
285 }, | 393 }, |
286 "type": "object" | 394 "type": "object" |
287 }, | 395 }, |
288 "CancelOperationRequest": { | 396 "CancelOperationRequest": { |
289 "description": "The request message for Operations.CancelOperation."
, | 397 "description": "The request message for Operations.CancelOperation."
, |
290 "id": "CancelOperationRequest", | 398 "id": "CancelOperationRequest", |
291 "properties": {}, | 399 "properties": {}, |
292 "type": "object" | 400 "type": "object" |
293 }, | 401 }, |
294 "Operation": { | 402 "Operation": { |
295 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", | 403 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", |
296 "id": "Operation", | 404 "id": "Operation", |
297 "properties": { | 405 "properties": { |
| 406 "metadata": { |
| 407 "additionalProperties": { |
| 408 "description": "Properties of the object. Contains field
@type with type URL.", |
| 409 "type": "any" |
| 410 }, |
| 411 "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.
", |
| 412 "type": "object" |
| 413 }, |
| 414 "done": { |
| 415 "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.", |
| 416 "type": "boolean" |
| 417 }, |
298 "response": { | 418 "response": { |
299 "additionalProperties": { | 419 "additionalProperties": { |
300 "description": "Properties of the object. Contains field
@type with type URL.", | 420 "description": "Properties of the object. Contains field
@type with type URL.", |
301 "type": "any" | 421 "type": "any" |
302 }, | 422 }, |
303 "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`.", | 423 "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`.", |
304 "type": "object" | 424 "type": "object" |
305 }, | 425 }, |
306 "name": { | 426 "name": { |
307 "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`
.", | 427 "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`
.", |
308 "type": "string" | 428 "type": "string" |
309 }, | 429 }, |
310 "error": { | 430 "error": { |
311 "$ref": "Status", | 431 "$ref": "Status", |
312 "description": "The error result of the operation in case of
failure or cancellation." | 432 "description": "The error result of the operation in case of
failure or cancellation." |
313 }, | |
314 "metadata": { | |
315 "additionalProperties": { | |
316 "description": "Properties of the object. Contains field
@type with type URL.", | |
317 "type": "any" | |
318 }, | |
319 "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.
", | |
320 "type": "object" | |
321 }, | |
322 "done": { | |
323 "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.", | |
324 "type": "boolean" | |
325 } | 433 } |
326 }, | 434 }, |
327 "type": "object" | 435 "type": "object" |
328 }, | 436 }, |
329 "RecognitionConfig": { | 437 "RecognitionConfig": { |
330 "description": "Provides information to the recognizer that specifie
s how to process the\nrequest.", | 438 "description": "Provides information to the recognizer that specifie
s how to process the\nrequest.", |
331 "id": "RecognitionConfig", | 439 "id": "RecognitionConfig", |
332 "properties": { | 440 "properties": { |
| 441 "sampleRateHertz": { |
| 442 "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).", |
| 443 "format": "int32", |
| 444 "type": "integer" |
| 445 }, |
333 "maxAlternatives": { | 446 "maxAlternatives": { |
334 "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.", | 447 "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.", |
335 "format": "int32", | 448 "format": "int32", |
336 "type": "integer" | 449 "type": "integer" |
337 }, | 450 }, |
338 "languageCode": { | 451 "languageCode": { |
339 "description": "*Required* The language of the supplied audi
o as a\n[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.\nEx
ample: \"en-US\".\nSee [Language Support](https://cloud.google.com/speech/docs/l
anguages)\nfor a list of the currently supported language codes.", | 452 "description": "*Required* The language of the supplied audi
o as a\n[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.\nEx
ample: \"en-US\".\nSee [Language Support](https://cloud.google.com/speech/docs/l
anguages)\nfor a list of the currently supported language codes.", |
340 "type": "string" | 453 "type": "string" |
341 }, | 454 }, |
| 455 "speechContexts": { |
| 456 "description": "*Optional* A means to provide context to ass
ist the speech recognition.", |
| 457 "items": { |
| 458 "$ref": "SpeechContext" |
| 459 }, |
| 460 "type": "array" |
| 461 }, |
342 "encoding": { | 462 "encoding": { |
343 "description": "*Required* Encoding of audio data sent in al
l `RecognitionAudio` messages.", | 463 "description": "*Required* Encoding of audio data sent in al
l `RecognitionAudio` messages.", |
344 "enum": [ | 464 "enum": [ |
345 "ENCODING_UNSPECIFIED", | 465 "ENCODING_UNSPECIFIED", |
346 "LINEAR16", | 466 "LINEAR16", |
347 "FLAC", | 467 "FLAC", |
348 "MULAW", | 468 "MULAW", |
349 "AMR", | 469 "AMR", |
350 "AMR_WB", | 470 "AMR_WB", |
351 "OGG_OPUS", | 471 "OGG_OPUS", |
352 "SPEEX_WITH_HEADER_BYTE" | 472 "SPEEX_WITH_HEADER_BYTE" |
353 ], | 473 ], |
354 "enumDescriptions": [ | 474 "enumDescriptions": [ |
355 "Not specified. Will return result google.rpc.Code.INVAL
ID_ARGUMENT.", | 475 "Not specified. Will return result google.rpc.Code.INVAL
ID_ARGUMENT.", |
356 "Uncompressed 16-bit signed little-endian samples (Linea
r PCM).", | 476 "Uncompressed 16-bit signed little-endian samples (Linea
r PCM).", |
357 "[`FLAC`](https://xiph.org/flac/documentation.html) (Fre
e Lossless Audio\nCodec) is the recommended encoding because it is\nlossless--th
erefore recognition is not compromised--and\nrequires only about half the bandwi
dth of `LINEAR16`. `FLAC` stream\nencoding supports 16-bit and 24-bit samples, h
owever, not all fields in\n`STREAMINFO` are supported.", | 477 "[`FLAC`](https://xiph.org/flac/documentation.html) (Fre
e Lossless Audio\nCodec) is the recommended encoding because it is\nlossless--th
erefore recognition is not compromised--and\nrequires only about half the bandwi
dth of `LINEAR16`. `FLAC` stream\nencoding supports 16-bit and 24-bit samples, h
owever, not all fields in\n`STREAMINFO` are supported.", |
358 "8-bit samples that compand 14-bit audio samples using G
.711 PCMU/mu-law.", | 478 "8-bit samples that compand 14-bit audio samples using G
.711 PCMU/mu-law.", |
359 "Adaptive Multi-Rate Narrowband codec. `sample_rate_hert
z` must be 8000.", | 479 "Adaptive Multi-Rate Narrowband codec. `sample_rate_hert
z` must be 8000.", |
360 "Adaptive Multi-Rate Wideband codec. `sample_rate_hertz`
must be 16000.", | 480 "Adaptive Multi-Rate Wideband codec. `sample_rate_hertz`
must be 16000.", |
361 "Opus encoded audio frames in Ogg container\n([OggOpus](
https://wiki.xiph.org/OggOpus)).\n`sample_rate_hertz` must be 16000.", | 481 "Opus encoded audio frames in Ogg container\n([OggOpus](
https://wiki.xiph.org/OggOpus)).\n`sample_rate_hertz` must be 16000.", |
362 "Although the use of lossy encodings is not recommended,
if a very low\nbitrate encoding is required, `OGG_OPUS` is highly preferred ove
r\nSpeex encoding. The [Speex](https://speex.org/) encoding supported by\nCloud
Speech API has a header byte in each block, as in MIME type\n`audio/x-speex-wit
h-header-byte`.\nIt is a variant of the RTP Speex encoding defined in\n[RFC 5574
](https://tools.ietf.org/html/rfc5574).\nThe stream is a sequence of blocks, one
block per RTP packet. Each block\nstarts with a byte containing the length of t
he block, in bytes, followed\nby one or more frames of Speex data, padded to an
integral number of\nbytes (octets) as specified in RFC 5574. In other words, eac
h RTP header\nis replaced with a single byte containing the block length. Only S
peex\nwideband is supported. `sample_rate_hertz` must be 16000." | 482 "Although the use of lossy encodings is not recommended,
if a very low\nbitrate encoding is required, `OGG_OPUS` is highly preferred ove
r\nSpeex encoding. The [Speex](https://speex.org/) encoding supported by\nCloud
Speech API has a header byte in each block, as in MIME type\n`audio/x-speex-wit
h-header-byte`.\nIt is a variant of the RTP Speex encoding defined in\n[RFC 5574
](https://tools.ietf.org/html/rfc5574).\nThe stream is a sequence of blocks, one
block per RTP packet. Each block\nstarts with a byte containing the length of t
he block, in bytes, followed\nby one or more frames of Speex data, padded to an
integral number of\nbytes (octets) as specified in RFC 5574. In other words, eac
h RTP header\nis replaced with a single byte containing the block length. Only S
peex\nwideband is supported. `sample_rate_hertz` must be 16000." |
363 ], | 483 ], |
364 "type": "string" | 484 "type": "string" |
365 }, | 485 }, |
366 "profanityFilter": { | 486 "profanityFilter": { |
367 "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.", | 487 "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.", |
368 "type": "boolean" | 488 "type": "boolean" |
369 }, | |
370 "speechContexts": { | |
371 "description": "*Optional* A means to provide context to ass
ist the speech recognition.", | |
372 "items": { | |
373 "$ref": "SpeechContext" | |
374 }, | |
375 "type": "array" | |
376 }, | |
377 "sampleRateHertz": { | |
378 "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", | |
380 "type": "integer" | |
381 } | 489 } |
382 }, | 490 }, |
383 "type": "object" | 491 "type": "object" |
384 }, | 492 }, |
385 "Status": { | 493 "Status": { |
386 "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` that can be used for common error conditions.\n\n# Lang
uage 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` mess
age is\nexposed in different client libraries and different wire protocols, it c
an be\nmapped differently. For example, it will likely be mapped to some excepti
ons\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\nenvironm
ents, either with or without APIs, to provide a\nconsistent developer experience
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 m
ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a
client uses batch request and batch response, the\n `Status` message should
be used directly inside batch response, one for\n each error sub-response.\n\
n- Asynchronous operations. If an API call embeds asynchronous operation\n re
sults in its response, the status of those operations should be\n represented
directly using the `Status` message.\n\n- Logging. If some API errors are store
d in logs, the message `Status` could\n be used directly after any stripping
needed for security/privacy reasons.", | 494 "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` that can be used for common error conditions.\n\n# Lang
uage 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` mess
age is\nexposed in different client libraries and different wire protocols, it c
an be\nmapped differently. For example, it will likely be mapped to some excepti
ons\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\nenvironm
ents, either with or without APIs, to provide a\nconsistent developer experience
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 m
ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a
client uses batch request and batch response, the\n `Status` message should
be used directly inside batch response, one for\n each error sub-response.\n\
n- Asynchronous operations. If an API call embeds asynchronous operation\n re
sults in its response, the status of those operations should be\n represented
directly using the `Status` message.\n\n- Logging. If some API errors are store
d in logs, the message `Status` could\n be used directly after any stripping
needed for security/privacy reasons.", |
387 "id": "Status", | 495 "id": "Status", |
388 "properties": { | 496 "properties": { |
389 "code": { | 497 "code": { |
390 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", | 498 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
(...skipping 16 matching lines...) Expand all Loading... |
407 "type": "array" | 515 "type": "array" |
408 } | 516 } |
409 }, | 517 }, |
410 "type": "object" | 518 "type": "object" |
411 }, | 519 }, |
412 "Empty": { | 520 "Empty": { |
413 "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 `{}`.", | 521 "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 `{}`.", |
414 "id": "Empty", | 522 "id": "Empty", |
415 "properties": {}, | 523 "properties": {}, |
416 "type": "object" | 524 "type": "object" |
417 }, | |
418 "RecognizeRequest": { | |
419 "description": "The top-level message sent by the client for the `Re
cognize` method.", | |
420 "id": "RecognizeRequest", | |
421 "properties": { | |
422 "config": { | |
423 "$ref": "RecognitionConfig", | |
424 "description": "*Required* Provides information to the recog
nizer that specifies how to\nprocess the request." | |
425 }, | |
426 "audio": { | |
427 "$ref": "RecognitionAudio", | |
428 "description": "*Required* The audio data to be recognized." | |
429 } | |
430 }, | |
431 "type": "object" | |
432 }, | |
433 "SpeechContext": { | |
434 "description": "Provides \"hints\" to the speech recognizer to favor
specific words and phrases\nin the results.", | |
435 "id": "SpeechContext", | |
436 "properties": { | |
437 "phrases": { | |
438 "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).", | |
439 "items": { | |
440 "type": "string" | |
441 }, | |
442 "type": "array" | |
443 } | |
444 }, | |
445 "type": "object" | |
446 }, | |
447 "ListOperationsResponse": { | |
448 "description": "The response message for Operations.ListOperations."
, | |
449 "id": "ListOperationsResponse", | |
450 "properties": { | |
451 "operations": { | |
452 "description": "A list of operations that matches the specif
ied filter in the request.", | |
453 "items": { | |
454 "$ref": "Operation" | |
455 }, | |
456 "type": "array" | |
457 }, | |
458 "nextPageToken": { | |
459 "description": "The standard List next-page token.", | |
460 "type": "string" | |
461 } | |
462 }, | |
463 "type": "object" | |
464 }, | |
465 "SpeechRecognitionAlternative": { | |
466 "description": "Alternative hypotheses (a.k.a. n-best list).", | |
467 "id": "SpeechRecognitionAlternative", | |
468 "properties": { | |
469 "confidence": { | |
470 "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.", | |
471 "format": "float", | |
472 "type": "number" | |
473 }, | |
474 "transcript": { | |
475 "description": "*Output-only* Transcript text representing t
he words that the user spoke.", | |
476 "type": "string" | |
477 } | |
478 }, | |
479 "type": "object" | |
480 }, | |
481 "SpeechRecognitionResult": { | |
482 "description": "A speech recognition result corresponding to a porti
on of the audio.", | |
483 "id": "SpeechRecognitionResult", | |
484 "properties": { | |
485 "alternatives": { | |
486 "description": "*Output-only* May contain one or more recogn
ition hypotheses (up to the\nmaximum specified in `max_alternatives`).\nThese al
ternatives are ordered in terms of accuracy, with the first/top\nalternative bei
ng the most probable, as ranked by the recognizer.", | |
487 "items": { | |
488 "$ref": "SpeechRecognitionAlternative" | |
489 }, | |
490 "type": "array" | |
491 } | |
492 }, | |
493 "type": "object" | |
494 }, | |
495 "RecognitionAudio": { | |
496 "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).", | |
497 "id": "RecognitionAudio", | |
498 "properties": { | |
499 "content": { | |
500 "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.", | |
501 "format": "byte", | |
502 "type": "string" | |
503 }, | |
504 "uri": { | |
505 "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).", | |
506 "type": "string" | |
507 } | |
508 }, | |
509 "type": "object" | |
510 }, | |
511 "LongRunningRecognizeRequest": { | |
512 "description": "The top-level message sent by the client for the `Lo
ngRunningRecognize`\nmethod.", | |
513 "id": "LongRunningRecognizeRequest", | |
514 "properties": { | |
515 "config": { | |
516 "$ref": "RecognitionConfig", | |
517 "description": "*Required* Provides information to the recog
nizer that specifies how to\nprocess the request." | |
518 }, | |
519 "audio": { | |
520 "$ref": "RecognitionAudio", | |
521 "description": "*Required* The audio data to be recognized." | |
522 } | |
523 }, | |
524 "type": "object" | |
525 } | 525 } |
526 }, | 526 }, |
527 "servicePath": "", | 527 "servicePath": "", |
528 "title": "Google Cloud Speech API", | 528 "title": "Google Cloud Speech API", |
529 "version": "v1" | 529 "version": "v1" |
530 } | 530 } |
OLD | NEW |