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

Description of the custom voice to be synthesized.

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

## Namespace

Google \\ Cloud \\ TextToSpeech \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ model` | `string` Required. The name of the AutoML model that synthesizes the custom voice. |
| `↳ reported_usage` | `int` Optional. Deprecated. The usage of the synthesized audio to be reported. |

### getModel

Required. The name of the AutoML model that synthesizes the custom voice.

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

### setModel

Required. The name of the AutoML model that synthesizes the custom voice.

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

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

### getReportedUsage

Optional. Deprecated. The usage of the synthesized audio to be reported.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ReportedUsage](https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.CustomVoiceParams.ReportedUsage). |

### setReportedUsage

Optional. Deprecated. The usage of the synthesized audio to be reported.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ReportedUsage](https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.CustomVoiceParams.ReportedUsage). |

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