audiocraft-audio-generation

Generate music and sound effects from text using Meta's AudioCraft library.

1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/tianhao909/AI-Research-SKILLs-cn --skill audiocraft-audio-generation-tianhao909
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audiocraft-audio-generation
Source: https://github.com/tianhao909/AI-Research-SKILLs-cn/tree/main/18-multimodal/audiocraft
Command: npx skills add https://github.com/tianhao909/AI-Research-SKILLs-cn --skill audiocraft-audio-generation-tianhao909

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires audiocraft, torch, transformers, scipy, librosa, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the need to create custom audio content, such as music and sound effects, directly from textual descriptions, eliminating the reliance on manual audio production or stock libraries.

Core Features & Use Cases

  • Text-to-Music Generation: Create original music pieces based on descriptive prompts (e.g., "happy upbeat electronic dance music").
  • Text-to-Sound Effects: Generate realistic sound effects for various applications (e.g., "dog barking in a park").
  • Melody Conditioning: Generate music that follows a specific provided melody.
  • Style Transfer: Apply the style of a reference audio clip to generated music.
  • Audio Compression: Utilize EnCodec for efficient audio compression and decompression.
  • Use Case: A game developer can use this Skill to quickly generate unique sound effects for in-game actions or background music that matches the mood of different game levels, all from simple text prompts.

Quick Start

Use the audiocraft skill to generate a 10-second clip of 'calm ambient electronic music'.

Frequently Asked Questions about audiocraft-audio-generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate music and sound effects from text descriptions?

AudioCraft supports text-to-music generation via MusicGen and text-to-sound effects via AudioGen, allowing you to create original audio clips directly from descriptive text prompts without manual audio production.

Can I generate music that follows a specific melody I provide?

Yes, AudioCraft supports melody conditioning, allowing you to generate music that follows a specific provided melody, and it also supports style transfer to apply the style of a reference audio clip to generated music.

Do I need PyTorch and transformers installed to use AudioCraft for audio generation?

Yes, AudioCraft for audio generation requires PyTorch, transformers, and the audiocraft libraries to be installed in your environment, along with scipy and librosa for additional audio processing operations.

What is the best way to create custom sound effects for a game without using stock libraries?

Using AudioCraft's AudioGen is the best way to create custom sound effects for games without stock libraries, as it generates realistic audio like 'dog barking in a park' directly from text prompts to match in-game actions.

Does AudioCraft support audio compression and decompression?

Yes, AudioCraft supports audio compression and decompression by utilizing EnCodec, which provides efficient audio compression capabilities alongside its text-to-music and text-to-sound generation features.