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:
r the 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, a phase vocoder algorithm is used. Select Method->"Speech" to use an algorithm tailored for speech signals.
Examplesopen allclose all
Basic Examples (2)
Stretch an Audio object to a full duration of 3 seconds:
Use Method->"Speech" for speech signals to get a better quality result:
By default, HannWindow is used:
Properties & Relations (1)
AudioTimeStretch does not alter the pitch:
Possible Issues (2)
Using Method->"Speech" for non-speech signals may not lead to expected results: