Enum AudioStreamContainerFormat
- java.lang.Object
-
- java.lang.Enum<AudioStreamContainerFormat>
-
- com.microsoft.cognitiveservices.speech.audio.AudioStreamContainerFormat
-
- All Implemented Interfaces:
Serializable,Comparable<AudioStreamContainerFormat>
public enum AudioStreamContainerFormat extends Enum<AudioStreamContainerFormat>
Supported audio input container formats. Added in version 1.4.0.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALAWStream ContainerFormat definition for ALAW.AMRNBStream ContainerFormat definition for AMRNB.AMRWBStream ContainerFormat definition for AMRWB.ANYStream ContainerFormat definition for ANY other or unknown format.FLACStream ContainerFormat definition for FLAC.MP3Stream ContainerFormat definition for MP3.MULAWStream ContainerFormat definition for MULAW.OGG_OPUSStream ContainerFormat definition for OGG OPUS.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()Returns the internal value Audio Stream Container Formatstatic AudioStreamContainerFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static AudioStreamContainerFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OGG_OPUS
public static final AudioStreamContainerFormat OGG_OPUS
Stream ContainerFormat definition for OGG OPUS.
-
MP3
public static final AudioStreamContainerFormat MP3
Stream ContainerFormat definition for MP3.
-
FLAC
public static final AudioStreamContainerFormat FLAC
Stream ContainerFormat definition for FLAC. Added in version 1.7.0.
-
ALAW
public static final AudioStreamContainerFormat ALAW
Stream ContainerFormat definition for ALAW. Added in version 1.7.0.
-
MULAW
public static final AudioStreamContainerFormat MULAW
Stream ContainerFormat definition for MULAW. Added in version 1.7.0.
-
AMRNB
public static final AudioStreamContainerFormat AMRNB
Stream ContainerFormat definition for AMRNB. Currently not supported.
-
AMRWB
public static final AudioStreamContainerFormat AMRWB
Stream ContainerFormat definition for AMRWB. Currently not supported.
-
ANY
public static final AudioStreamContainerFormat ANY
Stream ContainerFormat definition for ANY other or unknown format.
-
-
Method Detail
-
values
public static AudioStreamContainerFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AudioStreamContainerFormat c : AudioStreamContainerFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AudioStreamContainerFormat valueOf(String name)
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
-
getValue
public int getValue()
Returns the internal value Audio Stream Container Format- Returns:
- the Audio Stream Container Format
-
-