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