audiocraft-audio-generation

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Many creators need to turn text prompts into high‑quality music, sound effects, or melody‑conditioned audio without manual recording or complex tooling.

Core Features & Use Cases

  • Text‑to‑Music Generation with MusicGen models of various sizes, supporting stereo and style conditioning.
  • Text‑to‑Sound Effects via AudioGen for quick environmental audio creation.
  • Melody‑Conditioned and Stereo Generation for richer, controllable compositions.
  • Integration Options including Hugging Face Transformers, FastAPI services, and Gradio demos, suitable for media production, game audio, and rapid prototyping.

Quick Start

Ask the skill to generate a 30‑second upbeat electronic track using the prompt “upbeat electronic dance 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 from a text prompt?

To generate music from a text prompt, you use MusicGen models via the audiocraft library. You provide a textual description like “upbeat electronic dance music” and the model outputs a corresponding audio track.

Can I create sound effects from text descriptions?

Yes, you can create sound effects from text descriptions using AudioGen. It allows for quick environmental audio creation suitable for media production and game development pipelines.

What do I need to run AudioGen or MusicGen models?

To run AudioGen or MusicGen models, you need the audiocraft library with PyTorch, specifically torch>=2.0 and transformers>=4.30, to load the pretrained audio generation models.

Does text-to-music generation support stereo and melody conditioning?

Yes, text-to-music generation supports stereo and melody conditioning. This allows for richer and more controllable audio compositions using the MusicGen models.

How do I integrate text-to-audio generation into a FastAPI service?

You can integrate text-to-audio generation into a FastAPI service by using the audiocraft library alongside Hugging Face Transformers. This setup is suitable for media production and rapid prototyping.