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

Configuration for a single speaker in a Gemini TTS multi-speaker setup.

Enables dialogue between two speakers.

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

## Namespace

Google \\ Cloud \\ TextToSpeech \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ speaker_alias` | `string` Required. The speaker alias of the voice. This is the user-chosen speaker name that is used in the multispeaker text input, such as "Speaker1". |
| `↳ speaker_id` | `string` Required. The speaker ID of the voice. See <https://cloud.google.com/text-to-speech/docs/gemini-tts#voice_options> for available values. |

### getSpeakerAlias

Required. The speaker alias of the voice. This is the user-chosen speaker
name that is used in the multispeaker text input, such as "Speaker1".

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

### setSpeakerAlias

Required. The speaker alias of the voice. This is the user-chosen speaker
name that is used in the multispeaker text input, such as "Speaker1".

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

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

### getSpeakerId

Required. The speaker ID of the voice. See
<https://cloud.google.com/text-to-speech/docs/gemini-tts#voice_options>
for available values.

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

### setSpeakerId

Required. The speaker ID of the voice. See
<https://cloud.google.com/text-to-speech/docs/gemini-tts#voice_options>
for available values.

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

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