descript-audio-codec
A high-quality general neural audio codec.
What it is and what it does
Descript Audio Codec is a neural audio codec that compresses audio into discrete codes at 8 kbps bitrate while preserving high fidelity. It uses an improved RVQGAN architecture and works universally across speech, music, and environmental audio. The package provides both command-line tools and a Python API for programmatic use via its runtime dependencies including torch, torchaudio, einops, numpy, argbind, descript-audiotools, and tqdm.
The codec is designed as a drop-in replacement for audio language modeling applications. Pre-trained model weights for 16 kHz, 24 kHz, and 44.1 kHz are automatically downloaded and cached on first use. The package is actively maintained and has no known vulnerabilities.
Use it for:
- Compress audio for storage or transmission while maintaining perceptual quality in generative audio models
- Use as a backend codec for audio language models or music generation systems
- Encode audio files into discrete codes for downstream machine learning tasks
- Reconstruct high-fidelity audio from compressed .dac files for playback or further processing
- Replace existing codecs in audio ML pipelines that require a universal codec across domains
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Compresses audio into discrete codes at 8 kbps bitrate and reconstructs it with high fidelity, supporting 16 kHz, 24 kHz, and 44.1 kHz sampling rates across speech, music, and environmental audio.
Yes, if you need audio compression for ML applications. The codec is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and offers strong compression with high fidelity. Install friction is low for developers already using PyTorch. Not suitable if you need real-time or streaming inference without GPU, or if you require lossless compression.
Install
descript-audio-codec on PyPI
pip
pip install descript-audio-codecuv
uv add descript-audio-codecpoetry
poetry add descript-audio-codecInstalling descript-audio-codec
Before you install
Low install friction with a pure Python wheel. Requires torch and torchaudio as runtime dependencies, which are substantial downloads but standard for audio ML work. Repository is actively maintained with recent commits.
License in practice
MIT license permits commercial and private use, modification, and distribution with minimal restrictions—suitable for most projects.
Quickstart
pip install descript-audio-codec
import descript_audio_codec
from descript_audiotools import AudioSignal
model = descript_audio_codec.DAC.load(model_path)
model.to('cuda')
signal = AudioSignal('input.wav')
signal.to(model.device)
x = model.preprocess(signal.audio_data, signal.sample_rate)
z, codes, latents, _, _ = model.encode(x)
y = model.decode(z)
y.write('output.wav')
Requires CUDA-capable GPU or CPU; torch and torchaudio must be installed. Model weights are automatically downloaded on first use.
Verify before relying
- Whether the package supports real-time or streaming encoding/decoding, or only batch processing
- Memory requirements for typical audio file sizes and whether chunking strategies are built-in for long files
- Compatibility with non-PyTorch inference frameworks or ONNX export
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — argbind, descript-audiotools, einops, numpy, torch, torchaudio, tqdm |
| Maintenance | actively maintained — 1,121 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 487,316/month — #6,387 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: descript_audio_codec-1.0.0-py3-none-any.whl
Keywords: audio, compression, machine learning
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
descript-audiotoolsProvides object-oriented audio signal handling…
permissive · top 15,000 on PyPI
encodecEnCodec is a neural audio codec that compresses…
noncommercial · top 15,000 on PyPI
snacSNAC compresses audio into discrete…
unclear · top 15,000 on PyPI
silk-pythonEncodes and decodes audio in SILK format, a…
permissive · top 15,000 on PyPI
pcodecPcodec compresses and decompresses numerical…
unclear · top 15,000 on PyPI
resemble-perthEmbeds imperceptible watermarks into audio…
permissive · top 15,000 on PyPI
opuslib-nextProvides Python bindings to libopus, the IETF…
permissive · top 15,000 on PyPI
opuslibProvides Python bindings to libopus, the IETF…
permissive · top 15,000 on PyPI
vocosVocos is a neural vocoder that synthesizes…
unclear · top 15,000 on PyPI
numcodecsNumcodecs provides buffer compression and…
permissive · top 5,000 on PyPI