class Google::Apis::TranscoderV1beta1::AudioStream

Audio stream resource.

Attributes

bitrate_bps[RW]

Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000. Corresponds to the JSON property `bitrateBps` @return [Fixnum]

channel_count[RW]

Number of audio channels. Must be between 1 and 6. The default is 2. Corresponds to the JSON property `channelCount` @return [Fixnum]

channel_layout[RW]

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` @return [Array<String>]

codec[RW]

The codec for this audio stream. The default is `“aac”`. Supported audio codecs: - 'aac' - 'aac-he' - 'aac-he-v2' - 'mp3' - 'ac3' - 'eac3' Corresponds to the JSON property `codec` @return [String]

mapping[RW]

The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`. Corresponds to the JSON property `mapping` @return [Array<Google::Apis::TranscoderV1beta1::AudioAtom>]

sample_rate_hertz[RW]

The audio sample rate in Hertz. The default is 48000 Hertz. Corresponds to the JSON property `sampleRateHertz` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/transcoder_v1beta1/classes.rb, line 344
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/transcoder_v1beta1/classes.rb, line 349
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)
  @mapping = args[:mapping] if args.key?(:mapping)
  @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
end