AudioAnnotate

AudioAnnotate[audio,prop]

computes the property prop and adds it as an annotation to audio.

AudioAnnotate[audio,namespec]

adds an annotation with the specified name and values spec to audio.

Details

  • AudioAnnotate is used to store and manipulate annotations for Audio objects.
  • With AudioAnnotate[audio,], annotations will be populated with the computed or specified annotations.
  • Use AudioAnnotationLookup to access and modify annotations.
  • The property prop can be any of the properties supported by AudioLocalMeasurements.
  • Additional supported properties prop include:
  • "Audible"audible intervals, RMS amplitude above 0.01
    "Inaudible"inaudible intervals, RMS amplitude less than or equal to 0.01
    "Loud"louder intervals, data-dependent threshold
    "Quiet"quieter intervals, data-dependent threshold
    "Transients"times corresponding to the beginning of any event
  • Annotation value spec can be any of the following:
  • {t1val1,}a list of time stamps and values
    {{t11,t12}v1,}a list of time intervals and values
    {t1,t2,}a list of time stamps
    {{t11,t12},}a list of time intervals
    TimeSeries[]a time series
    {<|"Time"t,,|>}a list of associations with at least a "Time" key
    critany criterion supported by AudioIntervals

Examples

open all close all

Basic Examples  (2)

Annotate an Audio object with explicit annotations:

In[1]:=
Click for copyable input

Retrieve annotations using AudioAnnotationLookup:

In[2]:=
Click for copyable input
Out[2]=

Automatically compute annotations for an Audio object:

In[1]:=
Click for copyable input

Retrieve all the annotations using AudioAnnotationLookup:

In[2]:=
Click for copyable input
Out[2]=

Scope  (5)

Introduced in 2019
(12.0)