Method: speech.asyncrecognize

Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an Operation.error or an Operation.response which contains an AsyncRecognizeResponse message.

HTTP request

POST https://speech-to-text.googleapis.com/v1beta1/speech-to-text:asyncrecognize

The URL uses Google API HTTP annotation syntax.

Request body

The request body contains data with the following structure:

JSON representation
{
  "config": {
    object(RecognitionConfig)
  },
  "audio": {
    object(RecognitionAudio)
  },
}
Fields
config

object(RecognitionConfig)

[Required] The config message provides information to the recognizer that specifies how to process the request.

audio

object(RecognitionAudio)

[Required] The audio data to be recognized.

Response body

If successful, the response body contains an instance of Operation.

Authorization

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Auth Guide.

Try it!

Send feedback about...

Cloud Speech-to-Text API