Class AdvancedVoiceOptions (2.92.0)

public final class AdvancedVoiceOptions extends GeneratedMessage implements AdvancedVoiceOptionsOrBuilder

Used for advanced voice options.

Protobuf type google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions

Static Fields

ENABLE_TEXTNORM_FIELD_NUMBER

public static final int ENABLE_TEXTNORM_FIELD_NUMBER
Field Value
Type Description
int

LOW_LATENCY_JOURNEY_SYNTHESIS_FIELD_NUMBER

public static final int LOW_LATENCY_JOURNEY_SYNTHESIS_FIELD_NUMBER
Field Value
Type Description
int

RELAX_SAFETY_FILTERS_FIELD_NUMBER

public static final int RELAX_SAFETY_FILTERS_FIELD_NUMBER
Field Value
Type Description
int

SAFETY_SETTINGS_FIELD_NUMBER

public static final int SAFETY_SETTINGS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AdvancedVoiceOptions getDefaultInstance()
Returns
Type Description
AdvancedVoiceOptions

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AdvancedVoiceOptions.Builder newBuilder()
Returns
Type Description
AdvancedVoiceOptions.Builder

newBuilder(AdvancedVoiceOptions prototype)

public static AdvancedVoiceOptions.Builder newBuilder(AdvancedVoiceOptions prototype)
Parameter
Name Description
prototype AdvancedVoiceOptions
Returns
Type Description
AdvancedVoiceOptions.Builder

parseDelimitedFrom(InputStream input)

public static AdvancedVoiceOptions parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AdvancedVoiceOptions
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdvancedVoiceOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedVoiceOptions
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AdvancedVoiceOptions parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AdvancedVoiceOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AdvancedVoiceOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedVoiceOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AdvancedVoiceOptions parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AdvancedVoiceOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AdvancedVoiceOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedVoiceOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AdvancedVoiceOptions parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AdvancedVoiceOptions
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AdvancedVoiceOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedVoiceOptions
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AdvancedVoiceOptions parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AdvancedVoiceOptions
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdvancedVoiceOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedVoiceOptions
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AdvancedVoiceOptions parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AdvancedVoiceOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AdvancedVoiceOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedVoiceOptions
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AdvancedVoiceOptions> parser()
Returns
Type Description
Parser<AdvancedVoiceOptions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AdvancedVoiceOptions getDefaultInstanceForType()
Returns
Type Description
AdvancedVoiceOptions

getEnableTextnorm()

public 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 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.

getParserForType()

public Parser<AdvancedVoiceOptions> getParserForType()
Returns
Type Description
Parser<AdvancedVoiceOptions>
Overrides

getRelaxSafetyFilters() (deprecated)

public boolean getRelaxSafetyFilters()

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

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 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.v1beta1.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 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.v1beta1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdvancedVoiceOptions.SafetySettingsOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasEnableTextnorm()

public 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 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 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.v1beta1.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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AdvancedVoiceOptions.Builder newBuilderForType()
Returns
Type Description
AdvancedVoiceOptions.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AdvancedVoiceOptions.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AdvancedVoiceOptions.Builder
Overrides

toBuilder()

public AdvancedVoiceOptions.Builder toBuilder()
Returns
Type Description
AdvancedVoiceOptions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException