Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3VoiceSelectionParams
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3VoiceSelectionParams
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb
Overview
Description of which voice to use for speech synthesis.
Instance Attribute Summary collapse
-
#name ⇒ String
Optional.
-
#ssml_gender ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3VoiceSelectionParams
constructor
A new instance of GoogleCloudDialogflowCxV3VoiceSelectionParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3VoiceSelectionParams
Returns a new instance of GoogleCloudDialogflowCxV3VoiceSelectionParams.
8319 8320 8321 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8319 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
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.
Corresponds to the JSON property name
8308 8309 8310 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8308 def name @name end |
#ssml_gender ⇒ 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
8317 8318 8319 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8317 def ssml_gender @ssml_gender end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8324 8325 8326 8327 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8324 def update!(**args) @name = args[:name] if args.key?(:name) @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender) end |