Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

ConformAudio

ConformAudio[{audio1,audio2,}]
returns a list of audio objects where all audioi are made to have conforming properties, including duration, data type, and number of channels.

ConformAudio[{audio1,audio2,},spec]
returns all audio objects of the specified spec.

Details and OptionsDetails and Options

  • ConformAudio is typically used as a preprocessing step to algorithms that need audio objects that are uniform in some way, such as classification, dimensionality reduction, and assembling into bigger audio objects.
  • Audio specification spec can be one of the following:
  • audiotake the conforming properties from audio
    durationduration given in seconds
    audiotypeaudio type as in AudioType
    {spec1,spec2,}specification for multiple properties
  • By default, the smallest audiotype that can represent the data stored in all audioi is used.
  • ConformImages[{audio1,audio2,}] pads all audio to the duration of the longest audioi.
  • ConformAudio has the same options as Audio with the following additions and changes:
  • AudioDeviceAutomaticdefault audio output device to use for playback
    SampleRateAutomaticsampling rate
    Padding0method used to make same duration audio

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Conform a list of audio objects:

In[1]:=
Click for copyable input

The properties of the result are conformed:

In[5]:=
Click for copyable input
Out[6]//TableForm=
Introduced in 2016
(11.0)