# Cloud Text-to-Speech V1 Client - Class StreamingSynthesizeRequest (2.8.0)

2.8.0 (latest) 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.2 2.0.1 1.12.2 1.11.0 1.10.0 1.9.1 1.8.5 1.7.2 1.6.1 1.5.6 1.4.5 Reference documentation and code samples for the Cloud Text-to-Speech V1 Client class StreamingSynthesizeRequest.

Request message for the `StreamingSynthesize` method. Multiple
`StreamingSynthesizeRequest` messages are sent in one call.

The first message must contain a `streaming_config` that
fully specifies the request configuration and must not contain `input`. All
subsequent messages must only have `input` set.

Generated from protobuf message `google.cloud.texttospeech.v1.StreamingSynthesizeRequest`

## Namespace

Google \\ Cloud \\ TextToSpeech \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ streaming_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.StreamingSynthesizeConfig` StreamingSynthesizeConfig to be used in this streaming attempt. Only specified in the first message sent in a `StreamingSynthesize` call. |
| `↳ input` | `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.StreamingSynthesisInput` Input to synthesize. Specified in all messages but the first in a `StreamingSynthesize` call. |

### getStreamingConfig

StreamingSynthesizeConfig to be used in this streaming attempt. Only
specified in the first message sent in a `StreamingSynthesize` call.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.StreamingSynthesizeConfig|null` |   |

### hasStreamingConfig

### setStreamingConfig

StreamingSynthesizeConfig to be used in this streaming attempt. Only
specified in the first message sent in a `StreamingSynthesize` call.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.StreamingSynthesizeConfig` |

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

### getInput

Input to synthesize. Specified in all messages but the first in a
`StreamingSynthesize` call.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.StreamingSynthesisInput|null` |   |

### hasInput

### setInput

Input to synthesize. Specified in all messages but the first in a
`StreamingSynthesize` call.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.StreamingSynthesisInput` |

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

### getStreamingRequest

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