audio icon indicating copy to clipboard operation
audio copied to clipboard

Usage of `TimeStretch` is incorrect in documentation.

Open tky823 opened this issue 2 years ago • 0 comments

🐛 Describe the bug

In an example of https://pytorch.org/audio/stable/transforms.html, TimeStretch takes arguments as follows:

TimeStretch(stretch_factor, fixed_rate=True)

This usage is incorrect.

According to https://pytorch.org/audio/stable/generated/torchaudio.transforms.TimeStretch.html, this class takes the arguments of hop_length, n_freq, and fixed_rate.

Versions

I've checked this for torchaudio=2.0.1, but we can see the same issue for the older versions.

tky823 avatar Jun 13 '23 13:06 tky823