# Live Stream V1 API - Class Google::Cloud::Video::LiveStream::V1::AudioFormat (v2.7.0)

2.7.0 (latest) 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.0 1.1.1 1.0.0 0.9.0 0.8.2 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Live Stream V1 API class Google::Cloud::Video::LiveStream::V1::AudioFormat.

Properties of the audio format.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #channel_count

    def channel_count() -> ::Integer

**Returns**

- (::Integer) --- The number of audio channels.

### #channel_count=

    def channel_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The number of audio channels.
**Returns**

- (::Integer) --- The number of audio channels.

### #channel_layout

    def channel_layout() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- A list of channel names specifying the layout of the audio channels.

### #channel_layout=

    def channel_layout=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- A list of channel names specifying the layout of the audio channels.
**Returns**

- (::Array\<::String\>) --- A list of channel names specifying the layout of the audio channels.

### #codec

    def codec() -> ::String

**Returns**

- (::String) --- Audio codec used in this audio stream.

### #codec=

    def codec=(value) -> ::String

**Parameter**

- **value** (::String) --- Audio codec used in this audio stream.
**Returns**

- (::String) --- Audio codec used in this audio stream.