audiocraft-audio-generation
PyTorch library for audio generation including text-to-music (MusicGen) and text-to-sound (AudioGen).
Skill by AvaTar-ArTs
Chalk Labs
Need help deploying audiocraft-audio-generation?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/avatar-arts-audiocraft-audio-generation
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
audiocraft-audio-generation- Description
- PyTorch library for audio generation including text-to-music (MusicGen) and text-to-sound (AudioGen). Use when you need to generate music from text descriptions, create sound effects, or perform melody-conditioned music generation.
- License
- MIT
- Instructions
- 556 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- body: 556 lines (spec recommends under 500)
Files (3)
- SKILL.md
- advanced-usage.md · references/
- troubleshooting.md · references/
SKILL.md (first lines)
# AudioCraft: Audio Generation
Comprehensive guide to using Meta's AudioCraft for text-to-music and text-to-audio generation with MusicGen, AudioGen, and EnCodec.
## When to use AudioCraft
**Use AudioCraft when:**
- Need to generate music from text descriptions
- Creating sound effects and environmental audio
- Building music generation applications
- Need melody-conditioned music generation
- Want stereo audio output
- Require controllable music generation with style transfer
**Key features:**
- **MusicGen**: Text-to-music generation with melody conditioning
- **AudioGen**: Text-to-sound effects generation
- **EnCodec**: High-fidelity neural audio codec
- **Multiple model sizes**: Small (300M) to Large (3.3B)
- **Stereo support**: Full stereo audio generation
- **Style conditioning**: MusicGen-Style for reference-based generation
**Use alternatives instead:**
- **Stable Audio**: For longer commercial music generation
- **Bark**: For text-to-speech with music/sound effects
- **Riffusion**: For spectogram-based music generation
- **OpenAI Jukebox**: For raw audio generation with lyrics
## Quick start
### Installation
```bash
# From PyPI
pip install audiocraft
# From GitHub (latest)
pip install git+https://github.com/facebookresearch/audiocraft.git
# Or use HuggingFace Transformers
pip install transformers torch torchaudio
```
### Basic text-to-music (AudioCraft)
```python
import torchaudio
from audiocraft.models import MusicGen
# Load model
model = MusicGen.get_pretrained('facebook/musicgen-small')
# Set generation parameters
model.set_generation_params(
duration=8, # seconds
top_k=250,
temperature=1.0
)
# Generate from text
descriptions = ["happy upbeat electronic dance music with synths"]
wav = model.generate(descriptions)
# Save audio
torchaudio.save("output.wav", wav[0].cpu(), sample_rate=32000)
```
### Using HuggingFace Transformers
```python
from transformers import AutoProcessor, MusicgenForConditionalGeneration
import scipy
# Load model and processor
processor = AutoProcessor.from_pretrained("facebook/musicgen-small")
model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-small")
model.to("cuda")
# Generate music
inputs = processor(
text=["80s pop track with bassy drums and synth"],
padding=True,
return_tensors="pt"
).to("cuda")
audio_values = model.generate(
**inputs,
do_sample=True,
guidance_scale=3,
max_new_tokens=256
)
# Save
sampling_rate = model.config.audio_encoder.sampling_rate
scipy.io.wavfile.write("output.wav", rate=sampling_rate, data=audio_values[0, 0].cpu().numpy())
```
### Text-to-sound with AudioGen
```python
from audiocraft.models import AudioGen
# Load AudioGen
model = AudioGen.get_pretrained('facebook/audiogen-medium')
model.set_generation_params(duration=5)
# Generate sound effects
descriptions = ["dog barking in a park with birds chirping"]
wav = model.generate(descriptions)
torchaudio.save("sound.wav", wav[0].cpu(), sample_rate=16000)
```
## Core concepts
### Architecture overview
```From AvaTar-ArTs/all-agent-skills, MIT.
More from AvaTar-ArTs/all-agent-skills
- 0.488score
agent-workflow-catalog
AvaTar-ArTs
Use when routing complex work through ordered skills and agents.
SkillBFreshness: BClaude Code +9 - 0.481score
automation-offer-workbench
AvaTar-ArTs
Use when productizing automation into reviewable offers.
SkillBFreshness: BClaude Code +9 - 0.481score
plugin-creator
AvaTar-ArTs
Create and scaffold plugin directories for Codex with a required `.codex-plugin/plugin.json`, optional plugin folders/files, validated manifest defaults, and…
SkillBFreshness: BClaude Code +9 - 0.476score
automate
AvaTar-ArTs
Use this skill to create Codex Automations.
SkillBFreshness: BClaude Code +9 - 0.475score
apple
AvaTar-ArTs
Use when working with Apple ecosystem tools - Reminders, FindMy, Notes, iMessage, Computer Use.
SkillBFreshness: BClaude Code +9 - 0.472score
code-formatter
AvaTar-ArTs
Formats code files using prettier and eslint.
SkillBFreshness: BClaude Code +9 - 0.467score
api-connector
AvaTar-ArTs
Connect to REST APIs, manage authentication, and process responses.
SkillBFreshness: BClaude Code +9 - 0.464score
code-formatter
AvaTar-ArTs
A simple example skill for demonstration purposes
SkillBFreshness: BClaude Code +9 - 0.461score
openai-docs
AvaTar-ArTs
Use when the user asks how to build with OpenAI products or APIs and needs up-to-date official documentation with citations, help choosing the latest model…
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 18, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/AvaTar-ArTs/all-agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.672score
audiocraft-audio-generation
Orchestra-Research
PyTorch library for audio generation including text-to-music (MusicGen) and text-to-sound (AudioGen).
SkillCFreshness: C★ 13.9KClaude Code +9 - 0.311score
audiocraft-audio-generation
Tommy-yw
PyTorch library for audio generation including text-to-music (MusicGen) and text-to-sound (AudioGen).
SkillCFreshness: C★ 510Claude Code +9 - 0.286score
audiocraft-audio-generation
vadimcomanescu
PyTorch library for audio generation including text-to-music (MusicGen) and text-to-sound (AudioGen).
SkillDFreshness: D★ 25Claude Code +9 - 0.254score
audiocraft-audio-generation
zhuangbiaowei
PyTorch library for audio generation including text-to-music (MusicGen) and text-to-sound (AudioGen).
SkillDFreshness: D★ 1Claude Code +9 - 0.241score
audiocraft-audio-generation
future1314
PyTorch library for audio generation including text-to-music (MusicGen) and text-to-sound (AudioGen).
SkillDFreshness: DClaude Code +9
More from AvaTar-ArTs
- 0.488score
agent-workflow-catalog
AvaTar-ArTs
Use when routing complex work through ordered skills and agents.
SkillBFreshness: BClaude Code +9 - 0.481score
plugin-creator
AvaTar-ArTs
Create and scaffold plugin directories for Codex with a required `.codex-plugin/plugin.json`, optional plugin folders/files, validated manifest defaults, and…
SkillBFreshness: BClaude Code +9 - 0.481score
automation-offer-workbench
AvaTar-ArTs
Use when productizing automation into reviewable offers.
SkillBFreshness: BClaude Code +9 - 0.476score
automate
AvaTar-ArTs
Use this skill to create Codex Automations.
SkillBFreshness: BClaude Code +9 - 0.475score
apple
AvaTar-ArTs
Use when working with Apple ecosystem tools - Reminders, FindMy, Notes, iMessage, Computer Use.
SkillBFreshness: BClaude Code +9 - 0.474score
evoked-publishing
AvaTar-ArTs
Turn approved source records into traceable publication packages.
SkillBFreshness: BClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get audiocraft-audio-generation running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
audiocraft-audio-generation skill. Agent Mart. https://agentmart.dev/skills/avatar-arts-audiocraft-audio-generation (last updated 2026-10-24)