Class: Google::Apis::CesV1::OutputAudioConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OutputAudioConfig

Returns a new instance of OutputAudioConfig.



5287
5288
5289
# File 'lib/google/apis/ces_v1/classes.rb', line 5287

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#audio_encodingString

Required. The encoding of the output audio data. Corresponds to the JSON property audioEncoding

Returns:

  • (String)


5280
5281
5282
# File 'lib/google/apis/ces_v1/classes.rb', line 5280

def audio_encoding
  @audio_encoding
end

#sample_rate_hertzFixnum

Required. The sample rate (in Hertz) of the output audio data. Corresponds to the JSON property sampleRateHertz

Returns:

  • (Fixnum)


5285
5286
5287
# File 'lib/google/apis/ces_v1/classes.rb', line 5285

def sample_rate_hertz
  @sample_rate_hertz
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5292
5293
5294
5295
# File 'lib/google/apis/ces_v1/classes.rb', line 5292

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