# Create Generative AI Music from text with Audiocraft Part 1 – Local setup

In this video we'll use Audiocraft, an open source library from Facebook, to create a fully customizable interface for generating AI audio. Because the instructions and latest code seem to not work for most people, this video will show you how to get around the issues, and up and running smoothly.

0:00 - Stable Audio Demo 0:55 - Hosted AudioCraft Demo on Hugging Face 2:26 - Install Prerequisites 3:48 - Install Audiocraft 5:30 - Modifying the code to fix install issues 7:00 - Run the music generator in your browser

Links

- Code Repo: https://github.com/facebookresearch/audiocraft/ - \[Hosted Demo: https://huggingface.co/spaces/facebook/MusicGen - Install Issue: https://github.com/facebookresearch/audiocraft/issues/105 - How to manage virtual environments in Python: https://python.land/virtual-environments/virtualenv

About Me: I am a Staff Design Technologist on Mozilla's Innovation Team. All opinions and explorations are my own. Learn more about Mozilla Innovation at future.mozilla.org

Dependencies:

- Python 3.9+ - Pip - VirtualEnv - FFMpeg - Sourcetree (optional)

- Code editor (recommend VSCode)

- Kind: Short
- Year: 2023
- Runtime: 8 min
- By: Practical AI through Prototypes
- Genres: Music
- Archive: [Wikimedia Commons](https://commons.wikimedia.org/wiki/File:Create_Generative_AI_Music_from_text_with_Audiocraft_Part_1_%E2%80%93_Local_setup.webm)
- Licence or status: [CC BY 3.0](https://creativecommons.org/licenses/by/3.0) (as the archive states it)
- Credit: Practical AI through Prototypes
- Who can watch: Tweens profiles and older (the archive gives no rating; placed by Invisible Network from its collection and subjects)

[Watch now](https://invisiblenetwork.ai/watch/archive/commons/152523485?play=1)
