Cloud Text-to-Speech V1 API - Module Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmCategory (v1.17.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Cloud Text-to-Speech V1 API module Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmCategory.
Harm categories that will block the content.
Constants
HARM_CATEGORY_UNSPECIFIED
value: 0 Default value. This value is unused.
HARM_CATEGORY_HATE_SPEECH
value: 1 Content that promotes violence or incites hatred against individuals or
groups based on certain attributes.
HARM_CATEGORY_DANGEROUS_CONTENT
value: 2 Content that promotes, facilitates, or enables dangerous activities.
HARM_CATEGORY_HARASSMENT
value: 3 Abusive, threatening, or content intended to bully, torment, or ridicule.
HARM_CATEGORY_SEXUALLY_EXPLICIT
value: 4 Content that contains sexually explicit material.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-04-03 UTC."],[],[]]