Synthesizes long form text asynchronously.
HTTP request
POST https://texttospeech.googleapis.com/v1/{parent=projects/*/locations/*}:synthesizeLongAudio
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
The resource states of the request in the form of |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "input": { object ( |
| Fields | |
|---|---|
input |
Required. The Synthesizer requires either plain text or SSML as input. |
audioConfig |
Required. The configuration of the synthesized audio. |
outputGcsUri |
Required. Specifies a Cloud Storage URI for the synthesis results. Must be specified in the format: |
voice |
Required. The desired voice of the synthesized audio. |
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.