FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
AudioCraft Has a Free API — Meta's AI for Music, Sound Effects, and Audio
NewsProgramming Languages

AudioCraft Has a Free API — Meta's AI for Music, Sound Effects, and Audio

via Dev.to PythonAlex Spinov4h ago

AudioCraft: Three AI Models in One Package Meta's AudioCraft includes three powerful models: MusicGen — generate music from text descriptions AudioGen — generate sound effects from text EnCodec — neural audio compression All open-source, all running locally, all free. The Free API (Python) MusicGen — Text to Music from audiocraft.models import MusicGen from audiocraft.data.audio import audio_write # Load model (small/medium/large/melody) model = MusicGen . get_pretrained ( " facebook/musicgen-medium " ) model . set_generation_params ( duration = 30 ) # 30 seconds # Generate from text wav = model . generate ([ " epic orchestral battle music with drums and brass " , " lo-fi hip hop beat with rain sounds " ]) for i , one_wav in enumerate ( wav ): audio_write ( f " music_ { i } " , one_wav . cpu (), model . sample_rate ) AudioGen — Text to Sound Effects from audiocraft.models import AudioGen model = AudioGen . get_pretrained ( " facebook/audiogen-medium " ) model . set_generation_params (

Continue reading on Dev.to Python

Opens in a new tab

Read Full Article
0 views

Related Articles

Anthropic Literally Sued the US Defense Department for Banning It While Giving the Contract to…
News

Anthropic Literally Sued the US Defense Department for Banning It While Giving the Contract to…

Medium Programming • 20m ago

Here’s what Verge readers are buying during Amazon’s Big Spring Sale
News

Here’s what Verge readers are buying during Amazon’s Big Spring Sale

The Verge • 44m ago

Getting formal about quantum mechanics' lack of causality
News

Getting formal about quantum mechanics' lack of causality

Ars Technica • 1h ago

From Moon hotels to cattle herding: 8 startups investors chased at YC Demo Day
News

From Moon hotels to cattle herding: 8 startups investors chased at YC Demo Day

TechCrunch • 1h ago

I Tried Claude Code…and It Completely Changed How I Write Code
News

I Tried Claude Code…and It Completely Changed How I Write Code

Medium Programming • 1h ago

Discover More Articles