Others · June 12, 2023

Meta open sources an AI-powered music generator

Not to be toptechtrends.com/2023/01/27/google-created-an-ai-that-can-generate-music-from-text-descriptions-but-wont-release-it/”>outdone by Google, Meta has released its own AI-powered music generator — and, unlike Google, made it available in open source.

Called MusicGen, Meta’s music-generating tool — a demo of which can be found here — can turn a text description (e.g. “An ’80s driving pop song with heavy drums and synth pads in the background”) into about 12 seconds of audio, give or take. MusicGen can optionally be “steered” with reference audio, like an existing song, in which case it’ll try to follow both the description and melody.  

Meta says that MusicGen was trained on 20,000 hours of music, including 10,000 “high-quality” licensed music tracks and 390,000 instrument-only tracks from ShutterStock and Pond5, a large stock media library. The company hasn’t provided the code it used to train the model, but it has made available pretrained models that anyone with the right hardware — chiefly a GPU with around 16GB of memory — can run.

So how does MusicGen perform? Well, I’d say — though certainly not well enough to put human musicians out of a job. Its songs are reasonably melodic, at least for basic prompts like “ambient chiptunes music,” and — to my ears — on par (if not slightly better) with the results from Google’s AI music generator, MusicLM. But they won’t win any awards.

Here’s the output from MusicGen for “jazzy elevator music”:


And here’s MusicLM’s take:


Next, I gave a more complicated prompt to attempt to throw MusicGen for a loop: “Lo-fi slow BPM electro chill with organic samples.” MusicGen surprisingly outshined MusicLM in terms of musical coherence, producing something that’d easily find a home on Lofi Girl.

Here’s MusicGen’s sample:

And here’s MusicLM’s:

To switch things up a bit, I tried using both tools to generate a piano ditty in the style of George Gershwin. I say “tried” because, in a effort to forestall the copyright issues around generative music tools, Google implemented a filter in the public version of MusicLM that blocks prompts mentioning specific artists.

MusicGen has no such filter. But the results for “Background piano music in the style of Gershwin,” left something to be desired, I must say:

Generative music is improving, clearly (see toptechtrends.com/2022/12/15/try-riffusion-an-ai-model-that-composes-music-by-visualizing-it/”>Riffusion, toptechtrends.com/2022/10/07/ai-music-generator-dance-diffusion/”>Dance Diffusion and OpenAI’s toptechtrends.com/tag/jukebox/”>Jukebox). But major ethical and legal issues have yet to be ironed out. AI like MusicGen “learns” from existing music to produce similar effects, a fact with which not all artists — or generative AI users — are comfortable.

Increasingly, homemade tracks that use generative AI to conjure familiar sounds that can be passed off as authentic, or at least close enough, have been going viral. Music labels have been quick to flag them to streaming partners, citing intellectual property concerns — and they’ve generally been victorious. But there’s still a lack of clarity on whether “deepfake” music violates the copyright of artists, labels and other rights holders.

It might not be long before there’s guidance on the matter. toptechtrends.com/2023/01/27/the-current-legal-cases-against-generative-ai-are-just-the-beginning/”>Several lawsuits making their way through the courts will likely have a bearing on music-generating AI, including one pertaining to the rights of artists whose work is used to train AI systems without their knowledge or consent.

For its part, Meta, which isn’t imposing restrictions on how MusicGen can be used, says that all the music MusicGen was trained on was “covered by legal agreements with the right holders,” including a deal with Shutterstock.

toptechtrends.com/2023/06/12/meta-open-sources-an-ai-powered-music-generator/”>Meta open sources an AI-powered music generator by toptechtrends.com/author/kyle-wiggers/”>Kyle Wiggers originally published on toptechtrends.com/”>TechCrunch

About The Author