An audio package for PyTorch
Maintained. Last release 5 weeks ago, commits in 7 of the last 26 weeks. Weaker on security practices.
pip install torchaudiotorchaudio: an audio library for PyTorch

[!IMPORTANT] TorchAudio 2.11 works with
torch2.11 and with every futuretorchrelease (2.12, 2.13, etc.). It is the latest release, and it is the only one you need: there is nothing to upgrade in TorchAudio when you upgradetorch, and installing TorchAudio does not pintorchto a specific version.
[!NOTE] We have transitioned TorchAudio into a maintenance phase. This migration process removed some user-facing features. These features were deprecated from TorchAudio 2.8 and removed in 2.9. Our main goals were to reduce redundancies with the rest of the PyTorch ecosystem, make it easier to maintain, and create a version of TorchAudio that is more tightly scoped to its strengths: processing audio data for ML. Please see our community message for more details.
The aim of torchaudio is to apply PyTorch to the audio domain. By supporting PyTorch, torchaudio follows the same philosophy of providing strong GPU acceleration, having a focus on trainable features through the autograd system, and having consistent style (tensor names and dimension names). Therefore, it is primarily a machine learning library and not a general signal processing library. The benefits of PyTorch can be seen in torchaudio through having all the computations be through PyTorch operations which makes it easy to use and feel like a natural extension.
- Dataloaders for common audio datasets
- Audio and speech processing functions