# Method: projects.locations.synthesizeLongAudio

- [HTTP request](https://docs.cloud.google.com/text-to-speech/docs/reference/rest/v1beta1/projects.locations/synthesizeLongAudio#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/text-to-speech/docs/reference/rest/v1beta1/projects.locations/synthesizeLongAudio#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/text-to-speech/docs/reference/rest/v1beta1/projects.locations/synthesizeLongAudio#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/text-to-speech/docs/reference/rest/v1beta1/projects.locations/synthesizeLongAudio#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/text-to-speech/docs/reference/rest/v1beta1/projects.locations/synthesizeLongAudio#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/text-to-speech/docs/reference/rest/v1beta1/projects.locations/synthesizeLongAudio#body.aspect)
- [Try it!](https://docs.cloud.google.com/text-to-speech/docs/reference/rest/v1beta1/projects.locations/synthesizeLongAudio#try-it)

Synthesizes long form text asynchronously.

### HTTP request

`POST https://texttospeech.googleapis.com/v1beta1/{parent=projects/*/locations/*}:synthesizeLongAudio`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) 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 (`https://docs.cloud.google.com/text-to-speech/docs/reference/rest/v1beta1/SynthesisInput`) }, "audioConfig": { object (`https://docs.cloud.google.com/text-to-speech/docs/reference/rest/v1beta1/AudioConfig`) }, "outputGcsUri": string, "voice": { object (`VoiceSelectionParams`) } } ``` |

| Fields ||
|---|---|
| `input` | ``object (`https://docs.cloud.google.com/text-to-speech/docs/reference/rest/v1beta1/SynthesisInput`)`` Required. The Synthesizer requires either plain text or SSML as input. |
| `audioConfig` | ``object (`https://docs.cloud.google.com/text-to-speech/docs/reference/rest/v1beta1/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 `https://docs.cloud.google.com/text-to-speech/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation`.

### Authorization scopes

Requires the following OAuth scope:

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

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).