# Cloud Text-to-Speech V1 Client - Class StreamingSynthesisInput (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 StreamingSynthesisInput.

Input to be synthesized.

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

## Namespace

Google \\ Cloud \\ TextToSpeech \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ text` | `string` The raw text to be synthesized. It is recommended that each input contains complete, terminating sentences, which results in better prosody in the output audio. |
| `↳ markup` | `string` Markup for Chirp 3: HD voices specifically. This field may not be used with any other voices. |
| `↳ multi_speaker_markup` | `https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.MultiSpeakerMarkup` Multi-speaker markup for Gemini TTS. This field may not be used with any other voices. |
| `↳ prompt` | `string` This is system instruction supported only for controllable voice models. |

### getText

The raw text to be synthesized. It is recommended that each input
contains complete, terminating sentences, which results in better prosody
in the output audio.

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

### hasText

### setText

The raw text to be synthesized. It is recommended that each input
contains complete, terminating sentences, which results in better prosody
in the output audio.

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

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

### getMarkup

Markup for Chirp 3: HD voices specifically. This field may not be used
with any other voices.

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

### hasMarkup

### setMarkup

Markup for Chirp 3: HD voices specifically. This field may not be used
with any other voices.

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

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

### getMultiSpeakerMarkup

Multi-speaker markup for Gemini TTS. This field may not
be used with any other voices.

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

### hasMultiSpeakerMarkup

### setMultiSpeakerMarkup

Multi-speaker markup for Gemini TTS. This field may not
be used with any other voices.

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

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

### getPrompt

This is system instruction supported only for controllable voice models.

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

### hasPrompt

### clearPrompt

### setPrompt

This is system instruction supported only for controllable voice models.

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

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

### getInputSource

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