#418418th of 433 in ML frameworks and libraries

nnaudio

PyTorch library that computes spectrograms on the GPU with trainable Fourier kernels

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
1.1k
License
MIT
Last commit
May 2026
Last release
Nov 2020
Language
Python
Stars, last 29 weeks+17
7 May 2026: 1,116 stars14 May 2026: 1,117 stars21 May 2026: 1,118 stars28 May 2026: 1,118 stars4 Jun 2026: 1,118 stars11 Jun 2026: 1,120 stars18 Jun 2026: 1,120 stars25 Jun 2026: 1,120 stars2 Jul 2026: 1,122 stars9 Jul 2026: 1,123 stars16 Jul 2026: 1,124 stars23 Jul 2026: 1,124 stars30 Jul 2026: 1,124 stars6 Aug 2026: 1,125 stars13 Aug 2026: 1,125 stars20 Aug 2026: 1,125 stars27 Aug 2026: 1,125 stars3 Sept 2026: 1,126 stars10 Sept 2026: 1,127 stars17 Sept 2026: 1,128 stars24 Sept 2026: 1,128 stars1 Oct 2026: 1,129 stars8 Oct 2026: 1,129 stars15 Oct 2026: 1,129 stars22 Oct 2026: 1,129 stars29 Oct 2026: 1,130 stars5 Nov 2026: 1,132 stars12 Nov 2026: 1,132 stars19 Nov 2026: 1,132 stars26 Nov 2026: 1,133 stars

1,116 on 7 May 20261,133 on 26 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

nnAudio generates spectrograms (STFT, Mel, MFCC, CQT, VQT, Gammatone, CFP) from audio using 1D convolutional layers in PyTorch. Because the transforms are convolutions, they run on the GPU during training and the Fourier or CQT kernels can be made trainable. The README points to a successor, nnAudio2, and says the original needs maintainers.

Who it is for: PyTorch audio researchers who need on-the-fly, trainable spectrogram layers

Strengths

  • Covers STFT, Mel, MFCC, CQT, VQT, Gammatone and CFP, plus Griffin-Lim and inverse STFT
  • Kernels are trainable and transforms differentiable, unlike torchaudio or librosa
  • Built on PyTorch convolutions, so no sox install needed
  • Bundles its own mel filter code, so librosa is not required

Weaknesses

  • Last tagged release is 2020-11-08; README points to nnAudio2 as the actively maintained version
  • Author says regular code review is no longer done; maintainers wanted
  • Invertible CQT is still listed as a pending feature
  • Unit tests need at least 1931 MiB of GPU memory

What it needs

  • GPU optional
  • Needs PyTorch >= 1.6.0, NumPy >= 1.14.5, SciPy >= 1.2.0, Python >= 3.6

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in ML frameworks and libraries

See all 433
Also in ML frameworks and libraries
RankProjectScore
#416audiomentationsPython library for augmenting audio waveforms in ML training pipelines2.3k starsMIT15 out of 100
#417kernelbenchBenchmark for LLM-written GPU kernels against PyTorch reference programs1.3k starscustom license15 out of 100
#419igelYAML-driven CLI to train, evaluate and serve scikit-learn models without code3.1k starsMIT14 out of 100
#420stardistNucleus and cell instance segmentation in 2D and 3D microscopy images1.3k starsBSD-3-Clause14 out of 100
#421jeelizfacefilterWebGL face detection and head-pose tracking from webcam video, for AR filters Live demo ↗ (opens in a new tab)3k starsApache-2.0no commits in a year13 out of 100