Reference documentation and code samples for the Cloud Text-to-Speech V1 Client class MultiSpeakerVoiceConfig.
Configuration for a multi-speaker text-to-speech setup. Enables the use of up to two distinct voices in a single synthesis request.
Generated from protobuf message google.cloud.texttospeech.v1.MultiSpeakerVoiceConfig
Namespace
Google \ Cloud \ TextToSpeech \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ speaker_voice_configs |
array<MultispeakerPrebuiltVoice>
Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided. |
getSpeakerVoiceConfigs
Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setSpeakerVoiceConfigs
Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
Parameter | |
---|---|
Name | Description |
var |
array<MultispeakerPrebuiltVoice>
|
Returns | |
---|---|
Type | Description |
$this |