Reference documentation and code samples for the Cloud Text-to-Speech V1 Client class AdvancedVoiceOptions.
Used for advanced voice options.
Generated from protobuf message google.cloud.texttospeech.v1.AdvancedVoiceOptions
Namespace
Google \ Cloud \ TextToSpeech \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ low_latency_journey_synthesis |
bool
Only for Journey voices. If false, the synthesis is context aware and has a higher latency. |
↳ relax_safety_filters |
bool
Optional. Input only. Deprecated, use safety_settings instead. If true, relaxes safety filters for Gemini TTS. |
↳ safety_settings |
AdvancedVoiceOptions\SafetySettings
Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the safety setting will be blocked if the harm probability is above the threshold. Otherwise, the safety filter will be disabled by default. |
↳ enable_textnorm |
bool
Optional. If true, textnorm will be applied to text input. This feature is enabled by default. Only applies for Gemini TTS. |
getLowLatencyJourneySynthesis
Only for Journey voices. If false, the synthesis is context aware and has a higher latency.
| Returns | |
|---|---|
| Type | Description |
bool |
|
hasLowLatencyJourneySynthesis
clearLowLatencyJourneySynthesis
setLowLatencyJourneySynthesis
Only for Journey voices. If false, the synthesis is context aware and has a higher latency.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRelaxSafetyFilters
Optional. Input only. Deprecated, use safety_settings instead.
If true, relaxes safety filters for Gemini TTS.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setRelaxSafetyFilters
Optional. Input only. Deprecated, use safety_settings instead.
If true, relaxes safety filters for Gemini TTS.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSafetySettings
Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the safety setting will be blocked if the harm probability is above the threshold. Otherwise, the safety filter will be disabled by default.
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions\SafetySettings|null |
|
hasSafetySettings
clearSafetySettings
setSafetySettings
Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the safety setting will be blocked if the harm probability is above the threshold. Otherwise, the safety filter will be disabled by default.
| Parameter | |
|---|---|
| Name | Description |
var |
AdvancedVoiceOptions\SafetySettings
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEnableTextnorm
Optional. If true, textnorm will be applied to text input. This feature is enabled by default. Only applies for Gemini TTS.
| Returns | |
|---|---|
| Type | Description |
bool |
|
hasEnableTextnorm
clearEnableTextnorm
setEnableTextnorm
Optional. If true, textnorm will be applied to text input. This feature is enabled by default. Only applies for Gemini TTS.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|