Class: Google::Cloud::Dialogflow::V2::OutputAudioConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dialogflow/v2/audio_config.rb

Overview

Instructs the speech synthesizer on how to generate the output audio content. If this audio config is supplied in a request, it overrides all existing text-to-speech settings applied to the agent.

Instance Attribute Summary collapse

Instance Attribute Details

#audio_encoding::Google::Cloud::Dialogflow::V2::OutputAudioEncoding

Returns Required. Audio encoding of the synthesized audio content.

Returns:



246
247
248
249
# File 'proto_docs/google/cloud/dialogflow/v2/audio_config.rb', line 246

class OutputAudioConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#sample_rate_hertz::Integer

Returns 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).

Returns:

  • (::Integer)

    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).



246
247
248
249
# File 'proto_docs/google/cloud/dialogflow/v2/audio_config.rb', line 246

class OutputAudioConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#synthesize_speech_config::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig

Returns Configuration of how speech should be synthesized.

Returns:



246
247
248
249
# File 'proto_docs/google/cloud/dialogflow/v2/audio_config.rb', line 246

class OutputAudioConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end