Package com.azure.ai.openai.models
Class InputAudioFormat
java.lang.Object
com.azure.core.util.ExpandableStringEnum<InputAudioFormat>
com.azure.ai.openai.models.InputAudioFormat
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class InputAudioFormat
extends com.azure.core.util.ExpandableStringEnum<InputAudioFormat>
Values to describe the format of the input audio data.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InputAudioFormatSpecifies that the audio data is in the MP3 format.static final InputAudioFormatSpecifies that the audio data is in the WAV format. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InputAudioFormatfromString(String name) Creates or finds a InputAudioFormat from its string representation.static Collection<InputAudioFormat> values()Gets known InputAudioFormat values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
WAV
Specifies that the audio data is in the WAV format. -
MP3
Specifies that the audio data is in the MP3 format.
-
-
Constructor Details
-
InputAudioFormat
Deprecated.Use thefromString(String)factory method.Creates a new instance of InputAudioFormat value.
-
-
Method Details
-
fromString
Creates or finds a InputAudioFormat from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding InputAudioFormat.
-
values
Gets known InputAudioFormat values.- Returns:
- known InputAudioFormat values.
-
fromString(String)factory method.