AudioResample

AudioResample[audio,sr]

resamples audio to have the sample rate of sr.

Details and Options

  • AudioResample can be used to convert between any sampling rates, including the common ones, e.g. telephone, CD, and DVD.
  • The sample rate sr can be given as a positive integer, assumed to be in hertz, a quantity, or a Scaled parameter.
  • The following common sampling rates are also supported:
  • "Telephone"8000used for telephone signal
    "CD"44100used in audio CD, MP3, etc.
    "DVD"48000DVD, professional video equipment, etc.
    "DVDAudio"96000DVD-Audio, Blu-ray, etc.
  • AudioResample works with Audio objects of any number of channels.
  • The following options can be given:
  • AntialiasingTruewhether to antialias when downsampling
    Padding0padding method
    ResamplingAutomaticresampling method
  • For possible settings for Padding, see the reference page for AudioPad.

Examples

open allclose all

Basic Examples  (1)

Resample an audio object:

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

Scope  (3)

Options  (3)

Applications  (2)

See Also

Audio  AudioSampleRate  AudioLength  AudioTrim  ArrayResample

Introduced in 2016
(11.0)