Enum AudioStreamWaveFormat
- java.lang.Object
-
- java.lang.Enum<AudioStreamWaveFormat>
-
- com.microsoft.cognitiveservices.speech.audio.AudioStreamWaveFormat
-
- All Implemented Interfaces:
Serializable,Comparable<AudioStreamWaveFormat>
public enum AudioStreamWaveFormat extends Enum<AudioStreamWaveFormat>
Represents the format specified inside WAV container.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()Returns the internal value Audio Stream Wave Formatstatic AudioStreamWaveFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static AudioStreamWaveFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PCM
public static final AudioStreamWaveFormat PCM
AudioStreamWaveFormat definition for PCM (pulse-code modulated) data in integer format.
-
ALAW
public static final AudioStreamWaveFormat ALAW
AudioStreamWaveFormat definition for A-law-encoded format.
-
MULAW
public static final AudioStreamWaveFormat MULAW
AudioStreamWaveFormat definition for Mu-law-encoded format.
-
-
Method Detail
-
values
public static AudioStreamWaveFormat[] 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 (AudioStreamWaveFormat c : AudioStreamWaveFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AudioStreamWaveFormat 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 Wave Format- Returns:
- the Audio Stream Wave Format
-
-