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 \ AdvancedVoiceOptionsMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
HARM_BLOCK_THRESHOLD_UNSPECIFIED
Value: 0The harm block threshold is unspecified.
Generated from protobuf enum HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0;
BLOCK_LOW_AND_ABOVE
Value: 1Block content with a low harm probability or higher.
Generated from protobuf enum BLOCK_LOW_AND_ABOVE = 1;
BLOCK_MEDIUM_AND_ABOVE
Value: 2Block content with a medium harm probability or higher.
Generated from protobuf enum BLOCK_MEDIUM_AND_ABOVE = 2;
BLOCK_ONLY_HIGH
Value: 3Block content with a high harm probability.
Generated from protobuf enum BLOCK_ONLY_HIGH = 3;
BLOCK_NONE
Value: 4Do not block any content, regardless of its harm probability.
Generated from protobuf enum BLOCK_NONE = 4;
OFF
Value: 5Turn off the safety filter entirely.
Generated from protobuf enum OFF = 5;