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

Harm block thresholds for the safety settings.

Protobuf type `google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmBlockThreshold`

## Namespace

Google \\ Cloud \\ TextToSpeech \\ V1 \\ AdvancedVoiceOptions

## Methods

### static::name

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

### static::value

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

## Constants

### HARM_BLOCK_THRESHOLD_UNSPECIFIED

    Value: 0

The harm block threshold is unspecified.

Generated from protobuf enum `HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0;`

### BLOCK_LOW_AND_ABOVE

    Value: 1

Block content with a low harm probability or higher.

Generated from protobuf enum `BLOCK_LOW_AND_ABOVE = 1;`

### BLOCK_MEDIUM_AND_ABOVE

    Value: 2

Block content with a medium harm probability or higher.

Generated from protobuf enum `BLOCK_MEDIUM_AND_ABOVE = 2;`

### BLOCK_ONLY_HIGH

    Value: 3

Block content with a high harm probability.

Generated from protobuf enum `BLOCK_ONLY_HIGH = 3;`

### BLOCK_NONE

    Value: 4

Do not block any content, regardless of its harm probability.

Generated from protobuf enum `BLOCK_NONE = 4;`

### OFF

    Value: 5

Turn off the safety filter entirely.

Generated from protobuf enum `OFF = 5;`