class Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3VoiceSelectionParams
Description of which voice to use for speech synthesis.
Attributes
Optional. The name of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and ssml_gender. For the list of available voices, please refer to [Supported voices and languages]( cloud.google.com/text-to-speech/docs/voices). Corresponds to the JSON property `name` @return [String]
Optional. The preferred gender of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and name. Note that this is only a preference, not requirement. If a voice of the appropriate gender is not available, the synthesizer substitutes a voice with a different gender rather than failing the request. Corresponds to the JSON property `ssmlGender` @return [String]
Public Class Methods
# File lib/google/apis/dialogflow_v3/classes.rb, line 5891 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dialogflow_v3/classes.rb, line 5896 def update!(**args) @name = args[:name] if args.key?(:name) @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender) end