Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1VoiceSelectionParams

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

Overview

Description of which voice to use for speech synthesis.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1VoiceSelectionParams

Returns a new instance of GoogleCloudDialogflowV2beta1VoiceSelectionParams.



13770
13771
13772
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13770

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. For the list of available voices, please refer to Supported voices and languages. Corresponds to the JSON property name

Returns:

  • (String)


13759
13760
13761
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13759

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)


13768
13769
13770
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13768

def ssml_gender
  @ssml_gender
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13775
13776
13777
13778
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13775

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