AudioTranscriptionFormat Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. openai. models. AudioTranscriptionFormat
- com.
- com.
public final class AudioTranscriptionFormat
extends ExpandableStringEnum<AudioTranscriptionFormat>
Defines available options for the underlying response format of output transcription information.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Audio |
JSON
Use a response body that is a JSON object containing a single 'text' field for the transcription. |
static final
Audio |
SRT
Use a response body that is plain text in Sub |
static final
Audio |
TEXT
Use a response body that is plain text containing the raw, unannotated transcription. |
static final
Audio |
VERBOSE_JSON
Use a response body that is a JSON object containing transcription text along with timing, segments, and other metadata. |
static final
Audio |
VTT
Use a response body that is plain text in Web Video Text Tracks (VTT) format that also includes timing information. |
Constructor Summary
Constructor | Description |
---|---|
AudioTranscriptionFormat() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Audio |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Audio |
fromString(String name)
Creates or finds a Audio |
static
Collection<Audio |
values()
Gets known Audio |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
JSON
public static final AudioTranscriptionFormat JSON
Use a response body that is a JSON object containing a single 'text' field for the transcription.
SRT
public static final AudioTranscriptionFormat SRT
Use a response body that is plain text in SubRip (SRT) format that also includes timing information.
TEXT
public static final AudioTranscriptionFormat TEXT
Use a response body that is plain text containing the raw, unannotated transcription.
VERBOSE_JSON
public static final AudioTranscriptionFormat VERBOSE_JSON
Use a response body that is a JSON object containing transcription text along with timing, segments, and other metadata.
VTT
public static final AudioTranscriptionFormat VTT
Use a response body that is plain text in Web Video Text Tracks (VTT) format that also includes timing information.
Constructor Details
AudioTranscriptionFormat
@Deprecated
public AudioTranscriptionFormat()
Deprecated
Creates a new instance of AudioTranscriptionFormat value.
Method Details
fromString
public static AudioTranscriptionFormat fromString(String name)
Creates or finds a AudioTranscriptionFormat from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known AudioTranscriptionFormat values.
Returns:
Applies to
Azure SDK for Java