audiocraft-audio-generation

Generate music and sound effects from text prompts using AudioCraft models.

Updated May 2, 2026
One-click install
npx skills add https://github.com/qcmuu/AI-Research-Skills --skill audiocraft-audio-generation-qcmuu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audiocraft-audio-generation
Source: https://github.com/qcmuu/AI-Research-Skills/tree/main/18-multimodal/audiocraft
Command: npx skills add https://github.com/qcmuu/AI-Research-Skills --skill audiocraft-audio-generation-qcmuu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AudioCraft enables you to turn text prompts into realistic audio—covering both text-to-music (MusicGen) and text-to-sound-effects (AudioGen)—so you don’t have to start from scratch when creating audio for demos, prototypes, or creative projects.

Core Features & Use Cases

  • Text-to-music with melody control (MusicGen): Generate short to medium-length musical audio directly from prompts, including melody-conditioned variants for tighter musical structure.
  • Text-to-sound-effects (AudioGen): Produce environmental and effect sounds from descriptive prompts for game/audio production workflows.
  • Neural audio codec (EnCodec): Support higher-fidelity audio tokenization and reconstruction as part of the model pipeline.
  • Stereo generation and style transfer: Use stereo model variants and MusicGen-Style for reference-based style conditioning.

Example use case: You need a 15-second ambient electronic bed for a research demo; generate multiple variations from different prompts, pick the best one, and refine by adjusting guidance and sampling settings.

Quick Start

Use the audiocraft-audio-generation skill to generate a short track from the prompt "happy upbeat electronic dance music with synths" and save it as a WAV file.

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 prompts?

Text-to-audio generation converts natural-language prompts into realistic audio using AudioCraft models like MusicGen and AudioGen. You condition the model with a descriptive prompt and adjust duration and sampling settings to save the output as a WAV file.

Can I use melody conditioning and style transfer for text-to-audio generation?

Melody conditioning and style transfer are supported through MusicGen variants. These models allow tighter musical structure by using reference-based style conditioning to guide the generated audio output.

What do I need to set up PyTorch-based audio generation with AudioGen and MusicGen?

PyTorch-based audio generation requires loading AudioCraft models, configuring prompt conditioning, and setting the correct sample rate. You control output by adjusting duration and sampling parameters before saving the audio file.

Does AudioCraft support stereo generation and environmental sound effects?

AudioCraft supports stereo generation using specific model variants and produces environmental sound effects through AudioGen. This covers text-to-sound-effects workflows for game and audio production.

What are the limitations of generating short to medium-length audio with AudioCraft?

AudioCraft generates short to medium-length musical audio best suited for research prototypes and creative applications. It uses EnCodec for audio tokenization but is not designed for full-length track production.

What is the best way to create an ambient electronic bed for a research demo?

The best way to create an ambient electronic bed is generating multiple variations from different text prompts using MusicGen. You then pick the best result and refine it by adjusting guidance and sampling settings.