Share via


AudioVisualContentSegment Class

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

Implements

public final class AudioVisualContentSegment
implements JsonSerializable<AudioVisualContentSegment>

Detected audio/visual content segment.

Method Summary

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

Reads an instance of AudioVisualContentSegment from the JsonReader.

String getCategory()

Get the category property: Classified content category.

Duration getEndTime()

Gets the endTime as a Duration.

String getSegmentId()

Get the segmentId property: Segment identifier.

ContentSpan getSpan()

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

Duration getStartTime()

Gets the startTime as a Duration.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static AudioVisualContentSegment fromJson(JsonReader jsonReader)

Reads an instance of AudioVisualContentSegment from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getCategory

public String getCategory()

Get the category property: Classified content category.

Returns:

the category value.

getEndTime

public Duration getEndTime()

Gets the endTime as a Duration.

Returns:

the duration.

getSegmentId

public String getSegmentId()

Get the segmentId property: Segment identifier.

Returns:

the segmentId value.

getSpan

public ContentSpan getSpan()

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

Returns:

the span value.

getStartTime

public Duration getStartTime()

Gets the startTime as a Duration.

Returns:

the duration.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to