Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class SpeechConfig.
Configuration for speech generation.
Generated from protobuf message google.cloud.aiplatform.v1.SpeechConfig
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ voice_config |
VoiceConfig
The configuration for the voice to use. |
↳ language_code |
string
Optional. The language code (ISO 639-1) for the speech synthesis. |
↳ multi_speaker_voice_config |
MultiSpeakerVoiceConfig
The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with |
getVoiceConfig
The configuration for the voice to use.
| Returns | |
|---|---|
| Type | Description |
VoiceConfig|null |
|
hasVoiceConfig
clearVoiceConfig
setVoiceConfig
The configuration for the voice to use.
| Parameter | |
|---|---|
| Name | Description |
var |
VoiceConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLanguageCode
Optional. The language code (ISO 639-1) for the speech synthesis.
| Returns | |
|---|---|
| Type | Description |
string |
|
setLanguageCode
Optional. The language code (ISO 639-1) for the speech synthesis.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMultiSpeakerVoiceConfig
The configuration for a multi-speaker text-to-speech request.
This field is mutually exclusive with voice_config.
| Returns | |
|---|---|
| Type | Description |
MultiSpeakerVoiceConfig|null |
|
hasMultiSpeakerVoiceConfig
clearMultiSpeakerVoiceConfig
setMultiSpeakerVoiceConfig
The configuration for a multi-speaker text-to-speech request.
This field is mutually exclusive with voice_config.
| Parameter | |
|---|---|
| Name | Description |
var |
MultiSpeakerVoiceConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|