Method: projects.locations.synthesizeLongAudio

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

string

The resource states of the request in the form of projects/*/locations/*.

Request body

The request body contains data with the following structure:

JSON representation
{
  "input": {
    object (SynthesisInput)
  },
  "audioConfig": {
    object (AudioConfig)
  },
  "outputGcsUri": string,
  "voice": {
    object (VoiceSelectionParams)
  }
}
Fields
input

object (SynthesisInput)

Required. The Synthesizer requires either plain text or SSML as input.

audioConfig

object (AudioConfig)

Required. The configuration of the synthesized audio.

outputGcsUri

string

Required. Specifies a Cloud Storage URI for the synthesis results. Must be specified in the format: gs://bucket_name/objectName, and the bucket must already exist.

voice

object (VoiceSelectionParams)

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.