Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextToSpeechSettings

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) ⇒ GoogleCloudDialogflowV2beta1TextToSpeechSettings

Returns a new instance of GoogleCloudDialogflowV2beta1TextToSpeechSettings.



21230
21231
21232
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21230

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

Instance Attribute Details

#enable_text_to_speechBoolean Also known as: enable_text_to_speech?

Corresponds to the JSON property enableTextToSpeech

Returns:

  • (Boolean)


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

def enable_text_to_speech
  @enable_text_to_speech
end

#output_audio_encodingString

Corresponds to the JSON property outputAudioEncoding

Returns:

  • (String)


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

def output_audio_encoding
  @output_audio_encoding
end

#sample_rate_hertzFixnum

Corresponds to the JSON property sampleRateHertz

Returns:

  • (Fixnum)


21223
21224
21225
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21223

def sample_rate_hertz
  @sample_rate_hertz
end

#synthesize_speech_configsHash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig>

Corresponds to the JSON property synthesizeSpeechConfigs



21228
21229
21230
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21228

def synthesize_speech_configs
  @synthesize_speech_configs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21235
21236
21237
21238
21239
21240
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21235

def update!(**args)
  @enable_text_to_speech = args[:enable_text_to_speech] if args.key?(:enable_text_to_speech)
  @output_audio_encoding = args[:output_audio_encoding] if args.key?(:output_audio_encoding)
  @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
  @synthesize_speech_configs = args[:synthesize_speech_configs] if args.key?(:synthesize_speech_configs)
end