# Google Cloud Video Live Stream V1 Client - Class AudioFormat (1.4.0)

1.4.0 (latest) 1.3.2 1.2.1 1.1.3 1.0.0 0.7.5 0.6.2 0.5.0 0.4.2 0.3.2 0.2.6 Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class AudioFormat.

Properties of the audio format.

Generated from protobuf message `google.cloud.video.livestream.v1.AudioFormat`

## Namespace

Google \\ Cloud \\ Video \\ LiveStream \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ codec` | `string` Audio codec used in this audio stream. |
| `↳ channel_count` | `int` The number of audio channels. |
| `↳ channel_layout` | `string[]` A list of channel names specifying the layout of the audio channels. |

### getCodec

Audio codec used in this audio stream.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCodec

Audio codec used in this audio stream.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getChannelCount

The number of audio channels.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setChannelCount

The number of audio channels.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getChannelLayout

A list of channel names specifying the layout of the audio channels.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setChannelLayout

A list of channel names specifying the layout of the audio channels.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |