Installing pre-built binaries¶
torchaudio has binary distributions on PyPI:
pip install torchaudio
To install a specific variant (CUDA, ROCm, nightly, …), please refer to https://pytorch.org/get-started/locally/.
Important
TorchAudio 2.11 works with PyTorch 2.11 and with every future PyTorch release (2.12, 2.13, …).
Dependencies¶
-
2.11 or newer for TorchAudio 2.11. For older TorchAudio releases, please refer to the compatibility matrix below.
Optional Dependencies¶
-
Required by
torchaudio.load()andtorchaudio.save(), which are thin wrappers around TorchCodec’sAudioDecoderandAudioEncoder. We recommend using those TorchCodec classes directly. Installation instructions are at https://github.com/pytorch/torchcodec#installing-torchcodec. -
Required for performing automatic speech recognition with Emformer RNN-T. You can install it by running
pip install sentencepiece. -
Required for performing text-to-speech with Tacotron2 Text-To-Speech.
Compatibility Matrix¶
TorchAudio 2.11 is built against PyTorch’s stable ABI and therefore supports PyTorch 2.11 and all later versions. Earlier TorchAudio releases contain extension modules linked against a single PyTorch version, and cannot be mixed with a different PyTorch release.
|
|
|
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|