Freigeben über


AudioVisualSource Class

public final class AudioVisualSource
extends ContentSource

Represents a parsed audio/visual grounding source in the format AV(time[,x,y,w,h]).

The time is in milliseconds. The bounding box (x, y, width, height) is optional and present only when spatial information is available (e.g., face detection).

Method Summary

Modifier and Type Method and Description
Rectangle getBoundingBox()

Gets the bounding box in pixel coordinates, or null if no spatial information is available (e.g., audio-only).

Duration getTime()

Gets the time as a Duration.

static List<AudioVisualSource> parse(String source)

Parses a source string containing one or more audio/visual source segments separated by ;.

Methods inherited from ContentSource

equals getRawValue hashCode parseAll com.azure.ai.contentunderstanding.models.ContentSource.toRawString(java.util.List< toString

Methods inherited from java.lang.Object

Method Details

getBoundingBox

public Rectangle getBoundingBox()

Gets the bounding box in pixel coordinates, or null if no spatial information is available (e.g., audio-only).

Returns:

The bounding box, or null.

getTime

public Duration getTime()

Gets the time as a Duration.

Returns:

The time as a Duration.

parse

public static List<AudioVisualSource> parse(String source)

Parses a source string containing one or more audio/visual source segments separated by ;.

Parameters:

source - The source string (may contain ; delimiters).

Returns:

An unmodifiable list of AudioVisualSource instances.

Applies to