Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2VoiceSelectionParams

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v2/classes.rb,
generated/google/apis/dialogflow_v2/representations.rb,
generated/google/apis/dialogflow_v2/representations.rb

Overview

Description of which voice to use for speech synthesis.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2VoiceSelectionParams

Returns a new instance of GoogleCloudDialogflowV2VoiceSelectionParams.



3511
3512
3513
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3511

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

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. Corresponds to the JSON property name

Returns:

  • (String)


3500
3501
3502
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3500

def name
  @name
end

#ssml_genderString

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 should substitute a voice with a different gender rather than failing the request. Corresponds to the JSON property ssmlGender

Returns:

  • (String)


3509
3510
3511
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3509

def ssml_gender
  @ssml_gender
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3516
3517
3518
3519
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3516

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
end