Share via


AudioVisualContent Class

public final class AudioVisualContent
extends AnalysisContent

Audio visual content. Ex. audio/wav, video/mp4.

Method Summary

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

Reads an instance of AudioVisualContent from the JsonReader.

List<Duration> getCameraShotTimes()

Gets the cameraShotTimes as a list of Duration values.

Duration getEndTime()

Gets the endTime as a Duration.

Integer getHeight()

Get the height property: Height of each video frame in pixels, if applicable.

List<Duration> getKeyFrameTimes()

Gets the keyFrameTimes as a list of Duration values.

AnalysisContentKind getKind()

Get the kind property: Content kind.

List<AudioVisualContentSegment> getSegments()

Get the segments property: List of detected content segments.

Duration getStartTime()

Gets the startTime as a Duration.

List<TranscriptPhrase> getTranscriptPhrases()

Get the transcriptPhrases property: List of transcript phrases.

Integer getWidth()

Get the width property: Width of each video frame in pixels, if applicable.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from AnalysisContent

Methods inherited from java.lang.Object

Method Details

fromJson

public static AudioVisualContent fromJson(JsonReader jsonReader)

Reads an instance of AudioVisualContent from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getCameraShotTimes

public List<Duration> getCameraShotTimes()

Gets the cameraShotTimes as a list of Duration values.

Returns:

the durations, or null if not available.

getEndTime

public Duration getEndTime()

Gets the endTime as a Duration.

Returns:

the duration.

getHeight

public Integer getHeight()

Get the height property: Height of each video frame in pixels, if applicable.

Returns:

the height value.

getKeyFrameTimes

public List<Duration> getKeyFrameTimes()

Gets the keyFrameTimes as a list of Duration values.

Returns:

the durations, or null if not available.

getKind

public AnalysisContentKind getKind()

Get the kind property: Content kind.

Overrides:

AudioVisualContent.getKind()

Returns:

the kind value.

getSegments

public List<AudioVisualContentSegment> getSegments()

Get the segments property: List of detected content segments. Only if enableSegment is true.

Returns:

the segments value.

getStartTime

public Duration getStartTime()

Gets the startTime as a Duration.

Returns:

the duration.

getTranscriptPhrases

public List<TranscriptPhrase> getTranscriptPhrases()

Get the transcriptPhrases property: List of transcript phrases. Only if returnDetails is true.

Returns:

the transcriptPhrases value.

getWidth

public Integer getWidth()

Get the width property: Width of each video frame in pixels, if applicable.

Returns:

the width value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AudioVisualContent.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to