AudioMeasurements

AudioMeasurements[audio,"prop"]

computes the property "prop" for the entire audio.

AudioMeasurements[audio,{"prop1","prop2",}]

computes several properties "propi".

AudioMeasurements[audio,"prop",format]

returns the values in the specified output format.

AudioMeasurements[{audio1,audio2,},]

returns measurements for all audioi.

Details and Options

  • AudioMeasurements[audio,"Properties"] gives names of all available properties as a list of strings.
  • Global audio properties:
  • "Channels"number of channels
    "Duration"duration
    "Length"number of samples
    "SampleRate"sample rate in Hz
    "Type"data type
  • All of the following properties are computed on the average channel values.
  • Basic histogram properties:
  • "Max"maximum value
    "MaxAbs"maximum absolute value
    "Min"minimum value
    "MinAbs"minimum absolute value
    "MinMax"minimum and maximum values
    "MinMaxAbs"minimum and maximum absolute values
    "Mean"mean value
    "Median"median value
    "ApproximateMedian"approximate median
    "StandardDeviation"standard deviation of values
    "Total"sum of values
  • Intensity properties:
  • "Loudness"computed with Stevens's power law ()
    "LoudnessEBU"perceptual loudness (in LUFS) using the EBU standard
    "LoudnessRangeEBU"perceptual loudness range using the EBU standard
    "Power"mean of the squared values
    "RMSAmplitude"root mean square of the values
  • Time domain properties:
  • "CrestFactor"maximum divided by the root mean square
    "PeakToAveragePowerRatio"maximum power divided by the average power
    "TemporalCentroid"temporal centroid of values
    "ZeroCrossings"number of zero crossings
    "ZeroCrossingRate"rate of zero crossings
  • Frequency domain properties:
  • "SpectralCentroid"centroid of the power spectrum
    "SpectralCrest"maximum divided by the mean of the power spectrum
    "SpectralFlatness"geometric mean divided by the mean of the power spectrum
    "SpectralKurtosis"kurtosis of the magnitude spectrum
    "SpectralRollOff"frequency below which most of the energy is concentrated
    "SpectralSkewness"skewness of the magnitude spectrum
    "SpectralSlope"estimated slope of the magnitude spectrum
    "SpectralSpread"measure of the bandwidth of the power spectrum
  • By default, a list of property values is returned. Other format specifications include:
  • Automaticdetermine the output automatically
    "Association"format the result as an Association
    "Dataset"format the result as a Dataset
    "List"format the result as a List
    "RuleList"format the result as a list of Rule expressions

Examples

open allclose all

Basic Examples  (2)

Compute the minimum and maximum sample values in an audio object:

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

Compute multiple properties:

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

Scope  (3)

Applications  (3)

Properties & Relations  (1)

See Also

AudioLocalMeasurements  Audio  AudioType  Duration  AudioSampleRate  ImageMeasurements

Introduced in 2016
(11.0)
| Updated in 2017
(11.1)