audiocraft-audio-generation

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AudioCraft provides a library and reference for generating music and sound effects directly from text prompts, eliminating manual sound design bottlenecks.

Core Features & Use Cases

  • MusicGen: text-to-music generation with melody conditioning
  • AudioGen: text-to-sound generation for effects and ambience
  • EnCodec: high-fidelity neural audio codec for efficient storage and playback
  • Multiple model sizes and stereo options for flexible deployment
  • Comprehensive usage examples covering installation, transformers integration, and API server deployment

Quick Start

Install audiocraft and run a basic MusicGen example to generate a short track from text.

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

Generate music from text prompts by loading the MusicGen model, configuring generation parameters, and passing text inputs to synthesize audio tracks directly through the AudioCraft library.

Can I condition text-to-music generation with a specific melody?

Yes, text-to-music generation supports melody conditioning, allowing you to provide an existing audio input alongside text prompts to guide the musical structure and melody of the generated output.

What is the difference between text-to-music and text-to-sound generation?

Text-to-music generation produces musical tracks, while text-to-sound generation creates sound effects and ambient audio, both utilizing distinct AudioCraft models for synthesizing audio from text inputs.

Does AudioCraft support stereo sound and multiple model sizes for deployment?

Yes, AudioCraft supports multiple model sizes and stereo options, enabling flexible deployment across diverse environments for high-fidelity music and sound effect synthesis.

How do I integrate AudioCraft models with transformers and deploy an API server?

Integrate AudioCraft with transformers using provided usage examples, and deploy an API server by following the library documentation to expose model loading and audio generation endpoints.