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.



4140
4141
4142
# File 'lib/google/apis/ces_v1/classes.rb', line 4140

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)


4127
4128
4129
# File 'lib/google/apis/ces_v1/classes.rb', line 4127

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)


4133
4134
4135
# File 'lib/google/apis/ces_v1/classes.rb', line 4133

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)


4138
4139
4140
# File 'lib/google/apis/ces_v1/classes.rb', line 4138

def sample_rate_hertz
  @sample_rate_hertz
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4145
4146
4147
4148
4149
# File 'lib/google/apis/ces_v1/classes.rb', line 4145

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