Reference documentation and code samples for the Transcoder V1 API class Google::Cloud::Video::Transcoder::V1::AudioStream.
Audio stream resource.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#bitrate_bps
defbitrate_bps()->::Integer
Returns
(::Integer) — Required. Audio bitrate in bits per second. Must be between 1 and
10,000,000.
#bitrate_bps=
defbitrate_bps=(value)->::Integer
Parameter
value (::Integer) — Required. Audio bitrate in bits per second. Must be between 1 and
10,000,000.
Returns
(::Integer) — Required. Audio bitrate in bits per second. Must be between 1 and
10,000,000.
#channel_count
defchannel_count()->::Integer
Returns
(::Integer) — Number of audio channels. Must be between 1 and 6. The default is 2.
#channel_count=
defchannel_count=(value)->::Integer
Parameter
value (::Integer) — Number of audio channels. Must be between 1 and 6. The default is 2.
Returns
(::Integer) — Number of audio channels. Must be between 1 and 6. The default is 2.
#channel_layout
defchannel_layout()->::Array<::String>
Returns
(::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
#channel_layout=
defchannel_layout=(value)->::Array<::String>
Parameter
value (::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
Returns
(::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
#codec
defcodec()->::String
Returns
(::String) —
The codec for this audio stream. The default is aac.
Supported audio codecs:
aac
aac-he
aac-he-v2
mp3
ac3
eac3
vorbis
#codec=
defcodec=(value)->::String
Parameter
value (::String) —
The codec for this audio stream. The default is aac.
Supported audio codecs:
aac
aac-he
aac-he-v2
mp3
ac3
eac3
vorbis
Returns
(::String) —
The codec for this audio stream. The default is aac.
Supported audio codecs:
aac
aac-he
aac-he-v2
mp3
ac3
eac3
vorbis
#display_name
defdisplay_name()->::String
Returns
(::String) — The name for this particular audio stream that
will be added to the HLS/DASH manifest. Not supported in MP4 files.
#display_name=
defdisplay_name=(value)->::String
Parameter
value (::String) — The name for this particular audio stream that
will be added to the HLS/DASH manifest. Not supported in MP4 files.
Returns
(::String) — The name for this particular audio stream that
will be added to the HLS/DASH manifest. Not supported in MP4 files.
#language_code
deflanguage_code()->::String
Returns
(::String) — 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.
#language_code=
deflanguage_code=(value)->::String
Parameter
value (::String) — 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.
Returns
(::String) — 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Transcoder V1 API - Class Google::Cloud::Video::Transcoder::V1::AudioStream (v2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [2.1.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/2.1.0/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [2.0.1](/ruby/docs/reference/google-cloud-video-transcoder-v1/2.0.1/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [1.2.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/1.2.0/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [1.1.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/1.1.0/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [1.0.1](/ruby/docs/reference/google-cloud-video-transcoder-v1/1.0.1/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [0.13.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.13.0/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [0.12.2](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.12.2/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [0.11.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.11.0/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [0.10.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.10.0/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [0.9.1](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.9.1/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [0.8.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.8.0/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [0.7.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.7.0/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [0.6.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.6.0/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [0.5.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.5.0/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [0.4.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.4.0/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [0.3.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.3.0/Google-Cloud-Video-Transcoder-V1-AudioStream)\n- [0.2.2](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.2.2/Google-Cloud-Video-Transcoder-V1-AudioStream) \nReference documentation and code samples for the Transcoder V1 API class Google::Cloud::Video::Transcoder::V1::AudioStream.\n\nAudio stream resource. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #bitrate_bps\n\n def bitrate_bps() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.\n\n### #bitrate_bps=\n\n def bitrate_bps=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000. \n**Returns**\n\n- (::Integer) --- Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.\n\n### #channel_count\n\n def channel_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Number of audio channels. Must be between 1 and 6. The default is 2.\n\n### #channel_count=\n\n def channel_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Number of audio channels. Must be between 1 and 6. The default is 2. \n**Returns**\n\n- (::Integer) --- Number of audio channels. Must be between 1 and 6. The default is 2.\n\n### #channel_layout\n\n def channel_layout() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- A list of channel names specifying layout of the audio channels.\n This only affects the metadata embedded in the container headers, if\n supported by the specified format. The default is `[\"fl\", \"fr\"]`.\n\n Supported channel names:\n - `fl` - Front left channel\n - `fr` - Front right channel\n - `sl` - Side left channel\n - `sr` - Side right channel\n - `fc` - Front center channel\n - `lfe` - Low frequency\n\n### #channel_layout=\n\n def channel_layout=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) ---\n\n A list of channel names specifying layout of the audio channels.\n This only affects the metadata embedded in the container headers, if\n supported by the specified format. The default is `[\"fl\", \"fr\"]`.\n\n Supported channel names:\n - `fl` - Front left channel\n - `fr` - Front right channel\n - `sl` - Side left channel\n - `sr` - Side right channel\n - `fc` - Front center channel\n- `lfe` - Low frequency \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- A list of channel names specifying layout of the audio channels.\n This only affects the metadata embedded in the container headers, if\n supported by the specified format. The default is `[\"fl\", \"fr\"]`.\n\n Supported channel names:\n - `fl` - Front left channel\n - `fr` - Front right channel\n - `sl` - Side left channel\n - `sr` - Side right channel\n - `fc` - Front center channel\n - `lfe` - Low frequency\n\n### #codec\n\n def codec() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The codec for this audio stream. The default is `aac`.\n\n Supported audio codecs:\n - `aac`\n - `aac-he`\n - `aac-he-v2`\n - `mp3`\n - `ac3`\n - `eac3`\n - `vorbis`\n\n### #codec=\n\n def codec=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) ---\n\n The codec for this audio stream. The default is `aac`.\n\n Supported audio codecs:\n - `aac`\n - `aac-he`\n - `aac-he-v2`\n - `mp3`\n - `ac3`\n - `eac3`\n- `vorbis` \n**Returns**\n\n- (::String) --- The codec for this audio stream. The default is `aac`.\n\n Supported audio codecs:\n - `aac`\n - `aac-he`\n - `aac-he-v2`\n - `mp3`\n - `ac3`\n - `eac3`\n - `vorbis`\n\n### #display_name\n\n def display_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The name for this particular audio stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.\n\n### #display_name=\n\n def display_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The name for this particular audio stream that will be added to the HLS/DASH manifest. Not supported in MP4 files. \n**Returns**\n\n- (::String) --- The name for this particular audio stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.\n\n### #language_code\n\n def language_code() -\u003e ::String\n\n**Returns**\n\n- (::String) --- 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.\n\n### #language_code=\n\n def language_code=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- 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. \n**Returns**\n\n- (::String) --- 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.\n\n### #mapping\n\n def mapping() -\u003e ::Array\u003c::Google::Cloud::Video::Transcoder::V1::AudioStream::AudioMapping\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Video::Transcoder::V1::AudioStream::AudioMapping](./Google-Cloud-Video-Transcoder-V1-AudioStream-AudioMapping)\\\u003e) --- The mapping for the [JobConfig.edit_list](/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-JobConfig#Google__Cloud__Video__Transcoder__V1__JobConfig_edit_list_instance_ \"Google::Cloud::Video::Transcoder::V1::JobConfig#edit_list (method)\") atoms with audio [EditAtom.inputs](/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-EditAtom#Google__Cloud__Video__Transcoder__V1__EditAtom_inputs_instance_ \"Google::Cloud::Video::Transcoder::V1::EditAtom#inputs (method)\").\n\n### #mapping=\n\n def mapping=(value) -\u003e ::Array\u003c::Google::Cloud::Video::Transcoder::V1::AudioStream::AudioMapping\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Video::Transcoder::V1::AudioStream::AudioMapping](./Google-Cloud-Video-Transcoder-V1-AudioStream-AudioMapping)\\\u003e) --- The mapping for the [JobConfig.edit_list](/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-JobConfig#Google__Cloud__Video__Transcoder__V1__JobConfig_edit_list_instance_ \"Google::Cloud::Video::Transcoder::V1::JobConfig#edit_list (method)\") atoms with audio [EditAtom.inputs](/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-EditAtom#Google__Cloud__Video__Transcoder__V1__EditAtom_inputs_instance_ \"Google::Cloud::Video::Transcoder::V1::EditAtom#inputs (method)\"). \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Video::Transcoder::V1::AudioStream::AudioMapping](./Google-Cloud-Video-Transcoder-V1-AudioStream-AudioMapping)\\\u003e) --- The mapping for the [JobConfig.edit_list](/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-JobConfig#Google__Cloud__Video__Transcoder__V1__JobConfig_edit_list_instance_ \"Google::Cloud::Video::Transcoder::V1::JobConfig#edit_list (method)\") atoms with audio [EditAtom.inputs](/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-EditAtom#Google__Cloud__Video__Transcoder__V1__EditAtom_inputs_instance_ \"Google::Cloud::Video::Transcoder::V1::EditAtom#inputs (method)\").\n\n### #sample_rate_hertz\n\n def sample_rate_hertz() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The audio sample rate in Hertz. The default is 48000 Hertz.\n\n### #sample_rate_hertz=\n\n def sample_rate_hertz=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The audio sample rate in Hertz. The default is 48000 Hertz. \n**Returns**\n\n- (::Integer) --- The audio sample rate in Hertz. The default is 48000 Hertz."]]