Torchaudio backend

I’m using the WavAugment package, which imports torchaudio. I’m receiving the following warning:

UserWarning: "sox" backend is being deprecated. The default backend will be changed to "sox_io" backend in 0.8.0 and "sox" backend will be removed in 0.9.0. Please migrate to "sox_io" backend. Please refer to https://github.com/pytorch/audio/issues/903 for the detail.
    '"sox" backend is being deprecated. '

I tried adding the following line as recommended:

torchaudio.set_audio_backend("sox_io")

But I still get the warning. What am I doing wrong?

Hi @Tzeviya, what’s your version of torchaudio? Upgrading to 0.9.0 should resolve this issue.

Thanks @nateanl! Upgrading did indeed solve the problem :slight_smile:

1 Like