AudioTranslation Class
- java.
lang. Object - com.
azure. ai. openai. models. AudioTranslation
- com.
Implements
public final class AudioTranslation
implements JsonSerializable<AudioTranslation>
Result information for an operation that translated spoken audio into written text.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Audio |
from Reads an instance of Audio |
Duration |
get Get the duration property: The total duration of the audio processed to produce accompanying translation information. |
String |
get Get the language property: The spoken language that was detected in the translated audio data. |
List<Audio |
get Get the segments property: A collection of information about the timing, probabilities, and other detail of each processed audio segment. |
Audio |
get Get the task property: The label that describes which operation type generated the accompanying response data. |
String |
get Get the text property: The translated text for the provided audio data. |
Json |
to |
Methods inherited from java.lang.Object
Method Details
fromJson
public static AudioTranslation fromJson(JsonReader jsonReader)
Reads an instance of AudioTranslation from the JsonReader.
Parameters:
Returns:
Throws:
getDuration
public Duration getDuration()
Get the duration property: The total duration of the audio processed to produce accompanying translation information.
Returns:
getLanguage
public String getLanguage()
Get the language property: The spoken language that was detected in the translated audio data. This is expressed as a two-letter ISO-639-1 language code like 'en' or 'fr'.
Returns:
getSegments
public List
Get the segments property: A collection of information about the timing, probabilities, and other detail of each processed audio segment.
Returns:
getTask
public AudioTaskLabel getTask()
Get the task property: The label that describes which operation type generated the accompanying response data.
Returns:
getText
public String getText()
Get the text property: The translated text for the provided audio data.
Returns:
toJson
Azure SDK for Java feedback
Azure SDK for Java is an open source project. Select a link to provide feedback: