Class: Google::Apis::CesV1::OutputAudioConfig
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::OutputAudioConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb
Overview
OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses.
Instance Attribute Summary collapse
-
#audio_encoding ⇒ String
Required.
-
#sample_rate_hertz ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OutputAudioConfig
constructor
A new instance of OutputAudioConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OutputAudioConfig
Returns a new instance of OutputAudioConfig.
5766 5767 5768 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5766 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio_encoding ⇒ String
Required. The encoding of the output audio data.
Corresponds to the JSON property audioEncoding
5759 5760 5761 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5759 def audio_encoding @audio_encoding end |
#sample_rate_hertz ⇒ Fixnum
Required. The sample rate (in Hertz) of the output audio data.
Corresponds to the JSON property sampleRateHertz
5764 5765 5766 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5764 def sample_rate_hertz @sample_rate_hertz end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5771 5772 5773 5774 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5771 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) end |