Method: speech.longrunningrecognize

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


The URL uses gRPC Transcoding syntax.

Request body

The request body contains data with the following structure:

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

object (RecognitionConfig)

Required Provides information to the recognizer that specifies how to process the request.


object (RecognitionAudio)

Required The audio data to be recognized.

Response body

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

Authorization Scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.

Try it!

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Speech-to-Text
Need help? Visit our support page.