Cloud Text-to-Speech V1 Client - Class ListVoicesResponse (1.5.6)

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.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setVoices

The list of voices.

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