Stability-AI/stable-codec
A family of state-of-the-art Transformer-based audio codecs for low-bitrate high-quality audio coding.
What it solves
It provides a high-quality speech coding system that compresses audio into low-bitrate tokens while maintaining high reconstruction quality. It specifically addresses the need for efficient audio representation that is useful for downstream tasks like text-to-speech (TTS).
How it works
The system uses a Transformer-based architecture with sliding window attention to encode audio into latents and tokens. It employs a Finite Scalar Quantization (FSQ) bottleneck to discretize the audio. To improve the usability of tokens for downstream AI tasks, the model can be finetuned using a Connectionist Temporal Classification (CTC) head to regress force-aligned phoneme tags from the latents.
Who it’s for
Researchers and developers working on speech synthesis, audio compression, and generative audio models who need an efficient way to represent speech as discrete tokens.
Highlights
- Flexible Bitrate Control: Supports post-hoc bottleneck configuration to adjust the token dictionary size and bits per second (bps) after training.
- Optimized for Downstream Tasks: The
stable-codec-speech-16kvariant is specifically finetuned to boost latent semantics for better performance in TTS applications. - High-Efficiency Inference: Utilizes FlashAttention for optimized processing of sliding window attention.
- Comprehensive Training Tools: Includes scripts for finetuning and support for CTC loss to integrate phoneme-level alignment.
Related
- Project
- Project
- Project
- Project
- Project