Interface AdvancedVoiceOptionsOrBuilder (2.92.0)

public interface AdvancedVoiceOptionsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEnableTextnorm()

public abstract boolean getEnableTextnorm()

Optional. If true, textnorm will be applied to text input. This feature is enabled by default. Only applies for Gemini TTS.

optional bool enable_textnorm = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enableTextnorm.

getLowLatencyJourneySynthesis()

public abstract boolean getLowLatencyJourneySynthesis()

Only for Journey voices. If false, the synthesis is context aware and has a higher latency.

optional bool low_latency_journey_synthesis = 1;

Returns
Type Description
boolean

The lowLatencyJourneySynthesis.

getRelaxSafetyFilters() (deprecated)

public abstract boolean getRelaxSafetyFilters()

Deprecated. google.cloud.texttospeech.v1.AdvancedVoiceOptions.relax_safety_filters is deprecated. See google/cloud/texttospeech/v1/cloud_tts.proto;l=224

Optional. Input only. Deprecated, use safety_settings instead. If true, relaxes safety filters for Gemini TTS.

bool relax_safety_filters = 8 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The relaxSafetyFilters.

getSafetySettings()

public abstract AdvancedVoiceOptions.SafetySettings 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.

.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdvancedVoiceOptions.SafetySettings

The safetySettings.

getSafetySettingsOrBuilder()

public abstract AdvancedVoiceOptions.SafetySettingsOrBuilder getSafetySettingsOrBuilder()

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.

.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdvancedVoiceOptions.SafetySettingsOrBuilder

hasEnableTextnorm()

public abstract boolean hasEnableTextnorm()

Optional. If true, textnorm will be applied to text input. This feature is enabled by default. Only applies for Gemini TTS.

optional bool enable_textnorm = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the enableTextnorm field is set.

hasLowLatencyJourneySynthesis()

public abstract boolean hasLowLatencyJourneySynthesis()

Only for Journey voices. If false, the synthesis is context aware and has a higher latency.

optional bool low_latency_journey_synthesis = 1;

Returns
Type Description
boolean

Whether the lowLatencyJourneySynthesis field is set.

hasSafetySettings()

public abstract boolean hasSafetySettings()

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.

.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the safetySettings field is set.