AudioTimeStretch

AudioTimeStretch[audio,r]

applies time stretching to audio by the specified factor r.

Details and Options

  • AudioTimeStretch stretches the input audio signal to the specified duration while preserving the pitch.
  • The factor r can be any of the following:
  • rthe duration will be multiplied by r
    Scaled[r]the duration will be multiplied by r
    Quantity[dur,unit]specifies the resulting duration dur in the given time unit
  • AudioTimeStretch takes a PartitionGranularity option that controls the partitioning of audio, used for the computation of the short-time Fourier transform.
  • By default, automatic partitioning is used to get a compromise between performance and quality.
  • A small window size will result in better processing of transients, while a larger window results in a higher-quality output.

Examples

open allclose all

Basic Examples  (2)

Stretch audio by a factor of two:

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

Plot the original and stretched audio:

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

Stretch an Audio object to a full duration of 3 seconds:

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

Scope  (2)

Options  (3)

Applications  (1)

Properties & Relations  (1)

Possible Issues  (1)

See Also

AudioPitchShift  AudioFrequencyShift  AudioResample  Duration

Introduced in 2016
(11.0)