Installing pre-built binaries¶
torchaudio
has binary distributions for PyPI (pip
) and Anaconda (conda
).
Please refer to https://pytorch.org/get-started/locally/ for the details.
Note
Each torchaudio
package is compiled against specific version of torch
.
Please refer to the following table and install the correct pair of torch
and torchaudio
.
Note
Starting 0.10
, torchaudio has CPU-only and CUDA-enabled binary distributions,
each of which requires a corresponding PyTorch distribution.
Note
This software was compiled against an unmodified copy of FFmpeg (licensed under the LGPLv2.1), with the specific rpath removed so as to enable the use of system libraries. The LGPL source can be downloaded here.
Dependencies¶
-
Please refer to the compatibility matrix bellow for supported PyTorch versions.
Optional Dependencies¶
-
Required to use
torchaudio.io
module. TorchAudio official binary distributions are compatible with FFmpeg 4.1 to 4.4. If you need to use FFmpeg 5, please build TorchAudio from source. -
Required for performing automatic speech recognition with Emformer RNN-T.
-
Required for performing text-to-speech with Tacotron2 Text-To-Speech.
-
Required to use
torchaudio.kaldi_io
module.
Compatibility Matrix¶
The official binary distributions of TorchAudio contain extension modules which are written in C++ and linked against specific versions of PyTorch.
TorchAudio and PyTorch from different releases cannot be used together. Please refer to the following table for the matching versions.
|
|
|
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|