Share via


TranscriptWord Class

  • java.lang.Object
    • com.azure.ai.contentunderstanding.models.TranscriptWord

Implements

public final class TranscriptWord
implements JsonSerializable<TranscriptWord>

Transcript word.

Method Summary

Modifier and Type Method and Description
static TranscriptWord fromJson(JsonReader jsonReader)

Reads an instance of TranscriptWord from the JsonReader.

Duration getEndTime()

Gets the endTime as a Duration.

ContentSpan getSpan()

Get the span property: Span of the word in the markdown content.

Duration getStartTime()

Gets the startTime as a Duration.

String getText()

Get the text property: Transcript text.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static TranscriptWord fromJson(JsonReader jsonReader)

Reads an instance of TranscriptWord from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TranscriptWord 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.

getEndTime

public Duration getEndTime()

Gets the endTime as a Duration.

Returns:

the duration.

getSpan

public ContentSpan getSpan()

Get the span property: Span of the word in the markdown content.

Returns:

the span value.

getStartTime

public Duration getStartTime()

Gets the startTime as a Duration.

Returns:

the duration.

getText

public String getText()

Get the text property: Transcript text.

Returns:

the text value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to