# Transcoder V1 API - Class Google::Cloud::Video::Transcoder::V1::AudioStream (v2.6.0)

2.6.0 (latest) 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.13.0 0.12.2 0.11.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.2 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

    def bitrate_bps() -> ::Integer

**Returns**

- (::Integer) --- Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.

### #bitrate_bps=

    def bitrate_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

    def channel_count() -> ::Integer

**Returns**

- (::Integer) --- Number of audio channels. Must be between 1 and 6. The default is 2.

### #channel_count=

    def channel_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

    def channel_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=

    def channel_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

    def codec() -> ::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=

    def codec=(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

    def display_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=

    def display_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

    def language_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=

    def language_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.

### #mapping

    def mapping() -> ::Array<::Google::Cloud::Video::Transcoder::V1::AudioStream::AudioMapping>

**Returns**

- (::Array\<[::Google::Cloud::Video::Transcoder::V1::AudioStream::AudioMapping](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-AudioStream-AudioMapping)\>) --- The mapping for the [JobConfig.edit_list](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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)").

### #mapping=

    def mapping=(value) -> ::Array<::Google::Cloud::Video::Transcoder::V1::AudioStream::AudioMapping>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Video::Transcoder::V1::AudioStream::AudioMapping](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-AudioStream-AudioMapping)\>) --- The mapping for the [JobConfig.edit_list](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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)").
**Returns**

- (::Array\<[::Google::Cloud::Video::Transcoder::V1::AudioStream::AudioMapping](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-AudioStream-AudioMapping)\>) --- The mapping for the [JobConfig.edit_list](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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)").

### #sample_rate_hertz

    def sample_rate_hertz() -> ::Integer

**Returns**

- (::Integer) --- The audio sample rate in Hertz. The default is 48000 Hertz.

### #sample_rate_hertz=

    def sample_rate_hertz=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The audio sample rate in Hertz. The default is 48000 Hertz.
**Returns**

- (::Integer) --- The audio sample rate in Hertz. The default is 48000 Hertz.