Class: Google::Apis::CesV1::InputAudioConfig
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::InputAudioConfig
- 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
-
#audio_encoding ⇒ String
Required.
-
#noise_suppression_level ⇒ String
Optional.
-
#sample_rate_hertz ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InputAudioConfig
constructor
A new instance of InputAudioConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_encoding ⇒ String
Required. The encoding of the input audio data.
Corresponds to the JSON property audioEncoding
3952 3953 3954 |
# File 'lib/google/apis/ces_v1/classes.rb', line 3952 def audio_encoding @audio_encoding end |
#noise_suppression_level ⇒ String
Optional. Whether to enable noise suppression on the input audio. Available
values are "low", "moderate", "high", "very_high".
Corresponds to the JSON property noiseSuppressionLevel
3958 3959 3960 |
# File 'lib/google/apis/ces_v1/classes.rb', line 3958 def noise_suppression_level @noise_suppression_level end |
#sample_rate_hertz ⇒ Fixnum
Required. The sample rate (in Hertz) of the input audio data.
Corresponds to the JSON property sampleRateHertz
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 |