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 \ AdvancedVoiceOptionsMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
HARM_CATEGORY_UNSPECIFIED
Value: 0Default value. This value is unused.
Generated from protobuf enum HARM_CATEGORY_UNSPECIFIED = 0;
HARM_CATEGORY_HATE_SPEECH
Value: 1Content 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: 2Content that promotes, facilitates, or enables dangerous activities.
Generated from protobuf enum HARM_CATEGORY_DANGEROUS_CONTENT = 2;
HARM_CATEGORY_HARASSMENT
Value: 3Abusive, threatening, or content intended to bully, torment, or ridicule.
Generated from protobuf enum HARM_CATEGORY_HARASSMENT = 3;
HARM_CATEGORY_SEXUALLY_EXPLICIT
Value: 4Content that contains sexually explicit material.
Generated from protobuf enum HARM_CATEGORY_SEXUALLY_EXPLICIT = 4;