Cloud Text-to-Speech V1 API - Module Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmBlockThreshold (v1.17.0)

Reference documentation and code samples for the Cloud Text-to-Speech V1 API module Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmBlockThreshold.

Harm block thresholds for the safety settings.

Constants

HARM_BLOCK_THRESHOLD_UNSPECIFIED

value: 0
The harm block threshold is unspecified.

BLOCK_LOW_AND_ABOVE

value: 1
Block content with a low harm probability or higher.

BLOCK_MEDIUM_AND_ABOVE

value: 2
Block content with a medium harm probability or higher.

BLOCK_ONLY_HIGH

value: 3
Block content with a high harm probability.

BLOCK_NONE

value: 4
Do not block any content, regardless of its harm probability.

OFF

value: 5
Turn off the safety filter entirely.