audiocraft-audio-generation

Generate music and sound effects from text prompts using MusicGen and AudioGen.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AudioCraft enables generation of music and sound from natural language prompts using MusicGen for text-to-music and AudioGen for text-to-sound, with EnCodec for high-fidelity compression.

Core Features & Use Cases

  • MusicGen: text-to-music generation
  • AudioGen: text-to-sound generation
  • EnCodec: high-fidelity audio compression
  • Model variants: small to large, melody conditioning, stereo outputs
  • Workflows: rapid sound design, game audio prototyping, and music production pipelines

Quick Start

Describe the audio you want to generate and run the provided example to produce music or sound.

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 using Python?

You generate music from text prompts by using the MusicGen model within the AudioCraft library, which requires a Python environment with torch and transformers to perform text-to-music inference.

Can I generate sound effects from text descriptions for game audio prototyping?

Yes, you can generate sound effects from text descriptions using AudioGen, a text-to-sound generation model designed for rapid sound design and game audio prototyping workflows.

What Python dependencies do I need to run AudioGen and MusicGen inference?

To run AudioGen and MusicGen inference, you need a Python environment with the audiocraft library, torch version 2.0.0 or higher, and transformers version 4.30.0 or higher.

Does AudioCraft support stereo outputs and melody conditioning for music generation?

AudioCraft supports stereo outputs and melody conditioning for music generation through its various model variants, ranging from small to large sizes, alongside EnCodec-based compression workflows for high fidelity.

What is the difference between MusicGen and AudioGen for audio creation?

MusicGen handles text-to-music generation, while AudioGen focuses on text-to-sound generation, together enabling end-to-end audio creation from descriptive natural language prompts for different production pipelines.

Are there limitations when using EnCodec compression for high-fidelity audio workflows?

EnCodec compression workflows provide high-fidelity audio output, but model inference requires specific Python dependencies and computational resources, making it better suited for environments equipped for torch-based generation.