Class: Google::Apis::CesV1::InputAudioConfig

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

InputAudioConfig configures how the CES agent should interpret the incoming audio data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InputAudioConfig

Returns a new instance of InputAudioConfig.



3965
3966
3967
# File 'lib/google/apis/ces_v1/classes.rb', line 3965

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

Instance Attribute Details

#audio_encodingString

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

Returns:

  • (String)


3952
3953
3954
# File 'lib/google/apis/ces_v1/classes.rb', line 3952

def audio_encoding
  @audio_encoding
end

#noise_suppression_levelString

Optional. Whether to enable noise suppression on the input audio. Available values are "low", "moderate", "high", "very_high". Corresponds to the JSON property noiseSuppressionLevel

Returns:

  • (String)


3958
3959
3960
# File 'lib/google/apis/ces_v1/classes.rb', line 3958

def noise_suppression_level
  @noise_suppression_level
end

#sample_rate_hertzFixnum

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

Returns:

  • (Fixnum)


3963
3964
3965
# File 'lib/google/apis/ces_v1/classes.rb', line 3963

def sample_rate_hertz
  @sample_rate_hertz
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3970
3971
3972
3973
3974
# File 'lib/google/apis/ces_v1/classes.rb', line 3970

def update!(**args)
  @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
  @noise_suppression_level = args[:noise_suppression_level] if args.key?(:noise_suppression_level)
  @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
end