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

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;