AudioTranscription Class
- java.
lang. Object - com.
azure. ai. openai. models. AudioTranscription
- com.
Implements
public final class AudioTranscription
implements JsonSerializable<AudioTranscription>
Result information for an operation that transcribed spoken audio into written text.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Audio |
fromJson(JsonReader jsonReader)
Reads an instance of Audio |
Duration |
getDuration()
Get the duration property: The total duration of the audio processed to produce accompanying transcription information. |
String |
getLanguage()
Get the language property: The spoken language that was detected in the transcribed audio data. |
List<Audio |
getSegments()
Get the segments property: A collection of information about the timing, probabilities, and other detail of each processed audio segment. |
Audio |
getTask()
Get the task property: The label that describes which operation type generated the accompanying response data. |
String |
getText()
Get the text property: The transcribed text for the provided audio data. |
List<Audio |
getWords()
Get the words property: A collection of information about the timing of each processed word. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static AudioTranscription fromJson(JsonReader jsonReader)
Reads an instance of AudioTranscription from the JsonReader.
Parameters:
Returns:
Throws:
getDuration
public Duration getDuration()
Get the duration property: The total duration of the audio processed to produce accompanying transcription information.
Returns:
getLanguage
public String getLanguage()
Get the language property: The spoken language that was detected in the transcribed 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 transcribed text for the provided audio data.
Returns:
getWords
public List
Get the words property: A collection of information about the timing of each processed word.
Returns:
toJson
Applies to
Azure SDK for Java