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

The configuration of Voice Clone feature.

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

## Namespace

Google \\ Cloud \\ TextToSpeech \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ voice_cloning_key` | `string` Required. Created by GenerateVoiceCloningKey. |

### getVoiceCloningKey

Required. Created by GenerateVoiceCloningKey.

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

### setVoiceCloningKey

Required. Created by GenerateVoiceCloningKey.

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

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