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

Harm categories that will block the content.

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

## Namespace

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

## Methods

### static::name

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

### static::value

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

## Constants

### HARM_CATEGORY_UNSPECIFIED

    Value: 0

Default value. This value is unused.

Generated from protobuf enum `HARM_CATEGORY_UNSPECIFIED = 0;`

### HARM_CATEGORY_HATE_SPEECH

    Value: 1

Content that promotes violence or incites hatred against individuals or
groups based on certain attributes.

Generated from protobuf enum `HARM_CATEGORY_HATE_SPEECH = 1;`

### HARM_CATEGORY_DANGEROUS_CONTENT

    Value: 2

Content that promotes, facilitates, or enables dangerous activities.

Generated from protobuf enum `HARM_CATEGORY_DANGEROUS_CONTENT = 2;`

### HARM_CATEGORY_HARASSMENT

    Value: 3

Abusive, threatening, or content intended to bully, torment, or ridicule.

Generated from protobuf enum `HARM_CATEGORY_HARASSMENT = 3;`

### HARM_CATEGORY_SEXUALLY_EXPLICIT

    Value: 4

Content that contains sexually explicit material.

Generated from protobuf enum `HARM_CATEGORY_SEXUALLY_EXPLICIT = 4;`