class Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1OutputAudioConfig
Instructs the speech synthesizer how to generate the output audio content.
Attributes
Required. Audio encoding of the synthesized audio content. Corresponds to the JSON property `audioEncoding` @return [String]
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]
Configuration of how speech should be synthesized. Corresponds to the JSON property `synthesizeSpeechConfig` @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig]
Public Class Methods
# File lib/google/apis/dialogflow_v3beta1/classes.rb, line 5738 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dialogflow_v3beta1/classes.rb, line 5743 def update!(**args) @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding) @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz) @synthesize_speech_config = args[:synthesize_speech_config] if args.key?(:synthesize_speech_config) end