The Patchbay_

torchaudio Alternatives

Looking for an alternative to torchaudio? It's pyTorch's audio library: I/O, datasets, and transforms (spectrograms, MFCC) for audio ML. Below are 9 other audio analysis tools for making music with code — how each compares, and when it's the better choice. Every option is verified against its own source.

AlternativeLanguageLicenseBest for
aubioC library with Python bindings for onset, pitch, beat and tempo detection.PythonGPL-3.0-or-laterLightweight real-time note-onset, pitch, and tempo detection.
Basic PitchLightweight neural audio-to-MIDI converter with polyphonic note and pitch-bend detection.PythonApache-2.0Converting monophonic or polyphonic recordings into MIDI for editing or composition.
EssentiaC++ library with Python bindings for audio analysis and music description algorithms.PythonAGPL-3.0-onlyComprehensive, production-scale audio feature extraction and music description.
librosaPython package for music and audio analysis: feature extraction, beat tracking, and spectrograms.PythonISCMusic information retrieval and audio feature extraction for research and ML.
thebeatPython package for generating, visualizing and analyzing rhythms and temporal sequences.PythonGPL-3.0Cognitive/behavioral timing and rhythm-perception experiments.
FluCoMaToolkit bringing signal decomposition, audio descriptors and ML to Max, Pure Data and SuperCollider.Max / Pd / SuperColliderBSD-3-ClauseCorpus-based/concatenative synthesis and machine listening in creative-coding environments.
wavesurfer.jsRenders interactive audio waveforms with playback, regions, spectrogram and timeline plugins.JavaScriptBSD-3-ClauseBuilding audio players and editors that need visual waveforms and region editing.
CREPEinactiveCNN-based monophonic pitch (f0) tracker with state-of-the-art accuracy.PythonMITPrecise fundamental-frequency tracking of single-voice audio (vocals, solo instruments).
madmominactivePython MIR library with neural-network models for beat, downbeat and onset detection.PythonBSD-2-ClauseResearch-grade beat, downbeat, and onset detection with pretrained models.

Notable picks

aubio Python · GPL-3.0-or-later

C library with Python bindings for onset, pitch, beat and tempo detection. Best for lightweight real-time note-onset, pitch, and tempo detection.

Basic Pitch Python · Apache-2.0

Lightweight neural audio-to-MIDI converter with polyphonic note and pitch-bend detection. Best for converting monophonic or polyphonic recordings into MIDI for editing or composition.

Essentia Python · AGPL-3.0-only

C++ library with Python bindings for audio analysis and music description algorithms. Best for comprehensive, production-scale audio feature extraction and music description.

librosa Python · ISC

Python package for music and audio analysis: feature extraction, beat tracking, and spectrograms. Best for music information retrieval and audio feature extraction for research and ML.

thebeat Python · GPL-3.0

Python package for generating, visualizing and analyzing rhythms and temporal sequences. Best for cognitive/behavioral timing and rhythm-perception experiments.

Related Python tools

Other Python tools worth a look, from adjacent categories.

AbjadACE-StepAmphionAudioCraft (MusicGen)Bespoke Synth
← torchaudio overviewAll audio analysis tools