Package com.google.cloud.speech.v2
Enum ExplicitDecodingConfig.AudioEncoding
java.lang.Object
java.lang.Enum<ExplicitDecodingConfig.AudioEncoding>
com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ExplicitDecodingConfig.AudioEncoding>
- Enclosing class:
- ExplicitDecodingConfig
public static enum ExplicitDecodingConfig.AudioEncoding
extends Enum<ExplicitDecodingConfig.AudioEncoding>
implements com.google.protobuf.ProtocolMessageEnum
Supported audio data encodings.Protobuf enum
google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHeaderless 8-bit companded alaw samples.AMR frames with an rfc4867.5 header.AMR-WB frames with an rfc4867.5 header.Default value.FLAC frames in the "native FLAC" container format.Headerless 16-bit signed little-endian PCM samples.AAC audio frames in an M4A container.AAC audio frames in an MOV container.MPEG audio frames with optional (ignored) ID3 metadata.AAC audio frames in an MP4 container.Headerless 8-bit companded mulaw samples.Opus audio frames in an Ogg container.Opus audio frames in a WebM container. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intHeaderless 8-bit companded alaw samples.static final intAMR frames with an rfc4867.5 header.static final intAMR-WB frames with an rfc4867.5 header.static final intDefault value.static final intFLAC frames in the "native FLAC" container format.static final intHeaderless 16-bit signed little-endian PCM samples.static final intAAC audio frames in an M4A container.static final intAAC audio frames in an MOV container.static final intMPEG audio frames with optional (ignored) ID3 metadata.static final intAAC audio frames in an MP4 container.static final intHeaderless 8-bit companded mulaw samples.static final intOpus audio frames in an Ogg container.static final intOpus audio frames in a WebM container. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ExplicitDecodingConfig.AudioEncoding>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.static ExplicitDecodingConfig.AudioEncoding[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AUDIO_ENCODING_UNSPECIFIED
Default value. This value is unused.
AUDIO_ENCODING_UNSPECIFIED = 0; -
LINEAR16
Headerless 16-bit signed little-endian PCM samples.
LINEAR16 = 1; -
MULAW
Headerless 8-bit companded mulaw samples.
MULAW = 2; -
ALAW
Headerless 8-bit companded alaw samples.
ALAW = 3; -
AMR
AMR frames with an rfc4867.5 header.
AMR = 4; -
AMR_WB
AMR-WB frames with an rfc4867.5 header.
AMR_WB = 5; -
FLAC
FLAC frames in the "native FLAC" container format.
FLAC = 6; -
MP3
MPEG audio frames with optional (ignored) ID3 metadata.
MP3 = 7; -
OGG_OPUS
Opus audio frames in an Ogg container.
OGG_OPUS = 8; -
WEBM_OPUS
Opus audio frames in a WebM container.
WEBM_OPUS = 9; -
MP4_AAC
AAC audio frames in an MP4 container.
MP4_AAC = 10; -
M4A_AAC
AAC audio frames in an M4A container.
M4A_AAC = 11; -
MOV_AAC
AAC audio frames in an MOV container.
MOV_AAC = 12; -
UNRECOGNIZED
-
-
Field Details
-
AUDIO_ENCODING_UNSPECIFIED_VALUE
public static final int AUDIO_ENCODING_UNSPECIFIED_VALUEDefault value. This value is unused.
AUDIO_ENCODING_UNSPECIFIED = 0;- See Also:
-
LINEAR16_VALUE
public static final int LINEAR16_VALUEHeaderless 16-bit signed little-endian PCM samples.
LINEAR16 = 1;- See Also:
-
MULAW_VALUE
public static final int MULAW_VALUEHeaderless 8-bit companded mulaw samples.
MULAW = 2;- See Also:
-
ALAW_VALUE
public static final int ALAW_VALUEHeaderless 8-bit companded alaw samples.
ALAW = 3;- See Also:
-
AMR_VALUE
public static final int AMR_VALUEAMR frames with an rfc4867.5 header.
AMR = 4;- See Also:
-
AMR_WB_VALUE
public static final int AMR_WB_VALUEAMR-WB frames with an rfc4867.5 header.
AMR_WB = 5;- See Also:
-
FLAC_VALUE
public static final int FLAC_VALUEFLAC frames in the "native FLAC" container format.
FLAC = 6;- See Also:
-
MP3_VALUE
public static final int MP3_VALUEMPEG audio frames with optional (ignored) ID3 metadata.
MP3 = 7;- See Also:
-
OGG_OPUS_VALUE
public static final int OGG_OPUS_VALUEOpus audio frames in an Ogg container.
OGG_OPUS = 8;- See Also:
-
WEBM_OPUS_VALUE
public static final int WEBM_OPUS_VALUEOpus audio frames in a WebM container.
WEBM_OPUS = 9;- See Also:
-
MP4_AAC_VALUE
public static final int MP4_AAC_VALUEAAC audio frames in an MP4 container.
MP4_AAC = 10;- See Also:
-
M4A_AAC_VALUE
public static final int M4A_AAC_VALUEAAC audio frames in an M4A container.
M4A_AAC = 11;- See Also:
-
MOV_AAC_VALUE
public static final int MOV_AAC_VALUEAAC audio frames in an MOV container.
MOV_AAC = 12;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<ExplicitDecodingConfig.AudioEncoding> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static ExplicitDecodingConfig.AudioEncoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-