Back to Skills

audiocraft-audio-generation

PyTorch library for audio generation including text-to-music (MusicGen) and text-to-sound (AudioGen). Use when you need to generate music from text descriptions, create sound effects, or perform melody-conditioned music generation.

3,579stars289forksUpdated 2/18/2026

Security Assessment

Safe(100/100)
Security Score100/100

About audiocraft-audio-generation

The audiocraft-audio-generation skill is a PyTorch-based library designed to handle audio generation tasks, particularly focused on text-to-music and text-to-sound generation. It aims to provide a simple and efficient solution for creating music and sound effects directly from text descriptions. The skill addresses the challenge of generating high-quality audio outputs by leveraging advanced models like MusicGen and AudioGen, enabling the creation of various audio types, including background music, sound effects, and environmental sounds, from natural language inputs.

FAQ

How can I generate music from text descriptions using AudioCraft?

You can generate music by using the MusicGen model, which supports melody-conditioned text-to-music generation. First, load the pretrained model, set your generation parameters (like duration and temperature), and pass your text description to the model's generate method.

What are the main differences between MusicGen and AudioGen?

MusicGen is focused on generating music from text, including melody-conditioning features, while AudioGen is used for generating sound effects and environmental sounds from text descriptions.

What are the system requirements for using AudioCraft?

AudioCraft requires PyTorch version 2.0.0 or higher, along with transformers (version 4.30.0 or higher). It also supports CUDA for faster processing if you want to use GPU acceleration.

Install audiocraft-audio-generation

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill