Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig

Returns a new instance of GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig.



12126
12127
12128
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12126

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

Instance Attribute Details

#effects_profile_idArray<String>

Corresponds to the JSON property effectsProfileId

Returns:

  • (Array<String>)


12104
12105
12106
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12104

def effects_profile_id
  @effects_profile_id
end

#pitchFloat

Corresponds to the JSON property pitch

Returns:

  • (Float)


12109
12110
12111
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12109

def pitch
  @pitch
end

#speaking_rateFloat

Corresponds to the JSON property speakingRate

Returns:

  • (Float)


12114
12115
12116
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12114

def speaking_rate
  @speaking_rate
end

#voiceGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VoiceSelectionParams

Corresponds to the JSON property voice



12119
12120
12121
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12119

def voice
  @voice
end

#volume_gain_dbFloat

Corresponds to the JSON property volumeGainDb

Returns:

  • (Float)


12124
12125
12126
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12124

def volume_gain_db
  @volume_gain_db
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12131
12132
12133
12134
12135
12136
12137
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12131

def update!(**args)
  @effects_profile_id = args[:effects_profile_id] if args.key?(:effects_profile_id)
  @pitch = args[:pitch] if args.key?(:pitch)
  @speaking_rate = args[:speaking_rate] if args.key?(:speaking_rate)
  @voice = args[:voice] if args.key?(:voice)
  @volume_gain_db = args[:volume_gain_db] if args.key?(:volume_gain_db)
end