Reference documentation and code samples for the Cloud Text-to-Speech V1 Client class MultispeakerPrebuiltVoice.
Configuration for a single speaker in a Gemini TTS multi-speaker setup.
Enables dialogue between two speakers.
Generated from protobuf message google.cloud.texttospeech.v1.MultispeakerPrebuiltVoice
Namespace
Google \ Cloud \ TextToSpeech \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ speaker_alias |
string
Required. The speaker alias of the voice. This is the user-chosen speaker name that is used in the multispeaker text input, such as "Speaker1". |
↳ speaker_id |
string
Required. The speaker ID of the voice. See https://cloud.google.com/text-to-speech/docs/gemini-tts#voice_options for available values. |
getSpeakerAlias
Required. The speaker alias of the voice. This is the user-chosen speaker name that is used in the multispeaker text input, such as "Speaker1".
Returns | |
---|---|
Type | Description |
string |
setSpeakerAlias
Required. The speaker alias of the voice. This is the user-chosen speaker name that is used in the multispeaker text input, such as "Speaker1".
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSpeakerId
Required. The speaker ID of the voice. See https://cloud.google.com/text-to-speech/docs/gemini-tts#voice_options for available values.
Returns | |
---|---|
Type | Description |
string |
setSpeakerId
Required. The speaker ID of the voice. See https://cloud.google.com/text-to-speech/docs/gemini-tts#voice_options for available values.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |