0.6.0 (latest) 0.5.0 0.4.4 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class OutputAudioConfig.

OutputAudioConfig configures how the CES agent should synthesize outgoing
audio responses.

Generated from protobuf message `google.cloud.ces.v1.OutputAudioConfig`

## Namespace

Google \\ Cloud \\ Ces \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ audio_encoding` | `int` Required. The encoding of the output audio data. |
| `↳ sample_rate_hertz` | `int` Required. The sample rate (in Hertz) of the output audio data. |

### getAudioEncoding

Required. The encoding of the output audio data.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AudioEncoding](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.AudioEncoding.md.txt). |

### setAudioEncoding

Required. The encoding of the output audio data.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AudioEncoding](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.AudioEncoding.md.txt). |

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

### getSampleRateHertz

Required. The sample rate (in Hertz) of the output audio data.

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

### setSampleRateHertz

Required. The sample rate (in Hertz) of the output audio data.

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

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