class Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextToSpeechSettings

Instructs the speech synthesizer on how to generate the output audio content.

Attributes

enable_text_to_speech[RW]

Optional. Indicates whether text to speech is enabled. Even when this field is false, other settings in this proto are still retained. Corresponds to the JSON property `enableTextToSpeech` @return [Boolean]

enable_text_to_speech?[RW]

Optional. Indicates whether text to speech is enabled. Even when this field is false, other settings in this proto are still retained. Corresponds to the JSON property `enableTextToSpeech` @return [Boolean]

output_audio_encoding[RW]

Required. Audio encoding of the synthesized audio content. Corresponds to the JSON property `outputAudioEncoding` @return [String]

sample_rate_hertz[RW]

Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then the synthesizer will use the default sample rate based on the audio encoding. If this is different from the voice's natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate ( which might result in worse audio quality). Corresponds to the JSON property `sampleRateHertz` @return [Fixnum]

synthesize_speech_configs[RW]

Optional. Configuration of how speech should be synthesized, mapping from language (cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig. Corresponds to the JSON property `synthesizeSpeechConfigs` @return [Hash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 14197
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 14202
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