audiocraft-audio-generation

Generate music and sound from text prompts using AudioCraft models.

Updated May 4, 2026
One-click install
npx skills add https://github.com/Supporter09/Face_Anti_Spoofing_Biometric --skill audiocraft-audio-generation-supporter09
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audiocraft-audio-generation
Source: https://github.com/Supporter09/Face_Anti_Spoofing_Biometric/tree/main/.claude/skills/audiocraft
Command: npx skills add https://github.com/Supporter09/Face_Anti_Spoofing_Biometric --skill audiocraft-audio-generation-supporter09

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you create music, sound effects, and melody-conditioned audio from natural language prompts without hand-authoring audio from scratch. It also supports reusable training, evaluation, deployment, and troubleshooting workflows for AudioCraft-based projects.

Core Features & Use Cases

  • Text-to-music generation: Generate original music with MusicGen from descriptive prompts.
  • Text-to-sound generation: Create environmental audio and sound effects with AudioGen.
  • Melody-conditioned output: Guide generation using a reference melody or style track.
  • Deployment and integration: Build FastAPI, Gradio, or Hugging Face workflows around audio generation.
  • Use case: Turn a prompt like “upbeat cinematic electronic track with synths” into a downloadable WAV file for prototyping, demos, or creative exploration.

Quick Start

Use this Skill to generate a short music track from a text prompt and save the result as a WAV file.

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

To generate music from a text prompt using MusicGen, you input a descriptive phrase like "upbeat cinematic electronic track" into the AudioCraft model, which processes the text and outputs an original downloadable WAV file for your creative projects.

Can I create custom sound effects from text with AudioGen?

Yes, you can create custom sound effects from text with AudioGen by providing environmental audio descriptions, allowing the AudioCraft model to generate corresponding sound assets without needing to hand-author audio from scratch.

Does AudioCraft support melody-conditioned audio generation?

AudioCraft supports melody-conditioned audio generation by allowing you to input a reference melody or style track, which guides the model to produce new audio that matches the melodic structure of your provided reference.

How do I deploy a text-to-music FastAPI workflow?

You can deploy a text-to-music FastAPI workflow by building an API around the AudioCraft models to handle PyTorch-based model loading, audio preprocessing, and deterministic generation controls, outputting stereo WAV files for integration.

Why does my AudioCraft generation fail with memory limits or sample rate errors?

AudioCraft generation fails with memory limits or sample rate errors when the PyTorch environment lacks sufficient resources for stereo output generation, requiring you to validate sample rates, channels, and memory limits during preprocessing and troubleshooting.