public enum SsmlVoiceGender extends java.lang.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.v1beta1.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(java.lang.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.
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.
NEUTRAL = 3;
public static SsmlVoiceGender[] values()
for (SsmlVoiceGender c : SsmlVoiceGender.values()) System.out.println(c);
public static SsmlVoiceGender valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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.public static SsmlVoiceGender forNumber(int value)
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)