# Google Cloud Dialogflow Cx V3 Client - Class AudioInput (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class AudioInput.

Represents the natural speech audio to be processed.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.AudioInput`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.InputAudioConfig` Required. Instructs the speech recognizer how to process the speech audio. |
| `↳ audio` | `string` The natural language speech audio to be processed. A single request can contain up to 2 minutes of speech audio data. The [transcribed text](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryResult#_Google_Cloud_Dialogflow_Cx_V3_QueryResult__getTranscript__) cannot contain more than 256 bytes. For non-streaming audio detect intent, both `config` and `audio` must be provided. For streaming audio detect intent, `config` must be provided in the first request and `audio` must be provided in all following requests. |

### getConfig

Required. Instructs the speech recognizer how to process the speech audio.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.InputAudioConfig|null` |   |

### hasConfig

### clearConfig

### setConfig

Required. Instructs the speech recognizer how to process the speech audio.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.InputAudioConfig` |

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

### getAudio

The natural language speech audio to be processed.

A single request can contain up to 2 minutes of speech audio data.
The [transcribed
text](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryResult#_Google_Cloud_Dialogflow_Cx_V3_QueryResult__getTranscript__) cannot contain
more than 256 bytes.
For non-streaming audio detect intent, both `config` and `audio` must be
provided.
For streaming audio detect intent, `config` must be provided in
the first request and `audio` must be provided in all following requests.

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

### setAudio

The natural language speech audio to be processed.

A single request can contain up to 2 minutes of speech audio data.
The [transcribed
text](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryResult#_Google_Cloud_Dialogflow_Cx_V3_QueryResult__getTranscript__) cannot contain
more than 256 bytes.
For non-streaming audio detect intent, both `config` and `audio` must be
provided.
For streaming audio detect intent, `config` must be provided in
the first request and `audio` must be provided in all following requests.

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

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