Reference documentation and code samples for the Cloud Text-to-Speech V1 API class Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::SafetySetting.
Safety setting for a single harm category.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#category
def category() -> ::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmCategory
Returns
- (::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmCategory) — The harm category to apply the safety setting to.
#category=
def category=(value) -> ::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmCategory
Parameter
- value (::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmCategory) — The harm category to apply the safety setting to.
Returns
- (::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmCategory) — The harm category to apply the safety setting to.
#threshold
def threshold() -> ::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmBlockThreshold
Returns
- (::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmBlockThreshold) — The harm block threshold for the safety setting.
#threshold=
def threshold=(value) -> ::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmBlockThreshold
Parameter
- value (::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmBlockThreshold) — The harm block threshold for the safety setting.
Returns
- (::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmBlockThreshold) — The harm block threshold for the safety setting.