Class: Google::Apis::TranscoderV1::AudioStream

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 stream resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AudioStream

Returns a new instance of AudioStream.



320
321
322
# File 'lib/google/apis/transcoder_v1/classes.rb', line 320

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

Instance Attribute Details

#bitrate_bpsFixnum

Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000. Corresponds to the JSON property bitrateBps

Returns:

  • (Fixnum)


274
275
276
# File 'lib/google/apis/transcoder_v1/classes.rb', line 274

def bitrate_bps
  @bitrate_bps
end

#channel_countFixnum

Number of audio channels. Must be between 1 and 6. The default is 2. Corresponds to the JSON property channelCount

Returns:

  • (Fixnum)


279
280
281
# File 'lib/google/apis/transcoder_v1/classes.rb', line 279

def channel_count
  @channel_count
end

#channel_layoutArray<String>

A list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is ["fl", "fr"]. Supported channel names: - fl - Front left channel - fr - Front right channel - sl - Side left channel - sr - Side right channel - fc - Front center channel - lfe - Low frequency Corresponds to the JSON property channelLayout

Returns:

  • (Array<String>)


289
290
291
# File 'lib/google/apis/transcoder_v1/classes.rb', line 289

def channel_layout
  @channel_layout
end

#codecString

The codec for this audio stream. The default is aac. Supported audio codecs:

  • aac - aac-he - aac-he-v2 - mp3 - ac3 - eac3 - vorbis Corresponds to the JSON property codec

Returns:

  • (String)


295
296
297
# File 'lib/google/apis/transcoder_v1/classes.rb', line 295

def codec
  @codec
end

#display_nameString

The name for this particular audio stream that will be added to the HLS/DASH manifest. Not supported in MP4 files. Corresponds to the JSON property displayName

Returns:

  • (String)


301
302
303
# File 'lib/google/apis/transcoder_v1/classes.rb', line 301

def display_name
  @display_name
end

#language_codeString

The BCP-47 language code, such as en-US or sr-Latn. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files. Corresponds to the JSON property languageCode

Returns:

  • (String)


308
309
310
# File 'lib/google/apis/transcoder_v1/classes.rb', line 308

def language_code
  @language_code
end

#mappingArray<Google::Apis::TranscoderV1::AudioMapping>

The mapping for the JobConfig.edit_list atoms with audio EditAtom.inputs. Corresponds to the JSON property mapping



313
314
315
# File 'lib/google/apis/transcoder_v1/classes.rb', line 313

def mapping
  @mapping
end

#sample_rate_hertzFixnum

The audio sample rate in Hertz. The default is 48000 Hertz. Corresponds to the JSON property sampleRateHertz

Returns:

  • (Fixnum)


318
319
320
# File 'lib/google/apis/transcoder_v1/classes.rb', line 318

def sample_rate_hertz
  @sample_rate_hertz
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



325
326
327
328
329
330
331
332
333
334
# File 'lib/google/apis/transcoder_v1/classes.rb', line 325

def update!(**args)
  @bitrate_bps = args[:bitrate_bps] if args.key?(:bitrate_bps)
  @channel_count = args[:channel_count] if args.key?(:channel_count)
  @channel_layout = args[:channel_layout] if args.key?(:channel_layout)
  @codec = args[:codec] if args.key?(:codec)
  @display_name = args[:display_name] if args.key?(:display_name)
  @language_code = args[:language_code] if args.key?(:language_code)
  @mapping = args[:mapping] if args.key?(:mapping)
  @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
end