Class: Google::Apis::TranscoderV1::Audio

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/transcoder_v1/classes.rb,
lib/google/apis/transcoder_v1/representations.rb,
lib/google/apis/transcoder_v1/representations.rb

Overview

Audio preprocessing configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Audio

Returns a new instance of Audio.



204
205
206
# File 'lib/google/apis/transcoder_v1/classes.rb', line 204

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

Instance Attribute Details

#high_boostBoolean Also known as: high_boost?

Enable boosting high frequency components. The default is false. Note: This field is not supported. Corresponds to the JSON property highBoost

Returns:

  • (Boolean)


183
184
185
# File 'lib/google/apis/transcoder_v1/classes.rb', line 183

def high_boost
  @high_boost
end

#low_boostBoolean Also known as: low_boost?

Enable boosting low frequency components. The default is false. Note: This field is not supported. Corresponds to the JSON property lowBoost

Returns:

  • (Boolean)


190
191
192
# File 'lib/google/apis/transcoder_v1/classes.rb', line 190

def low_boost
  @low_boost
end

#lufsFloat

Specify audio loudness normalization in loudness units relative to full scale ( LUFS). Enter a value between -24 and 0 (the default), where: * -24 is the Advanced Television Systems Committee (ATSC A/85) standard * -23 is the EU R128 broadcast standard * -19 is the prior standard for online mono audio * - 18 is the ReplayGain standard * -16 is the prior standard for stereo audio * - 14 is the new online audio standard recommended by Spotify, as well as Amazon Echo * 0 disables normalization Corresponds to the JSON property lufs

Returns:

  • (Float)


202
203
204
# File 'lib/google/apis/transcoder_v1/classes.rb', line 202

def lufs
  @lufs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



209
210
211
212
213
# File 'lib/google/apis/transcoder_v1/classes.rb', line 209

def update!(**args)
  @high_boost = args[:high_boost] if args.key?(:high_boost)
  @low_boost = args[:low_boost] if args.key?(:low_boost)
  @lufs = args[:lufs] if args.key?(:lufs)
end