Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an Operation.error
or an Operation.response
which contains a LongRunningRecognizeResponse
message. For more information on asynchronous speech recognition, see the how-to.
HTTP request
POST https://speech.googleapis.com/v1p1beta1/speech:longrunningrecognize
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "config": { object ( |
Fields | |
---|---|
config |
Required. Provides information to the recognizer that specifies how to process the request. |
audio |
Required. The audio data to be recognized. |
outputConfig |
Optional. Specifies an optional destination for the recognition results. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
TranscriptOutputConfig
Specifies an optional destination for the recognition results.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
gcsUri |
Specifies a Cloud Storage URI for the recognition results. Must be specified in the format: |