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

The message returned to the client by the `ListVoices` method.

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

## Namespace

Google \\ Cloud \\ TextToSpeech \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ voices` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.Voice>` The list of voices. |

### getVoices

The list of voices.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-text-to-speech/latest/V1.Voice>` |   |

### setVoices

The list of voices.

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

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