Index: discovery/googleapis_beta/speech__v1beta1.json |
diff --git a/discovery/googleapis_beta/speech__v1beta1.json b/discovery/googleapis_beta/speech__v1beta1.json |
index ec767c604765e41fedc740d673e361aecfbcf765..6713d39e7f3678154ff411a170f03841ac560287 100644 |
--- a/discovery/googleapis_beta/speech__v1beta1.json |
+++ b/discovery/googleapis_beta/speech__v1beta1.json |
@@ -24,8 +24,8 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
- "access_token": { |
- "description": "OAuth access token.", |
+ "upload_protocol": { |
+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
"location": "query", |
"type": "string" |
}, |
@@ -35,24 +35,31 @@ |
"location": "query", |
"type": "boolean" |
}, |
- "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.", |
+ "uploadType": { |
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
"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.", |
+ "fields": { |
+ "description": "Selector specifying which fields to include in a partial response.", |
"location": "query", |
"type": "string" |
}, |
- "pp": { |
- "default": "true", |
- "description": "Pretty-print response.", |
+ "$.xgafv": { |
+ "description": "V1 error format.", |
+ "enum": [ |
+ "1", |
+ "2" |
+ ], |
+ "enumDescriptions": [ |
+ "v1 error format", |
+ "v2 error format" |
+ ], |
"location": "query", |
- "type": "boolean" |
+ "type": "string" |
}, |
- "fields": { |
- "description": "Selector specifying which fields to include in a partial response.", |
+ "callback": { |
+ "description": "JSONP", |
"location": "query", |
"type": "string" |
}, |
@@ -72,66 +79,52 @@ |
"location": "query", |
"type": "string" |
}, |
- "$.xgafv": { |
- "description": "V1 error format.", |
- "enum": [ |
- "1", |
- "2" |
- ], |
- "enumDescriptions": [ |
- "v1 error format", |
- "v2 error format" |
- ], |
+ "access_token": { |
+ "description": "OAuth access token.", |
"location": "query", |
"type": "string" |
}, |
- "callback": { |
- "description": "JSONP", |
+ "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" |
}, |
- "oauth_token": { |
- "description": "OAuth 2.0 token for the current user.", |
+ "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" |
}, |
- "uploadType": { |
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
+ "pp": { |
+ "default": "true", |
+ "description": "Pretty-print response.", |
"location": "query", |
- "type": "string" |
+ "type": "boolean" |
}, |
- "bearer_token": { |
- "description": "OAuth bearer token.", |
+ "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\").", |
+ "bearer_token": { |
+ "description": "OAuth bearer token.", |
"location": "query", |
"type": "string" |
} |
}, |
"protocol": "rest", |
"resources": { |
- "operations": { |
+ "speech": { |
"methods": { |
- "get": { |
- "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", |
- "httpMethod": "GET", |
- "id": "speech.operations.get", |
- "parameterOrder": [ |
- "name" |
- ], |
- "parameters": { |
- "name": { |
- "description": "The name of the operation resource.", |
- "location": "path", |
- "pattern": "^[^/]+$", |
- "required": true, |
- "type": "string" |
- } |
+ "asyncrecognize": { |
+ "description": "Performs asynchronous speech recognition: receive results via the\n[google.longrunning.Operations]\n(/speech/reference/rest/v1beta1/operations#Operation)\ninterface. Returns either an\n`Operation.error` or an `Operation.response` which contains\nan `AsyncRecognizeResponse` message.", |
+ "httpMethod": "POST", |
+ "id": "speech.speech.asyncrecognize", |
+ "parameterOrder": [], |
+ "parameters": {}, |
+ "path": "v1beta1/speech:asyncrecognize", |
+ "request": { |
+ "$ref": "AsyncRecognizeRequest" |
}, |
- "path": "v1beta1/operations/{+name}", |
"response": { |
"$ref": "Operation" |
}, |
@@ -139,12 +132,43 @@ |
"https://www.googleapis.com/auth/cloud-platform" |
] |
}, |
+ "syncrecognize": { |
+ "description": "Performs synchronous speech recognition: receive results after all audio\nhas been sent and processed.", |
+ "httpMethod": "POST", |
+ "id": "speech.speech.syncrecognize", |
+ "parameterOrder": [], |
+ "parameters": {}, |
+ "path": "v1beta1/speech:syncrecognize", |
+ "request": { |
+ "$ref": "SyncRecognizeRequest" |
+ }, |
+ "response": { |
+ "$ref": "SyncRecognizeResponse" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-platform" |
+ ] |
+ } |
+ } |
+ }, |
+ "operations": { |
+ "methods": { |
"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`.", |
"httpMethod": "GET", |
"id": "speech.operations.list", |
"parameterOrder": [], |
"parameters": { |
+ "name": { |
+ "description": "The name of the operation collection.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pageToken": { |
+ "description": "The standard list page token.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"pageSize": { |
"description": "The standard list page size.", |
"format": "int32", |
@@ -155,16 +179,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": "v1beta1/operations", |
@@ -175,16 +189,16 @@ |
"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", |
- "id": "speech.operations.delete", |
+ "get": { |
+ "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", |
+ "httpMethod": "GET", |
+ "id": "speech.operations.get", |
"parameterOrder": [ |
"name" |
], |
"parameters": { |
"name": { |
- "description": "The name of the operation resource to be deleted.", |
+ "description": "The name of the operation resource.", |
"location": "path", |
"pattern": "^[^/]+$", |
"required": true, |
@@ -193,7 +207,7 @@ |
}, |
"path": "v1beta1/operations/{+name}", |
"response": { |
- "$ref": "Empty" |
+ "$ref": "Operation" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform" |
@@ -216,49 +230,32 @@ |
} |
}, |
"path": "v1beta1/operations/{+name}:cancel", |
- "request": { |
- "$ref": "CancelOperationRequest" |
- }, |
"response": { |
"$ref": "Empty" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform" |
] |
- } |
- } |
- }, |
- "speech": { |
- "methods": { |
- "syncrecognize": { |
- "description": "Performs synchronous speech recognition: receive results after all audio\nhas been sent and processed.", |
- "httpMethod": "POST", |
- "id": "speech.speech.syncrecognize", |
- "parameterOrder": [], |
- "parameters": {}, |
- "path": "v1beta1/speech:syncrecognize", |
- "request": { |
- "$ref": "SyncRecognizeRequest" |
- }, |
- "response": { |
- "$ref": "SyncRecognizeResponse" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform" |
- ] |
}, |
- "asyncrecognize": { |
- "description": "Performs asynchronous speech recognition: receive results via the\n[google.longrunning.Operations]\n(/speech/reference/rest/v1beta1/operations#Operation)\ninterface. Returns either an\n`Operation.error` or an `Operation.response` which contains\nan `AsyncRecognizeResponse` message.", |
- "httpMethod": "POST", |
- "id": "speech.speech.asyncrecognize", |
- "parameterOrder": [], |
- "parameters": {}, |
- "path": "v1beta1/speech:asyncrecognize", |
- "request": { |
- "$ref": "AsyncRecognizeRequest" |
+ "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", |
+ "id": "speech.operations.delete", |
+ "parameterOrder": [ |
+ "name" |
+ ], |
+ "parameters": { |
+ "name": { |
+ "description": "The name of the operation resource to be deleted.", |
+ "location": "path", |
+ "pattern": "^[^/]+$", |
+ "required": true, |
+ "type": "string" |
+ } |
}, |
+ "path": "v1beta1/operations/{+name}", |
"response": { |
- "$ref": "Operation" |
+ "$ref": "Empty" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform" |
@@ -267,7 +264,7 @@ |
} |
} |
}, |
- "revision": "20170118", |
+ "revision": "20170209", |
"rootUrl": "https://speech.googleapis.com/", |
"schemas": { |
"Status": { |
@@ -279,6 +276,10 @@ |
"format": "int32", |
"type": "integer" |
}, |
+ "message": { |
+ "description": "A developer-facing error message, which should 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.", |
+ "type": "string" |
+ }, |
"details": { |
"description": "A list of messages that carry the error details. There will be a\ncommon set of message types for APIs to use.", |
"items": { |
@@ -289,10 +290,88 @@ |
"type": "object" |
}, |
"type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "SyncRecognizeResponse": { |
+ "description": "The only message returned to the client by `SyncRecognize`. method. It\ncontains the result as zero or more sequential `SpeechRecognitionResult`\nmessages.", |
+ "id": "SyncRecognizeResponse", |
+ "properties": { |
+ "results": { |
+ "description": "*Output-only* Sequential list of transcription results corresponding to\nsequential portions of audio.", |
+ "items": { |
+ "$ref": "SpeechRecognitionResult" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "Empty": { |
+ "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 it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
+ "id": "Empty", |
+ "properties": {}, |
+ "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" |
}, |
- "message": { |
- "description": "A developer-facing error message, which should 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.", |
+ "transcript": { |
+ "description": "*Output-only* Transcript text representing the words that the user spoke.", |
+ "type": "string" |
+ } |
+ }, |
+ "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" |
+ }, |
+ "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`).", |
+ "items": { |
+ "$ref": "SpeechRecognitionAlternative" |
+ }, |
+ "type": "array" |
} |
}, |
"type": "object" |
@@ -313,26 +392,25 @@ |
}, |
"type": "object" |
}, |
+ "AsyncRecognizeRequest": { |
+ "description": "The top-level message sent by the client for the `AsyncRecognize` method.", |
+ "id": "AsyncRecognizeRequest", |
+ "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" |
+ }, |
"Operation": { |
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.", |
"id": "Operation", |
"properties": { |
- "error": { |
- "$ref": "Status", |
- "description": "The error result of the operation in case of failure or cancellation." |
- }, |
- "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" |
- }, |
- "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" |
- }, |
"response": { |
"additionalProperties": { |
"description": "Properties of the object. Contains field @type with type URL.", |
@@ -344,51 +422,50 @@ |
"name": { |
"description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should have the format of `operations/some/unique/name`.", |
"type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "SpeechRecognitionAlternative": { |
- "description": "Alternative hypotheses (a.k.a. n-best list).", |
- "id": "SpeechRecognitionAlternative", |
- "properties": { |
- "transcript": { |
- "description": "[Output-only] Transcript text representing the words that the user spoke.", |
- "type": "string" |
}, |
- "confidence": { |
- "description": "[Output-only] The confidence estimate between 0.0 and 1.0. A higher number\nmeans the system is more confident that the recognition is correct.\nThis field is typically provided only for the top hypothesis, and only for\n`is_final=true` results.\nThe default of 0.0 is a sentinel value indicating confidence was not set.", |
- "format": "float", |
- "type": "number" |
+ "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" |
}, |
- "CancelOperationRequest": { |
- "description": "The request message for Operations.CancelOperation.", |
- "id": "CancelOperationRequest", |
- "properties": {}, |
- "type": "object" |
- }, |
"RecognitionConfig": { |
- "description": "The `RecognitionConfig` message provides information to the recognizer\nthat specifies how to process the request.", |
+ "description": "Provides information to the recognizer that specifies how to process the\nrequest.", |
"id": "RecognitionConfig", |
"properties": { |
"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\n`1`. If omitted, defaults to `1`.", |
+ "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", |
+ "type": "integer" |
+ }, |
+ "sampleRate": { |
+ "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" |
}, |
"languageCode": { |
- "description": "[Optional] The language of the supplied audio as a BCP-47 language tag.\nExample: \"en-GB\" https://www.rfc-editor.org/rfc/bcp/bcp47.txt\nIf omitted, defaults to \"en-US\". See\n[Language Support](https://cloud.google.com/speech/docs/languages)\nfor a list of the currently supported language codes.", |
+ "description": "*Optional* The language of the supplied audio as a BCP-47 language tag.\nExample: \"en-GB\" https://www.rfc-editor.org/rfc/bcp/bcp47.txt\nIf omitted, defaults to \"en-US\". See\n[Language Support](https://cloud.google.com/speech/docs/languages)\nfor a list of the currently supported language codes.", |
"type": "string" |
}, |
"speechContext": { |
"$ref": "SpeechContext", |
- "description": "[Optional] A means to provide context to assist the speech recognition." |
+ "description": "*Optional* A means to provide context to assist the speech recognition." |
}, |
"encoding": { |
- "description": "[Required] Encoding of audio data sent in all `RecognitionAudio` messages.", |
+ "description": "*Required* Encoding of audio data sent in all `RecognitionAudio` messages.", |
"enum": [ |
"ENCODING_UNSPECIFIED", |
"LINEAR16", |
@@ -408,109 +485,23 @@ |
"type": "string" |
}, |
"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.", |
+ "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" |
- }, |
- "sampleRate": { |
- "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" |
}, |
"SyncRecognizeRequest": { |
- "description": "`SyncRecognizeRequest` is the top-level message sent by the client for\nthe `SyncRecognize` method.", |
+ "description": "The top-level message sent by the client for the `SyncRecognize` method.", |
"id": "SyncRecognizeRequest", |
"properties": { |
- "audio": { |
- "$ref": "RecognitionAudio", |
- "description": "[Required] The audio data to be recognized." |
- }, |
"config": { |
"$ref": "RecognitionConfig", |
- "description": "[Required] The `config` message provides information to the recognizer\nthat specifies how to process the request." |
- } |
- }, |
- "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`).", |
- "items": { |
- "$ref": "SpeechRecognitionAlternative" |
- }, |
- "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" |
+ "description": "*Required* Provides information to the recognizer that specifies how to\nprocess the request." |
}, |
- "operations": { |
- "description": "A list of operations that matches the specified filter in the request.", |
- "items": { |
- "$ref": "Operation" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "Empty": { |
- "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 it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
- "id": "Empty", |
- "properties": {}, |
- "type": "object" |
- }, |
- "SyncRecognizeResponse": { |
- "description": "`SyncRecognizeResponse` is the only message returned to the client by\n`SyncRecognize`. It contains the result as zero or more sequential\n`SpeechRecognitionResult` messages.", |
- "id": "SyncRecognizeResponse", |
- "properties": { |
- "results": { |
- "description": "[Output-only] Sequential list of transcription results corresponding to\nsequential portions of audio.", |
- "items": { |
- "$ref": "SpeechRecognitionResult" |
- }, |
- "type": "array" |
- } |
- }, |
- "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" |
- }, |
- "AsyncRecognizeRequest": { |
- "description": "`AsyncRecognizeRequest` is the top-level message sent by the client for\nthe `AsyncRecognize` method.", |
- "id": "AsyncRecognizeRequest", |
- "properties": { |
"audio": { |
"$ref": "RecognitionAudio", |
- "description": "[Required] The audio data to be recognized." |
- }, |
- "config": { |
- "$ref": "RecognitionConfig", |
- "description": "[Required] The `config` message provides information to the recognizer\nthat specifies how to process the request." |
+ "description": "*Required* The audio data to be recognized." |
} |
}, |
"type": "object" |