Cloud Speech-to-Text API

Converts audio to text by applying powerful neural network models.


To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoints and all URIs below are relative to these service endpoints:


REST Resource: v2.projects.locations

get GET /v2/{name=projects/*/locations/*}
Gets information about a location.
list GET /v2/{name=projects/*}/locations
Lists information about the supported locations for this service.

REST Resource: v2.projects.locations.config

get GET /v2/{name=projects/*/locations/*/config}
Returns the requested Config.
update PATCH /v2/{*/locations/*/config}
Updates the Config.

REST Resource: v2.projects.locations.customClasses

create POST /v2/{parent=projects/*/locations/*}/customClasses
Creates a CustomClass.
delete DELETE /v2/{name=projects/*/locations/*/customClasses/*}
Deletes the CustomClass.
get GET /v2/{name=projects/*/locations/*/customClasses/*}
Returns the requested CustomClass.
list GET /v2/{parent=projects/*/locations/*}/customClasses
Lists CustomClasses.
patch PATCH /v2/{*/locations/*/customClasses/*}
Updates the CustomClass.
undelete POST /v2/{name=projects/*/locations/*/customClasses/*}:undelete
Undeletes the CustomClass.

REST Resource: v2.projects.locations.operations

cancel POST /v2/{name=projects/*/locations/*/operations/*}:cancel
Starts asynchronous cancellation on a long-running operation.
delete DELETE /v2/{name=projects/*/locations/*/operations/*}
Deletes a long-running operation.
get GET /v2/{name=projects/*/locations/*/operations/*}
Gets the latest state of a long-running operation.
list GET /v2/{name=projects/*/locations/*}/operations
Lists operations that match the specified filter in the request.

REST Resource: v2.projects.locations.phraseSets

create POST /v2/{parent=projects/*/locations/*}/phraseSets
Creates a PhraseSet.
delete DELETE /v2/{name=projects/*/locations/*/phraseSets/*}
Deletes the PhraseSet.
get GET /v2/{name=projects/*/locations/*/phraseSets/*}
Returns the requested PhraseSet.
list GET /v2/{parent=projects/*/locations/*}/phraseSets
Lists PhraseSets.
patch PATCH /v2/{*/locations/*/phraseSets/*}
Updates the PhraseSet.
undelete POST /v2/{name=projects/*/locations/*/phraseSets/*}:undelete
Undeletes the PhraseSet.

REST Resource: v2.projects.locations.recognizers

batchRecognize POST /v2/{recognizer=projects/*/locations/*/recognizers/*}:batchRecognize
Performs batch asynchronous speech recognition: send a request with N audio files and receive a long running operation that can be polled to see when the transcriptions are finished.
create POST /v2/{parent=projects/*/locations/*}/recognizers
Creates a Recognizer.
delete DELETE /v2/{name=projects/*/locations/*/recognizers/*}
Deletes the Recognizer.
get GET /v2/{name=projects/*/locations/*/recognizers/*}
Returns the requested Recognizer.
list GET /v2/{parent=projects/*/locations/*}/recognizers
Lists Recognizers.
patch PATCH /v2/{*/locations/*/recognizers/*}
Updates the Recognizer.
recognize POST /v2/{recognizer=projects/*/locations/*/recognizers/*}:recognize
Performs synchronous Speech recognition: receive results after all audio has been sent and processed.
undelete POST /v2/{name=projects/*/locations/*/recognizers/*}:undelete
Undeletes the Recognizer.