# Cloud Text-to-Speech V1 Client - Class SynthesizeLongAudioRequest (2.8.0)

2.8.0 (latest) 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.2 2.0.1 1.12.2 1.11.0 1.10.0 1.9.1 1.8.5 1.7.2 1.6.1 1.5.6 1.4.5 Reference documentation and code samples for the Cloud Text-to-Speech V1 Client class SynthesizeLongAudioRequest.

The top-level message sent by the client for the
`SynthesizeLongAudio` method.

Generated from protobuf message `google.cloud.texttospeech.v1.SynthesizeLongAudioRequest`

## Namespace

Google \\ Cloud \\ TextToSpeech \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getParent

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setParent

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getInput

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.SynthesisInput|null` |   |

### hasInput

### clearInput

### setInput

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.SynthesisInput` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAudioConfig

Required. The configuration of the synthesized audio.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.AudioConfig|null` |   |

### hasAudioConfig

### clearAudioConfig

### setAudioConfig

Required. The configuration of the synthesized audio.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.AudioConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getOutputGcsUri

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setOutputGcsUri

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getVoice

Required. The desired voice of the synthesized audio.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.VoiceSelectionParams|null` |   |

### hasVoice

### clearVoice

### setVoice

Required. The desired voice of the synthesized audio.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.VoiceSelectionParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |