audiocraft-audio-generation

Generates music and sound from text prompts using AudioCraft models.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PyTorch-based toolset for generating music and audio from text prompts using AudioCraft models (MusicGen for music and AudioGen for sound effects), enabling melody-conditioned results.

Core Features & Use Cases

  • Text-to-music and text-to-audio generation with MusicGen, AudioGen, and EnCodec.
  • Melody-conditioning: incorporate melody inputs to shape outputs.
  • Offline-ready workflows: run locally with prebuilt runtimes and packaged dependencies.

Quick Start

Install AudioCraft and load a pretrained MusicGen or AudioGen model, then call the generate function with your text prompt.

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

To generate music from text, load a pretrained MusicGen model via the AudioCraft package and call the generate function with your text prompt. This PyTorch-based workflow processes your text descriptions to produce audio outputs automatically.

Can I use AudioGen to create sound effects for video or games?

Yes, AudioGen is designed for text-to-audio generation to create sound effects for video or games. You load the pretrained AudioGen model within the AudioCraft package and pass text prompts describing the desired sound to generate audio.

Do I need Python and PyTorch installed to run AudioCraft for audio generation?

Yes, you need Python and PyTorch installed along with the AudioCraft package to run audio generation workflows. These environments support loading pretrained MusicGen, AudioGen, and EnCodec models for offline or online text-to-music generation.

How does melody-conditioning work in text-to-music generation?

Melody-conditioning incorporates melody or chroma inputs alongside text prompts to shape the generated audio outputs. This AudioCraft feature allows you to guide the MusicGen model by providing a reference melody, influencing the musical structure of the result.

What is the difference between MusicGen and AudioGen in AudioCraft?

MusicGen is specialized for text-to-music generation, while AudioGen focuses on text-to-audio generation for sound effects. Both operate within the AudioCraft package using PyTorch, but target different audio output categories based on your text prompts.

Can I run AudioCraft models offline with prebuilt runtimes?

Yes, AudioCraft supports offline-ready workflows allowing you to run locally with prebuilt runtimes and packaged dependencies. This enables text-to-music and text-to-audio generation without requiring an internet connection after setup.