AudioVisualSource Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. ContentSource - com.
azure. ai. contentunderstanding. models. AudioVisualSource
- com.
- com.
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 |
| Duration |
getTime()
Gets the time as a Duration. |
|
static
List<Audio |
parse(String source)
Parses a source string containing one or more audio/visual source segments separated by |
Methods inherited from ContentSource
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:
null.getTime
public Duration getTime()
Gets the time as a Duration.
Returns:
parse
public static List<AudioVisualSource> parse(String source)
Parses a source string containing one or more audio/visual source segments separated by ;.
Parameters:
; delimiters).
Returns: