Skip to content
r.

snac

hubertsiuzdak/snac · Public GitHub repository

Multi-Scale Neural Audio Codec (SNAC) compresses audio into discrete codes at a low bitrate

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

snac live demo screenshot
Captured from the live demo · 2026-11-02

About this project

Author-written excerpt from the project README.

Multi-Scale Neural Audio Codec (SNAC) compresses audio into discrete codes at a low bitrate. For more information, read the paper:

SNAC encodes audio into hierarchical tokens similarly to SoundStream, EnCodec, and DAC (see the image on the left). However, SNAC introduces a simple change where coarse tokens are sampled less frequently, covering a broader time span (see the image on the right).

This can not only save on bitrate, but more importantly this might be very useful for language modeling approaches to audio generation. E.g. with coarse tokens of 10 Hz and a context window of 2048 you can effectively model a consistent structure of an audio track for 3 minutes.

Requirements and intended audience

Multi-Scale Neural Audio Codec (SNAC) compresses audio into discrete codes at a low bitrate. For more information, read the paper:

This can not only save on bitrate, but more importantly this might be very useful for language modeling approaches to audio generation. E.g. with coarse tokens of 10 Hz and a context window of 2048 you can effectively model a consistent structure of an audio track for 3 minutes.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-12. Source: https://github.com/hubertsiuzdak/snac/blob/main/README.md

Recorded maintenance information

Last recorded source update: 2024-11-19. Saved release: v1.2.1 · 2024-09-11. These dates do not guarantee ongoing maintenance.

Technologies
Python
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-20. This does not test every feature.

Browse related categories