Index: discovery/googleapis/speech__v1.json |
diff --git a/discovery/googleapis/speech__v1.json b/discovery/googleapis/speech__v1.json |
index f04a36991e2b8f290f76cb955758f17b84b437c5..6cea6c509e641289b799ea78db042b78fcddbe4d 100644 |
--- a/discovery/googleapis/speech__v1.json |
+++ b/discovery/googleapis/speech__v1.json |
@@ -25,37 +25,6 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
- "access_token": { |
- "description": "OAuth access token.", |
- "location": "query", |
- "type": "string" |
- }, |
- "key": { |
- "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
- "location": "query", |
- "type": "string" |
- }, |
- "quotaUser": { |
- "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
- "location": "query", |
- "type": "string" |
- }, |
- "pp": { |
- "default": "true", |
- "description": "Pretty-print response.", |
- "location": "query", |
- "type": "boolean" |
- }, |
- "bearer_token": { |
- "description": "OAuth bearer token.", |
- "location": "query", |
- "type": "string" |
- }, |
- "oauth_token": { |
- "description": "OAuth 2.0 token for the current user.", |
- "location": "query", |
- "type": "string" |
- }, |
"upload_protocol": { |
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
"location": "query", |
@@ -67,13 +36,13 @@ |
"location": "query", |
"type": "boolean" |
}, |
- "uploadType": { |
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
+ "fields": { |
+ "description": "Selector specifying which fields to include in a partial response.", |
"location": "query", |
"type": "string" |
}, |
- "fields": { |
- "description": "Selector specifying which fields to include in a partial response.", |
+ "uploadType": { |
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
"location": "query", |
"type": "string" |
}, |
@@ -110,12 +79,70 @@ |
], |
"location": "query", |
"type": "string" |
+ }, |
+ "key": { |
+ "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "access_token": { |
+ "description": "OAuth access token.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "quotaUser": { |
+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pp": { |
+ "default": "true", |
+ "description": "Pretty-print response.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
+ "bearer_token": { |
+ "description": "OAuth bearer token.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "oauth_token": { |
+ "description": "OAuth 2.0 token for the current user.", |
+ "location": "query", |
+ "type": "string" |
} |
}, |
"protocol": "rest", |
"resources": { |
"operations": { |
"methods": { |
+ "cancel": { |
+ "description": "Starts asynchronous cancellation on a long-running 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 returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.", |
+ "httpMethod": "POST", |
+ "id": "speech.operations.cancel", |
+ "parameterOrder": [ |
+ "name" |
+ ], |
+ "parameters": { |
+ "name": { |
+ "description": "The name of the operation resource to be cancelled.", |
+ "location": "path", |
+ "pattern": "^[^/]+$", |
+ "required": true, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "v1/operations/{+name}:cancel", |
+ "request": { |
+ "$ref": "CancelOperationRequest" |
+ }, |
+ "response": { |
+ "$ref": "Empty" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-platform" |
+ ] |
+ }, |
"delete": { |
"description": "Deletes a long-running operation. This method 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 returns\n`google.rpc.Code.UNIMPLEMENTED`.", |
"httpMethod": "DELETE", |
@@ -141,11 +168,21 @@ |
] |
}, |
"list": { |
- "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding below allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`.", |
+ "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride 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 users must ensure the name binding\nis the parent resource, without the operations collection id.", |
"httpMethod": "GET", |
"id": "speech.operations.list", |
"parameterOrder": [], |
"parameters": { |
+ "name": { |
+ "description": "The name of the operation's parent resource.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pageToken": { |
+ "description": "The standard list page token.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"pageSize": { |
"description": "The standard list page size.", |
"format": "int32", |
@@ -156,16 +193,6 @@ |
"description": "The standard list filter.", |
"location": "query", |
"type": "string" |
- }, |
- "name": { |
- "description": "The name of the operation collection.", |
- "location": "query", |
- "type": "string" |
- }, |
- "pageToken": { |
- "description": "The standard list page token.", |
- "location": "query", |
- "type": "string" |
} |
}, |
"path": "v1/operations", |
@@ -199,33 +226,6 @@ |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform" |
] |
- }, |
- "cancel": { |
- "description": "Starts asynchronous cancellation on a long-running 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 returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.", |
- "httpMethod": "POST", |
- "id": "speech.operations.cancel", |
- "parameterOrder": [ |
- "name" |
- ], |
- "parameters": { |
- "name": { |
- "description": "The name of the operation resource to be cancelled.", |
- "location": "path", |
- "pattern": "^[^/]+$", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "v1/operations/{+name}:cancel", |
- "request": { |
- "$ref": "CancelOperationRequest" |
- }, |
- "response": { |
- "$ref": "Empty" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform" |
- ] |
} |
} |
}, |
@@ -268,9 +268,117 @@ |
} |
} |
}, |
- "revision": "20170516", |
+ "revision": "20170609", |
"rootUrl": "https://speech.googleapis.com/", |
"schemas": { |
+ "RecognizeRequest": { |
+ "description": "The top-level message sent by the client for the `Recognize` method.", |
+ "id": "RecognizeRequest", |
+ "properties": { |
+ "config": { |
+ "$ref": "RecognitionConfig", |
+ "description": "*Required* Provides information to the recognizer that specifies how to\nprocess the request." |
+ }, |
+ "audio": { |
+ "$ref": "RecognitionAudio", |
+ "description": "*Required* The audio data to be recognized." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "SpeechContext": { |
+ "description": "Provides \"hints\" to the speech recognizer to favor specific words and phrases\nin the results.", |
+ "id": "SpeechContext", |
+ "properties": { |
+ "phrases": { |
+ "description": "*Optional* A list of strings containing words and phrases \"hints\" so that\nthe speech recognition is more likely to recognize them. This can be used\nto improve the accuracy for specific words and phrases, for example, if\nspecific commands are typically spoken by the user. This can also be used\nto add additional words to the vocabulary of the recognizer. See\n[usage limits](https://cloud.google.com/speech/limits#content).", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "ListOperationsResponse": { |
+ "description": "The response message for Operations.ListOperations.", |
+ "id": "ListOperationsResponse", |
+ "properties": { |
+ "nextPageToken": { |
+ "description": "The standard List next-page token.", |
+ "type": "string" |
+ }, |
+ "operations": { |
+ "description": "A list of operations that matches the specified filter in the request.", |
+ "items": { |
+ "$ref": "Operation" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "SpeechRecognitionAlternative": { |
+ "description": "Alternative hypotheses (a.k.a. n-best list).", |
+ "id": "SpeechRecognitionAlternative", |
+ "properties": { |
+ "confidence": { |
+ "description": "*Output-only* The confidence estimate between 0.0 and 1.0. A higher number\nindicates an estimated greater likelihood that the 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 on the\n`confidence` field as it is not guaranteed to be accurate, or even set, in\nany of the results.\nThe default of 0.0 is a sentinel value indicating `confidence` was not set.", |
+ "format": "float", |
+ "type": "number" |
+ }, |
+ "transcript": { |
+ "description": "*Output-only* Transcript text representing the words that the user spoke.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "SpeechRecognitionResult": { |
+ "description": "A speech recognition result corresponding to a portion of the audio.", |
+ "id": "SpeechRecognitionResult", |
+ "properties": { |
+ "alternatives": { |
+ "description": "*Output-only* May contain one or more recognition hypotheses (up to the\nmaximum specified in `max_alternatives`).\nThese alternatives are ordered in terms of accuracy, with the first/top\nalternative being the most probable, as ranked by the recognizer.", |
+ "items": { |
+ "$ref": "SpeechRecognitionAlternative" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "RecognitionAudio": { |
+ "description": "Contains audio data in the encoding specified in the `RecognitionConfig`.\nEither `content` or `uri` must be supplied. Supplying both or neither\nreturns google.rpc.Code.INVALID_ARGUMENT. See\n[audio limits](https://cloud.google.com/speech/limits#content).", |
+ "id": "RecognitionAudio", |
+ "properties": { |
+ "uri": { |
+ "description": "URI that points to a file that contains audio 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/storage/docs/reference-uris).", |
+ "type": "string" |
+ }, |
+ "content": { |
+ "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.", |
+ "format": "byte", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "LongRunningRecognizeRequest": { |
+ "description": "The top-level message sent by the client for the `LongRunningRecognize`\nmethod.", |
+ "id": "LongRunningRecognizeRequest", |
+ "properties": { |
+ "config": { |
+ "$ref": "RecognitionConfig", |
+ "description": "*Required* Provides information to the recognizer that specifies how to\nprocess the request." |
+ }, |
+ "audio": { |
+ "$ref": "RecognitionAudio", |
+ "description": "*Required* The audio data to be recognized." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
"RecognizeResponse": { |
"description": "The only message returned to the client by the `Recognize` method. It\ncontains the result as zero or more sequential `SpeechRecognitionResult`\nmessages.", |
"id": "RecognizeResponse", |
@@ -295,6 +403,18 @@ |
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.", |
"id": "Operation", |
"properties": { |
+ "metadata": { |
+ "additionalProperties": { |
+ "description": "Properties of the object. Contains field @type with type URL.", |
+ "type": "any" |
+ }, |
+ "description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.", |
+ "type": "object" |
+ }, |
+ "done": { |
+ "description": "If the value is `false`, it means the operation is still in progress.\nIf true, the operation is completed, and either `error` or `response` is\navailable.", |
+ "type": "boolean" |
+ }, |
"response": { |
"additionalProperties": { |
"description": "Properties of the object. Contains field @type with type URL.", |
@@ -310,18 +430,6 @@ |
"error": { |
"$ref": "Status", |
"description": "The error result of the operation in case of failure or cancellation." |
- }, |
- "metadata": { |
- "additionalProperties": { |
- "description": "Properties of the object. Contains field @type with type URL.", |
- "type": "any" |
- }, |
- "description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.", |
- "type": "object" |
- }, |
- "done": { |
- "description": "If the value is `false`, it means the operation is still in progress.\nIf true, the operation is completed, and either `error` or `response` is\navailable.", |
- "type": "boolean" |
} |
}, |
"type": "object" |
@@ -330,6 +438,11 @@ |
"description": "Provides information to the recognizer that specifies how to process the\nrequest.", |
"id": "RecognitionConfig", |
"properties": { |
+ "sampleRateHertz": { |
+ "description": "*Required* Sample rate in Hertz of the audio data sent in all\n`RecognitionAudio` messages. Valid values are: 8000-48000.\n16000 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 source (instead of re-sampling).", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
"maxAlternatives": { |
"description": "*Optional* Maximum number of recognition hypotheses to be returned.\nSpecifically, the maximum number of `SpeechRecognitionAlternative` messages\nwithin each `SpeechRecognitionResult`.\nThe server may return 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.", |
"format": "int32", |
@@ -339,6 +452,13 @@ |
"description": "*Required* The language of the supplied audio as a\n[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.\nExample: \"en-US\".\nSee [Language Support](https://cloud.google.com/speech/docs/languages)\nfor a list of the currently supported language codes.", |
"type": "string" |
}, |
+ "speechContexts": { |
+ "description": "*Optional* A means to provide context to assist the speech recognition.", |
+ "items": { |
+ "$ref": "SpeechContext" |
+ }, |
+ "type": "array" |
+ }, |
"encoding": { |
"description": "*Required* Encoding of audio data sent in all `RecognitionAudio` messages.", |
"enum": [ |
@@ -366,18 +486,6 @@ |
"profanityFilter": { |
"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.", |
"type": "boolean" |
- }, |
- "speechContexts": { |
- "description": "*Optional* A means to provide context to assist the speech recognition.", |
- "items": { |
- "$ref": "SpeechContext" |
- }, |
- "type": "array" |
- }, |
- "sampleRateHertz": { |
- "description": "*Required* Sample rate in Hertz of the audio data sent in all\n`RecognitionAudio` messages. Valid values are: 8000-48000.\n16000 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 source (instead of re-sampling).", |
- "format": "int32", |
- "type": "integer" |
} |
}, |
"type": "object" |
@@ -414,114 +522,6 @@ |
"id": "Empty", |
"properties": {}, |
"type": "object" |
- }, |
- "RecognizeRequest": { |
- "description": "The top-level message sent by the client for the `Recognize` method.", |
- "id": "RecognizeRequest", |
- "properties": { |
- "config": { |
- "$ref": "RecognitionConfig", |
- "description": "*Required* Provides information to the recognizer that specifies how to\nprocess the request." |
- }, |
- "audio": { |
- "$ref": "RecognitionAudio", |
- "description": "*Required* The audio data to be recognized." |
- } |
- }, |
- "type": "object" |
- }, |
- "SpeechContext": { |
- "description": "Provides \"hints\" to the speech recognizer to favor specific words and phrases\nin the results.", |
- "id": "SpeechContext", |
- "properties": { |
- "phrases": { |
- "description": "*Optional* A list of strings containing words and phrases \"hints\" so that\nthe speech recognition is more likely to recognize them. This can be used\nto improve the accuracy for specific words and phrases, for example, if\nspecific commands are typically spoken by the user. This can also be used\nto add additional words to the vocabulary of the recognizer. See\n[usage limits](https://cloud.google.com/speech/limits#content).", |
- "items": { |
- "type": "string" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "ListOperationsResponse": { |
- "description": "The response message for Operations.ListOperations.", |
- "id": "ListOperationsResponse", |
- "properties": { |
- "operations": { |
- "description": "A list of operations that matches the specified filter in the request.", |
- "items": { |
- "$ref": "Operation" |
- }, |
- "type": "array" |
- }, |
- "nextPageToken": { |
- "description": "The standard List next-page token.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "SpeechRecognitionAlternative": { |
- "description": "Alternative hypotheses (a.k.a. n-best list).", |
- "id": "SpeechRecognitionAlternative", |
- "properties": { |
- "confidence": { |
- "description": "*Output-only* The confidence estimate between 0.0 and 1.0. A higher number\nindicates an estimated greater likelihood that the 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 on the\n`confidence` field as it is not guaranteed to be accurate, or even set, in\nany of the results.\nThe default of 0.0 is a sentinel value indicating `confidence` was not set.", |
- "format": "float", |
- "type": "number" |
- }, |
- "transcript": { |
- "description": "*Output-only* Transcript text representing the words that the user spoke.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "SpeechRecognitionResult": { |
- "description": "A speech recognition result corresponding to a portion of the audio.", |
- "id": "SpeechRecognitionResult", |
- "properties": { |
- "alternatives": { |
- "description": "*Output-only* May contain one or more recognition hypotheses (up to the\nmaximum specified in `max_alternatives`).\nThese alternatives are ordered in terms of accuracy, with the first/top\nalternative being the most probable, as ranked by the recognizer.", |
- "items": { |
- "$ref": "SpeechRecognitionAlternative" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "RecognitionAudio": { |
- "description": "Contains audio data in the encoding specified in the `RecognitionConfig`.\nEither `content` or `uri` must be supplied. Supplying both or neither\nreturns google.rpc.Code.INVALID_ARGUMENT. See\n[audio limits](https://cloud.google.com/speech/limits#content).", |
- "id": "RecognitionAudio", |
- "properties": { |
- "content": { |
- "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.", |
- "format": "byte", |
- "type": "string" |
- }, |
- "uri": { |
- "description": "URI that points to a file that contains audio 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/storage/docs/reference-uris).", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "LongRunningRecognizeRequest": { |
- "description": "The top-level message sent by the client for the `LongRunningRecognize`\nmethod.", |
- "id": "LongRunningRecognizeRequest", |
- "properties": { |
- "config": { |
- "$ref": "RecognitionConfig", |
- "description": "*Required* Provides information to the recognizer that specifies how to\nprocess the request." |
- }, |
- "audio": { |
- "$ref": "RecognitionAudio", |
- "description": "*Required* The audio data to be recognized." |
- } |
- }, |
- "type": "object" |
} |
}, |
"servicePath": "", |