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 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.
  • ConformAudio[{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:
  • AudioOutputDeviceAutomaticdefault audio output device to use for playback
    SampleRateAutomaticsampling rate
    Padding0padding method available in AudioPad
  • By default, SampleRate->Automatic takes the highest sample rate in all audioi.

Examples

open allclose all

Basic Examples  (1)

Conform a list of audio objects:

The properties of the result are conformed:

Scope  (8)

Conform audio of different length:

Conform audio with different sample rates:

Conform audio with a different data type:

Conform audio with a different number of channels:

Conform audio using another Audio object to specify the operation:

Conform audio using a specified duration:

Conform audio using a specified audio type:

Conform audio using a list of specifications:

Properties & Relations  (1)

Use ConformAudio to resample an audio signal:

Wolfram Research (2016), ConformAudio, Wolfram Language function, https://reference.wolfram.com/language/ref/ConformAudio.html (updated 2017).

Text

Wolfram Research (2016), ConformAudio, Wolfram Language function, https://reference.wolfram.com/language/ref/ConformAudio.html (updated 2017).

CMS

Wolfram Language. 2016. "ConformAudio." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/ConformAudio.html.

APA

Wolfram Language. (2016). ConformAudio. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ConformAudio.html

BibTeX

@misc{reference.wolfram_2022_conformaudio, author="Wolfram Research", title="{ConformAudio}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/ConformAudio.html}", note=[Accessed: 29-May-2023 ]}

BibLaTeX

@online{reference.wolfram_2022_conformaudio, organization={Wolfram Research}, title={ConformAudio}, year={2017}, url={https://reference.wolfram.com/language/ref/ConformAudio.html}, note=[Accessed: 29-May-2023 ]}