-
Notifications
You must be signed in to change notification settings - Fork 1.7k
UserWarning: torchaudio._backend.list_audio_backends has been deprecated #2977
Copy link
Copy link
Closed
Labels
Milestone
Description
Describe the bug
UserWarning: torchaudio._backend.list_audio_backends has been deprecated. This deprecation is part of a large refactoring effort to transition TorchAudio into a maintenance phase. The decoding and encoding capabilities of PyTorch for both audio and video are being consolidated into TorchCodec. Please see https://github.com/pytorch/audio/issues/3902 for more information. It will be removed from the 2.9 release.
available_backends = torchaudio.list_audio_backends()
torch 2.9.0 is released on the 15th of October, moving certain functionality from torchaudio to torchcodec
Expected behaviour
speechbrain/utils/torch_audio_backend.py should be changed to detect version numbers above 2.8.0 and then not calling torchaudio.list_audio_backends()
To Reproduce
install torchaudio 2.8.0 and import the library
Environment Details
No response
Relevant Log Output
Additional Context
No response
Reactions are currently unavailable