Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextToSpeechSettings

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

Returns a new instance of GoogleCloudDialogflowV2TextToSpeechSettings.



16823
16824
16825
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16823

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)


16805
16806
16807
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16805

def enable_text_to_speech
  @enable_text_to_speech
end

#output_audio_encodingString

Corresponds to the JSON property outputAudioEncoding

Returns:

  • (String)


16811
16812
16813
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16811

def output_audio_encoding
  @output_audio_encoding
end

#sample_rate_hertzFixnum

Corresponds to the JSON property sampleRateHertz

Returns:

  • (Fixnum)


16816
16817
16818
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16816

def sample_rate_hertz
  @sample_rate_hertz
end

#synthesize_speech_configsHash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SynthesizeSpeechConfig>

Corresponds to the JSON property synthesizeSpeechConfigs



16821
16822
16823
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16821

def synthesize_speech_configs
  @synthesize_speech_configs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16828
16829
16830
16831
16832
16833
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16828

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