Package com.google.cloud.dialogflow.v2
Enum OutputAudioEncoding
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<OutputAudioEncoding>
@Generated
public enum OutputAudioEncoding
extends Enum<OutputAudioEncoding>
implements com.google.protobuf.ProtocolMessageEnum
Audio encoding of the output audio format in Text-To-Speech.Protobuf enum
google.cloud.dialogflow.v2.OutputAudioEncoding-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law.Uncompressed 16-bit signed little-endian samples (Linear PCM).MP3 audio at 32kbps.MP3 audio at 64kbps.8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.Opus encoded audio wrapped in an ogg container.Not specified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law.static final intUncompressed 16-bit signed little-endian samples (Linear PCM).static final intMP3 audio at 64kbps.static final intMP3 audio at 32kbps.static final int8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.static final intOpus encoded audio wrapped in an ogg container.static final intNot specified. -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputAudioEncodingforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<OutputAudioEncoding>static OutputAudioEncodingvalueOf(int value) Deprecated.static OutputAudioEncodingvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static OutputAudioEncodingReturns the enum constant of this type with the specified name.static OutputAudioEncoding[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OUTPUT_AUDIO_ENCODING_UNSPECIFIED
Not specified.
OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0; -
OUTPUT_AUDIO_ENCODING_LINEAR_16
Uncompressed 16-bit signed little-endian samples (Linear PCM). Audio content returned as LINEAR16 also contains a WAV header.
OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; -
OUTPUT_AUDIO_ENCODING_MP3
MP3 audio at 32kbps.
OUTPUT_AUDIO_ENCODING_MP3 = 2; -
OUTPUT_AUDIO_ENCODING_MP3_64_KBPS
MP3 audio at 64kbps.
OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4; -
OUTPUT_AUDIO_ENCODING_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.
OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3; -
OUTPUT_AUDIO_ENCODING_MULAW
8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
OUTPUT_AUDIO_ENCODING_MULAW = 5; -
OUTPUT_AUDIO_ENCODING_ALAW
8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law.
OUTPUT_AUDIO_ENCODING_ALAW = 6; -
UNRECOGNIZED
-
-
Field Details
-
OUTPUT_AUDIO_ENCODING_UNSPECIFIED_VALUE
public static final int OUTPUT_AUDIO_ENCODING_UNSPECIFIED_VALUENot specified.
OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0;- See Also:
-
OUTPUT_AUDIO_ENCODING_LINEAR_16_VALUE
public static final int OUTPUT_AUDIO_ENCODING_LINEAR_16_VALUEUncompressed 16-bit signed little-endian samples (Linear PCM). Audio content returned as LINEAR16 also contains a WAV header.
OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1;- See Also:
-
OUTPUT_AUDIO_ENCODING_MP3_VALUE
public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUEMP3 audio at 32kbps.
OUTPUT_AUDIO_ENCODING_MP3 = 2;- See Also:
-
OUTPUT_AUDIO_ENCODING_MP3_64_KBPS_VALUE
public static final int OUTPUT_AUDIO_ENCODING_MP3_64_KBPS_VALUEMP3 audio at 64kbps.
OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4;- See Also:
-
OUTPUT_AUDIO_ENCODING_OGG_OPUS_VALUE
public static final int OUTPUT_AUDIO_ENCODING_OGG_OPUS_VALUEOpus 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.
OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3;- See Also:
-
OUTPUT_AUDIO_ENCODING_MULAW_VALUE
public static final int OUTPUT_AUDIO_ENCODING_MULAW_VALUE8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
OUTPUT_AUDIO_ENCODING_MULAW = 5;- See Also:
-
OUTPUT_AUDIO_ENCODING_ALAW_VALUE
public static final int OUTPUT_AUDIO_ENCODING_ALAW_VALUE8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law.
OUTPUT_AUDIO_ENCODING_ALAW = 6;- 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
-
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
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
-