Class: Google::Apis::TranscoderV1beta1::AudioStream
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1beta1::AudioStream
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/transcoder_v1beta1/classes.rb,
generated/google/apis/transcoder_v1beta1/representations.rb,
generated/google/apis/transcoder_v1beta1/representations.rb
Overview
Audio stream resource.
Instance Attribute Summary collapse
-
#bitrate_bps ⇒ Fixnum
Required.
-
#channel_count ⇒ Fixnum
Number of audio channels.
-
#channel_layout ⇒ Array<String>
A list of channel names specifying layout of the audio channels.
-
#codec ⇒ String
The codec for this audio stream.
-
#mapping ⇒ Array<Google::Apis::TranscoderV1beta1::AudioAtom>
The mapping for the
Job.edit_list
atoms with audioEditAtom.inputs
. -
#sample_rate_hertz ⇒ Fixnum
The audio sample rate in Hertz.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AudioStream
constructor
A new instance of AudioStream.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AudioStream
Returns a new instance of AudioStream.
344 345 346 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 344 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bitrate_bps ⇒ Fixnum
Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
Corresponds to the JSON property bitrateBps
311 312 313 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 311 def bitrate_bps @bitrate_bps end |
#channel_count ⇒ Fixnum
Number of audio channels. Must be between 1 and 6. The default is 2.
Corresponds to the JSON property channelCount
316 317 318 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 316 def channel_count @channel_count end |
#channel_layout ⇒ Array<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
326 327 328 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 326 def channel_layout @channel_layout end |
#codec ⇒ String
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
332 333 334 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 332 def codec @codec end |
#mapping ⇒ Array<Google::Apis::TranscoderV1beta1::AudioAtom>
The mapping for the Job.edit_list
atoms with audio EditAtom.inputs
.
Corresponds to the JSON property mapping
337 338 339 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 337 def mapping @mapping end |
#sample_rate_hertz ⇒ Fixnum
The audio sample rate in Hertz. The default is 48000 Hertz.
Corresponds to the JSON property sampleRateHertz
342 343 344 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 342 def sample_rate_hertz @sample_rate_hertz end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
349 350 351 352 353 354 355 356 |
# File 'generated/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 |