Cloud Text-to-Speech V1 API - Module Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmCategory (v1.19.0)
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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-11 UTC."],[],[]]