Package com.azure.ai.openai.models
Class AudioTranslationFormat
java.lang.Object
com.azure.core.util.ExpandableStringEnum<AudioTranslationFormat>
com.azure.ai.openai.models.AudioTranslationFormat
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class AudioTranslationFormat
extends com.azure.core.util.ExpandableStringEnum<AudioTranslationFormat>
Defines available options for the underlying response format of output translation information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AudioTranslationFormatUse a response body that is a JSON object containing a single 'text' field for the translation.static final AudioTranslationFormatUse a response body that is plain text in SubRip (SRT) format that also includes timing information.static final AudioTranslationFormatUse a response body that is plain text containing the raw, unannotated translation.static final AudioTranslationFormatUse a response body that is a JSON object containing translation text along with timing, segments, and other metadata.static final AudioTranslationFormatUse a response body that is plain text in Web Video Text Tracks (VTT) format that also includes timing information. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AudioTranslationFormatfromString(String name) Creates or finds a AudioTranslationFormat from its string representation.static Collection<AudioTranslationFormat> values()Gets known AudioTranslationFormat values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
JSON
Use a response body that is a JSON object containing a single 'text' field for the translation. -
VERBOSE_JSON
Use a response body that is a JSON object containing translation text along with timing, segments, and other metadata. -
TEXT
Use a response body that is plain text containing the raw, unannotated translation. -
SRT
Use a response body that is plain text in SubRip (SRT) format that also includes timing information. -
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.Use thefromString(String)factory method.Creates a new instance of AudioTranslationFormat value.
-
-
Method Details
-
fromString
Creates or finds a AudioTranslationFormat from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding AudioTranslationFormat.
-
values
Gets known AudioTranslationFormat values.- Returns:
- known AudioTranslationFormat values.
-
fromString(String)factory method.