AudioTranscriptionWord Class
- java.
lang. Object - com.
azure. ai. openai. models. AudioTranscriptionWord
- com.
Implements
public final class AudioTranscriptionWord
implements JsonSerializable<AudioTranscriptionWord>
Extended information about a single transcribed word, as provided on responses when the 'word' timestamp granularity is provided.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Audio |
fromJson(JsonReader jsonReader)
Reads an instance of Audio |
Duration |
getEnd()
Get the end property: The end time of the word relative to the beginning of the audio, expressed in seconds. |
Duration |
getStart()
Get the start property: The start time of the word relative to the beginning of the audio, expressed in seconds. |
String |
getWord()
Get the word property: The textual content of the word. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static AudioTranscriptionWord fromJson(JsonReader jsonReader)
Reads an instance of AudioTranscriptionWord from the JsonReader.
Parameters:
Returns:
Throws:
getEnd
public Duration getEnd()
Get the end property: The end time of the word relative to the beginning of the audio, expressed in seconds.
Returns:
getStart
public Duration getStart()
Get the start property: The start time of the word relative to the beginning of the audio, expressed in seconds.
Returns:
getWord
public String getWord()
Get the word property: The textual content of the word.
Returns:
toJson
Applies to
Azure SDK for Java