# KinWaiCheuk/nnAudio

Audio processing by using pytorch 1D convolution network

Repository: https://github.com/KinWaiCheuk/nnAudio
Canonical: https://ross.abutalabs.com/products/nnaudio
Language: Python
License: MIT
License Family: permissive
Topics: spectrogram-conversion-toolbox, pytorch, audio-processing, preprocessing, stft, melspectrogram, spectrogram, cqt-spectrogram, neural-network, 1d-convolution
Last push: 2026-05-21T00:17:23+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 83, release rhythm 8, longevity 100
- inputs: {"age_days": 2557, "days_push": 105, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1127, forks 97 (observed 2026-08-28T04:03:41.585294+00:00)

## What it is
nnAudio is a PyTorch-based audio processing toolbox that computes spectrograms (STFT, Mel, CQT, MFCC) using 1D convolutional neural networks. This enables on-the-fly spectrogram generation during training and makes the Fourier/CQT kernels trainable and differentiable.

## Use cases
- compute spectrograms on gpu during neural network training
- trainable cqt kernels in pytorch
- differentiable mel spectrogram for deep learning
- audio preprocessing inside a pytorch model
- stft and inverse stft with griffin-lim in pytorch
- cross-platform alternative to torchaudio on windows

## When to choose
- you need trainable or differentiable spectrogram front-ends in PyTorch
- you want fast GPU-accelerated audio feature extraction during training
- torchaudio installation is problematic on your platform

## When to avoid
- you only need offline numpy-based analysis (use librosa)
- you need a actively developed project - the successor nnAudio2 is maintained instead
- you work outside the PyTorch ecosystem

## Facets
- artifact type: library
- maturity: maintenance
- function: audio-processing, machine-learning, deep-learning
- domain: machine-learning, deep-learning
- platform: python, cross-platform
- tags: pytorch, spectrogram, stft, mel-spectrogram, cqt, trainable-kernels, gpu-audio, audio, gpu

## Member repositories
- KinWaiCheuk/nnAudio (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:41.585294+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:38:45.733092+00:00, confidence not recorded.
  - readme: https://github.com/KinWaiCheuk/nnAudio (fetched 2026-08-28T04:03:41.585294+00:00, sha bee87c391157)
  - registry_pypi: https://pypi.org/pypi/nnaudio/json (fetched 2026-08-29T12:43:19.685842+00:00, sha 9eb9bedb87b1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
