# Cloud Text-to-Speech V1 Client - Class StreamingSynthesizeConfig (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 StreamingSynthesizeConfig.

Provides configuration information for the StreamingSynthesize request.

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

## Namespace

Google \\ Cloud \\ TextToSpeech \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ voice` | `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.VoiceSelectionParams` Required. The desired voice of the synthesized audio. |
| `↳ streaming_audio_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.StreamingAudioConfig` Optional. The configuration of the synthesized audio. |
| `↳ custom_pronunciations` | `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.CustomPronunciations` Optional. The pronunciation customizations are applied to the input. If this is set, the input is synthesized using the given pronunciation customizations. The initial support is for en-us, with plans to expand to other locales in the future. Instant Clone voices aren't supported. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag. |
| `↳ advanced_voice_options` | `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.AdvancedVoiceOptions` Optional. Advanced voice options. |

### 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` |   |

### getStreamingAudioConfig

Optional. The configuration of the synthesized audio.

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

### hasStreamingAudioConfig

### clearStreamingAudioConfig

### setStreamingAudioConfig

Optional. The configuration of the synthesized audio.

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

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

### getCustomPronunciations

Optional. The pronunciation customizations are applied to the input. If
this is set, the input is synthesized using the given pronunciation
customizations.

The initial support is for en-us, with plans to expand to other locales in
the future. Instant Clone voices aren't supported.
In order to customize the pronunciation of a phrase, there must be an exact
match of the phrase in the input types. If using SSML, the phrase must not
be inside a phoneme tag.

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

### hasCustomPronunciations

### clearCustomPronunciations

### setCustomPronunciations

Optional. The pronunciation customizations are applied to the input. If
this is set, the input is synthesized using the given pronunciation
customizations.

The initial support is for en-us, with plans to expand to other locales in
the future. Instant Clone voices aren't supported.
In order to customize the pronunciation of a phrase, there must be an exact
match of the phrase in the input types. If using SSML, the phrase must not
be inside a phoneme tag.

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

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

### getAdvancedVoiceOptions

Optional. Advanced voice options.

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

### hasAdvancedVoiceOptions

### clearAdvancedVoiceOptions

### setAdvancedVoiceOptions

Optional. Advanced voice options.

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

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