public enum SsmlVoiceGender extends Enum<SsmlVoiceGender> implements ProtocolMessageEnum
Gender of the voice as described in [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).Protobuf enum
google.cloud.texttospeech.v1.SsmlVoiceGender
Enum Constant and Description |
---|
FEMALE
A female voice.
|
MALE
A male voice.
|
NEUTRAL
A gender-neutral voice.
|
SSML_VOICE_GENDER_UNSPECIFIED
An unspecified gender.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
FEMALE_VALUE
A female voice.
|
static int |
MALE_VALUE
A male voice.
|
static int |
NEUTRAL_VALUE
A gender-neutral voice.
|
static int |
SSML_VOICE_GENDER_UNSPECIFIED_VALUE
An unspecified gender.
|
Modifier and Type | Method and Description |
---|---|
static SsmlVoiceGender |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<SsmlVoiceGender> |
internalGetValueMap() |
static SsmlVoiceGender |
valueOf(Descriptors.EnumValueDescriptor desc) |
static SsmlVoiceGender |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SsmlVoiceGender |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SsmlVoiceGender[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SsmlVoiceGender SSML_VOICE_GENDER_UNSPECIFIED
An unspecified gender. In VoiceSelectionParams, this means that the client doesn't care which gender the selected voice will have. In the Voice field of ListVoicesResponse, this may mean that the voice doesn't fit any of the other categories in this enum, or that the gender of the voice isn't known.
SSML_VOICE_GENDER_UNSPECIFIED = 0;
public static final SsmlVoiceGender MALE
A male voice.
MALE = 1;
public static final SsmlVoiceGender FEMALE
A female voice.
FEMALE = 2;
public static final SsmlVoiceGender NEUTRAL
A gender-neutral voice. This voice is not yet supported.
NEUTRAL = 3;
public static final SsmlVoiceGender UNRECOGNIZED
public static final int SSML_VOICE_GENDER_UNSPECIFIED_VALUE
An unspecified gender. In VoiceSelectionParams, this means that the client doesn't care which gender the selected voice will have. In the Voice field of ListVoicesResponse, this may mean that the voice doesn't fit any of the other categories in this enum, or that the gender of the voice isn't known.
SSML_VOICE_GENDER_UNSPECIFIED = 0;
public static final int MALE_VALUE
A male voice.
MALE = 1;
public static final int FEMALE_VALUE
A female voice.
FEMALE = 2;
public static final int NEUTRAL_VALUE
A gender-neutral voice. This voice is not yet supported.
NEUTRAL = 3;
public static SsmlVoiceGender[] values()
for (SsmlVoiceGender c : SsmlVoiceGender.values()) System.out.println(c);
public static SsmlVoiceGender valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static SsmlVoiceGender valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static SsmlVoiceGender forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<SsmlVoiceGender> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static SsmlVoiceGender valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.