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

Used for advanced voice options.

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

## Namespace

Google \\ Cloud \\ TextToSpeech \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ low_latency_journey_synthesis` | `bool` Only for Journey voices. If false, the synthesis is context aware and has a higher latency. |
| `↳ relax_safety_filters` | `bool` Optional. Input only. Deprecated, use safety_settings instead. If true, relaxes safety filters for Gemini TTS. |
| `↳ safety_settings` | `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.AdvancedVoiceOptions.SafetySettings` Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the safety setting will be blocked if the harm probability is above the threshold. Otherwise, the safety filter will be disabled by default. |
| `↳ enable_textnorm` | `bool` Optional. If true, textnorm will be applied to text input. This feature is enabled by default. Only applies for Gemini TTS. |

### getLowLatencyJourneySynthesis

Only for Journey voices. If false, the synthesis is context aware
and has a higher latency.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasLowLatencyJourneySynthesis

### clearLowLatencyJourneySynthesis

### setLowLatencyJourneySynthesis

Only for Journey voices. If false, the synthesis is context aware
and has a higher latency.

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

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

### getRelaxSafetyFilters

Optional. Input only. Deprecated, use safety_settings instead.

If true, relaxes safety filters for Gemini TTS.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setRelaxSafetyFilters

Optional. Input only. Deprecated, use safety_settings instead.

If true, relaxes safety filters for Gemini TTS.

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

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

### getSafetySettings

Optional. Input only. This applies to Gemini TTS only. If set, the category
specified in the safety setting will be blocked if the harm probability is
above the threshold. Otherwise, the safety filter will be disabled by
default.

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

### hasSafetySettings

### clearSafetySettings

### setSafetySettings

Optional. Input only. This applies to Gemini TTS only. If set, the category
specified in the safety setting will be blocked if the harm probability is
above the threshold. Otherwise, the safety filter will be disabled by
default.

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

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

### getEnableTextnorm

Optional. If true, textnorm will be applied to text input. This feature is
enabled by default. Only applies for Gemini TTS.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasEnableTextnorm

### clearEnableTextnorm

### setEnableTextnorm

Optional. If true, textnorm will be applied to text input. This feature is
enabled by default. Only applies for Gemini TTS.

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

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