--- id: torchaudio version: "2.11.0" license: unclear license_treatment: permissive maintenance: active --- # torchaudio — An audio package for PyTorch License: permissive · Maintenance: active · Downloads: 12.3M/mo ## What it is and what it does torchaudio is a PyTorch extension for audio and speech processing designed specifically for machine learning workflows. It provides GPU-accelerated audio transforms (Spectrogram, MelSpectrogram, MFCC, MuLawEncoding/Decoding, Resample), dataloaders for common audio datasets, forced alignment, and compliance interfaces that align with other libraries like Kaldi. All computations use PyTorch operations, making it feel like a natural extension of the PyTorch ecosystem with full autograd support for trainable features. The library transitioned into maintenance phase starting with version 2.8, removing redundant features to reduce scope and focus on its core strength: processing audio data for ML. It is not a general signal-processing library but rather a specialized tool for building audio-based machine learning models. It supports modern Python versions (3.10–3.14) across macOS, Linux, and Windows, with compiled wheels for efficient installation. Use it for: - Build end-to-end speech recognition or audio classification models with GPU acceleration and automatic differentiation. - Load and preprocess standard audio datasets (with built-in dataloaders) for training neural networks. - Apply common audio transforms (spectrograms, mel-frequency cepstral coefficients, resampling) as differentiable layers in PyTorch models. - Align audio with transcriptions using forced alignment for speech processing pipelines. - Ensure compatibility with Kaldi-based audio processing through compliance interfaces. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides PyTorch-based audio processing, transforms, and dataloaders for machine learning tasks, with GPU acceleration and autograd support for trainable audio features. Yes, if you are building audio or speech ML models with PyTorch and need GPU acceleration and autograd support. The permissive BSD license and active maintenance are favorable. Be aware that it is in maintenance mode (feature removals since 2.8), so verify that remaining APIs match your needs. Install friction is moderate due to compiled wheels, but pre-built distributions are available for common platforms and Python versions. ## Install pip install torchaudio uv add torchaudio poetry add torchaudio ## Installing torchaudio Before you install: Medium install friction due to compiled wheels for multiple Python versions and platforms (3.10–3.14, macOS ARM64/x86_64, Linux aarch64/x86_64, Windows). Active maintenance with recent releases; in maintenance phase since 2.8 with feature removals to reduce redundancy and scope. License in practice: Permissive license (BSD) allows commercial and private use. Pre-trained models may have separate licenses (e.g., SquimSubjective under CC-BY-NC 4.0); users are responsible for verifying dataset and model permissions. Quickstart: pip install torchaudio import torchaudio waveform, sample_rate = torchaudio.load('audio.wav') spectrogram = torchaudio.transforms.Spectrogram()(waveform) Requires PyTorch to be installed separately; compiled wheels require compatible Python version (3.10–3.14) and platform (macOS, Linux, Windows). Verify before relying: - Whether PyTorch is automatically installed as a dependency or must be installed separately. - Specific performance characteristics or benchmarks for GPU acceleration on different hardware. - Current scope and API stability after transition to maintenance phase in version 2.8. ## Package facts - License: not declared (permissive) - Python support: unspecified - Install friction: medium - Maintenance: active - Downloads: 12.3M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags pytorch audio processing, audio transforms spectrogram mfcc, audio machine learning library, gpu accelerated audio, speech processing pytorch, audio dataset loaders, mel spectrogram pytorch, audio-ml, gpu-accelerated, pytorch-extension [View on SkillFed](https://skillfed.io/packages/torchaudio) · [View on PyPI](https://pypi.org/project/torchaudio/)