Registry / ai-ml / stable-audio-tools

stable-audio-tools

JSON →
library0.0.20pypypiunverified

A Python library by Stability AI for training and inference with generative audio models, including Stable Audio and Dance Diffusion. Current version 0.0.19. Active development with frequent updates.

pip install stable-audio-tools
INSTALL
IMPORT
SIG · STABLE-AUDIO-TOOLS
S
stable-audio-tools
ai-mlpythonv0.0.20
Install
Import
Disk
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v? · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
timeout
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get_models
from stable_audio_tools import get_models
Primary function to list available pretrained models.
create_model_from_config
from stable_audio_tools.interface import create_model_from_config
Used to instantiate a model from a config or pretrained name.
ModelConfig
from stable_audio_tools.interface import ModelConfig
Config dataclass for specifying model parameters.
get_pretrained_model_and_config
from stable_audio_tools.interface import get_pretrained_model_and_config
Loads a pretrained model and its configuration.

Quickstart to list models and load a pretrained model. Full text-to-audio generation requires additional steps (text encoder, diffusion loop).

import torch import soundfile as sf from stable_audio_tools import get_models from stable_audio_tools.interface import get_pretrained_model_and_config # List available models models = get_models() print("Available models:", list(models.keys())) # Use a stable audio model (replace with actual model name from list) model_name = "stable-audio-open-1.0" # example, check get_models() model, config = get_pretrained_model_and_config(model_name) # Generate audio: text-to-audio (simplified, requires proper sampling setup) # Create a random latent and decode (demo only) device = "cuda" if torch.cuda.is_available() else "cpu" model = model.to(device) # Note: Full generation requires T5 text encoder and diffusion loop print("Model loaded successfully. Refer to official docs for full inference.")
Debug
Known issues
gotchaThe library is in early development (v0.0.19). APIs may change without notice. Always pin your dependency version.
fix
Install with `pip install stable-audio-tools==0.0.19` and watch GitHub for updates.
affects: <1.0.0
deprecatedThe old import path `from stable_audio_tools.models import get_models` is deprecated in favor of `from stable_audio_tools import get_models`.
fix
Use `from stable_audio_tools import get_models`.
affects: >=0.0.15
gotchaModel names supplied to `get_pretrained_model_and_config` must match exactly the keys from `get_models()`. Case and hyphen sensitive.
fix
Always inspect the list returned by `get_models()` to get exact names.
affects: all
Upgrade
Version history
0.0.20latest on PyPI · released May 20, 2026
Audit
Dependencies
torchrequiredCore deep learning framework required for model loading and inference.
einopsrequiredUsed for tensor operations.
transformersrequiredRequired for T5 text encoder and other model components.
Agent activity
17 hits · last 30 days
node
14
OpenAI (training)
1
Resources
stable-audio-tools — pip install stable-audio-tools · libregistry