Package com.azure.ai.openai.models
Class AudioTranscriptionWord
java.lang.Object
com.azure.ai.openai.models.AudioTranscriptionWord
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AudioTranscriptionWord>
public final class AudioTranscriptionWord
extends Object
implements com.azure.json.JsonSerializable<AudioTranscriptionWord>
Extended information about a single transcribed word, as provided on responses when the 'word' timestamp granularity
is provided.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AudioTranscriptionWordfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AudioTranscriptionWord from the JsonReader.getEnd()Get the end property: The end time of the word relative to the beginning of the audio, expressed in seconds.getStart()Get the start property: The start time of the word relative to the beginning of the audio, expressed in seconds.getWord()Get the word property: The textual content of the word.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter)
-
Method Details
-
getWord
Get the word property: The textual content of the word.- Returns:
- the word value.
-
getStart
Get the start property: The start time of the word relative to the beginning of the audio, expressed in seconds.- Returns:
- the start value.
-
getEnd
Get the end property: The end time of the word relative to the beginning of the audio, expressed in seconds.- Returns:
- the end value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AudioTranscriptionWord>- Throws:
IOException
-
fromJson
public static AudioTranscriptionWord fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AudioTranscriptionWord from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AudioTranscriptionWord if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AudioTranscriptionWord.
-