AudioTranscriptionWord Class

  • java.lang.Object
    • com.azure.ai.openai.models.AudioTranscriptionWord

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 AudioTranscriptionWord fromJson(JsonReader jsonReader)

Reads an instance of AudioTranscriptionWord from the JsonReader.

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.

JsonWriter 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:

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:

IOException

- If the deserialized JSON object was missing any required properties.

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:

the end value.

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:

the start value.

getWord

public String getWord()

Get the word property: The textual content of the word.

Returns:

the word value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to