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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ voices array<Google\Cloud\TextToSpeech\V1\Voice>

The list of voices.

getVoices

The list of voices.

Generated from protobuf field repeated .google.cloud.texttospeech.v1.Voice voices = 1;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setVoices

The list of voices.

Generated from protobuf field repeated .google.cloud.texttospeech.v1.Voice voices = 1;

Parameter
NameDescription
var array<Google\Cloud\TextToSpeech\V1\Voice>
Returns
TypeDescription
$this