Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SynthesizeSpeechConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SynthesizeSpeechConfig

Returns a new instance of GoogleCloudDialogflowV2SynthesizeSpeechConfig.



16744
16745
16746
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16744

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

Instance Attribute Details

#effects_profile_idArray<String>

Corresponds to the JSON property effectsProfileId

Returns:

  • (Array<String>)


16717
16718
16719
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16717

def effects_profile_id
  @effects_profile_id
end

#pitchFloat

Corresponds to the JSON property pitch

Returns:

  • (Float)


16722
16723
16724
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16722

def pitch
  @pitch
end

#pronunciationsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2CustomPronunciationParams>

Corresponds to the JSON property pronunciations



16727
16728
16729
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16727

def pronunciations
  @pronunciations
end

#speaking_rateFloat

Corresponds to the JSON property speakingRate

Returns:

  • (Float)


16732
16733
16734
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16732

def speaking_rate
  @speaking_rate
end

#voiceGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2VoiceSelectionParams

Corresponds to the JSON property voice



16737
16738
16739
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16737

def voice
  @voice
end

#volume_gain_dbFloat

Corresponds to the JSON property volumeGainDb

Returns:

  • (Float)


16742
16743
16744
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16742

def volume_gain_db
  @volume_gain_db
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16749
16750
16751
16752
16753
16754
16755
16756
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16749

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