Cloud Text-to-Speech V1 Client - Class HarmCategory (2.8.0)

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;