Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig

Returns a new instance of GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig.



21220
21221
21222
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21220

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

Instance Attribute Details

#effects_profile_idArray<String>

Corresponds to the JSON property effectsProfileId

Returns:

  • (Array<String>)


21193
21194
21195
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21193

def effects_profile_id
  @effects_profile_id
end

#pitchFloat

Corresponds to the JSON property pitch

Returns:

  • (Float)


21198
21199
21200
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21198

def pitch
  @pitch
end

#pronunciationsArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CustomPronunciationParams>

Corresponds to the JSON property pronunciations



21203
21204
21205
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21203

def pronunciations
  @pronunciations
end

#speaking_rateFloat

Corresponds to the JSON property speakingRate

Returns:

  • (Float)


21208
21209
21210
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21208

def speaking_rate
  @speaking_rate
end

#voiceGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1VoiceSelectionParams

Corresponds to the JSON property voice



21213
21214
21215
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21213

def voice
  @voice
end

#volume_gain_dbFloat

Corresponds to the JSON property volumeGainDb

Returns:

  • (Float)


21218
21219
21220
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21218

def volume_gain_db
  @volume_gain_db
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21225
21226
21227
21228
21229
21230
21231
21232
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21225

def update!(**args)
  @effects_profile_id = args[:effects_profile_id] if args.key?(:effects_profile_id)
  @pitch = args[:pitch] if args.key?(:pitch)
  @pronunciations = args[:pronunciations] if args.key?(:pronunciations)
  @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