AudioAnnotationLookup

AudioAnnotationLookup[audio]

gives all annotations associated to audio.

AudioAnnotationLookup[audio,tags]

gives the annotations specified by tags.

AudioAnnotationLookup[audio,tagsselector]

gives a selection of annotations using selector.

AudioAnnotationLookup[audio,tagsselector,format]

formats each annotation element according to format.

Details

  • Annotations are used to store and manipulate comments or local metadata for Audio objects.
  • AudioAnnotationLookup can be used to select and retrieve annotations at specific locations or based on desired criteria.
  • Tags specification tags can be any of the following:
  • Allall tags
    "tag"annotations labeled as "tag"
    {"tag1","tag2",}annotations labeled as any specified "tagi"
  • The selector can be any of the following:
  • tannotations present at time t
    Interval[{t1,t2}]annotations intersecting with the time interval
    fan arbitrary function applied to each element
    {selector1,selector2,}a list of selector specifications
  • The arbitrary function f is applied to the association corresponding to each annotation element.
  • Use AudioAnnotate to automatically compute and store audio annotations.

Examples

open allclose all

Basic Examples  (2)

Annotate an Audio object:

Retrieve all annotations using AudioAnnotationLookup:

Annotate an Audio object:

Retrieve an annotation with a specific tag:

Scope  (6)

Annotate an Audio object:

Select all annotations that intersect with the time .2:

Annotate an Audio object:

Select all annotations between times .1 and 1:

Select all annotations belonging to the tag "Loud" between times .1 and 1:

Annotate an Audio object:

Select all annotations using a custom function:

If multiple selection criteria are used, an annotation element is selected if any of them return True:

Construct a single custom function if other behaviors are needed:

Annotate an Audio object:

Format the output annotation as a list of intervals:

Format the output annotation as a TimeSeries:

Annotate an Audio object:

Format the output annotation using a custom function:

Introduced in 2019
 (12.0)