audiocraft-audio-generation

Generate music and sound effects from text prompts with AudioCraft on PyTorch.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/samuelmukoti/myai-agent --skill audiocraft-audio-generation-samuelmukoti
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audiocraft-audio-generation
Source: https://github.com/samuelmukoti/myai-agent/tree/main/skills/mlops/models/audiocraft
Command: npx skills add https://github.com/samuelmukoti/myai-agent --skill audiocraft-audio-generation-samuelmukoti

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

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.

Core Features & Use Cases

  • MusicGen: text-to-music generation with melody conditioning
  • AudioGen: text-to-sound effects generation
  • EnCodec: high-fidelity neural audio codec
  • Style conditioning and stereo output
  • Workflow integrations with Transformers and HuggingFace models

Quick Start

Provide a text prompt describing the desired audio to generate music or sound effects.

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 from text prompts for game and film projects?

You can generate text-to-music audio by providing descriptive text prompts to the MusicGen model. This process supports melody conditioning and stereo output, making it suitable for rapid multimedia projects requiring original soundtracks.

Can I create sound effects from text descriptions using AudioGen?

AudioGen generates sound effects directly from text descriptions. It is designed specifically for text-to-sound generation, allowing you to produce custom audio effects for multimedia applications without manual audio synthesis.

Does AudioCraft work with HuggingFace Transformers models?

AudioCraft integrates with Transformers and HuggingFace models to enable audio generation workflows. This compatibility allows you to leverage pre-trained models within the PyTorch ecosystem for text-to-music and text-to-sound tasks.

What is melody conditioning in AI audio generation?

Melody conditioning is a feature of MusicGen that allows you to guide text-to-music generation using an existing melody. This ensures the generated audio aligns with specific melodic structures, providing control over the musical output.

Can I use AudioCraft models offline for sound design?

AudioCraft supports offline usage for sound design tasks. Guidance for offline operation is included, allowing you to generate music and sound effects locally without requiring continuous internet connectivity.

What is the EnCodec neural audio codec used for in AudioCraft?

EnCodec is a high-fidelity neural audio codec utilized within AudioCraft. It processes and compresses audio representations to support the generation of high-quality music and sound effects from text prompts.