public enum AudioEncoding extends java.lang.Enum<AudioEncoding> implements ProtocolMessageEnum
Configuration to set up audio encoder. The encoding determines the output audio format that we'd like.Protobuf enum
google.cloud.texttospeech.v1beta1.AudioEncoding
Enum Constant and Description |
---|
AUDIO_ENCODING_UNSPECIFIED
Not specified.
|
LINEAR16
Uncompressed 16-bit signed little-endian samples (Linear PCM).
|
MP3
MP3 audio.
|
OGG_OPUS
Opus encoded audio wrapped in an ogg container.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
AUDIO_ENCODING_UNSPECIFIED_VALUE
Not specified.
|
static int |
LINEAR16_VALUE
Uncompressed 16-bit signed little-endian samples (Linear PCM).
|
static int |
MP3_VALUE
MP3 audio.
|
static int |
OGG_OPUS_VALUE
Opus encoded audio wrapped in an ogg container.
|
Modifier and Type | Method and Description |
---|---|
static AudioEncoding |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<AudioEncoding> |
internalGetValueMap() |
static AudioEncoding |
valueOf(Descriptors.EnumValueDescriptor desc) |
static AudioEncoding |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static AudioEncoding |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AudioEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AudioEncoding AUDIO_ENCODING_UNSPECIFIED
Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
AUDIO_ENCODING_UNSPECIFIED = 0;
public static final AudioEncoding LINEAR16
Uncompressed 16-bit signed little-endian samples (Linear PCM). Audio content returned as LINEAR16 also contains a WAV header.
LINEAR16 = 1;
public static final AudioEncoding MP3
MP3 audio.
MP3 = 2;
public static final AudioEncoding OGG_OPUS
Opus encoded audio wrapped in an ogg container. The result will be a file which can be played natively on Android, and in browsers (at least Chrome and Firefox). The quality of the encoding is considerably higher than MP3 while using approximately the same bitrate.
OGG_OPUS = 3;
public static final AudioEncoding UNRECOGNIZED
public static final int AUDIO_ENCODING_UNSPECIFIED_VALUE
Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
AUDIO_ENCODING_UNSPECIFIED = 0;
public static final int LINEAR16_VALUE
Uncompressed 16-bit signed little-endian samples (Linear PCM). Audio content returned as LINEAR16 also contains a WAV header.
LINEAR16 = 1;
public static final int MP3_VALUE
MP3 audio.
MP3 = 2;
public static final int OGG_OPUS_VALUE
Opus encoded audio wrapped in an ogg container. The result will be a file which can be played natively on Android, and in browsers (at least Chrome and Firefox). The quality of the encoding is considerably higher than MP3 while using approximately the same bitrate.
OGG_OPUS = 3;
public static AudioEncoding[] values()
for (AudioEncoding c : AudioEncoding.values()) System.out.println(c);
public static AudioEncoding 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 AudioEncoding valueOf(int value)
forNumber(int)
instead.public static AudioEncoding forNumber(int value)
public static Internal.EnumLiteMap<AudioEncoding> 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 AudioEncoding valueOf(Descriptors.EnumValueDescriptor desc)