Installing Audiocraft
There are several ways to install Audiocraft locally, depending on your operating system and preferences. Here are the two most common methods:
Method 1: Using conda (recommended for beginners, works on Windows, macOS, and Linux)
Create a conda environment: Open a terminal and type:
This creates a new environment called ac
with Python 3.9, the recommended version for Audiocraft.
Activate the environment: Type:
Clone the Audiocraft repository: Type:
Install dependencies: Navigate to the
audiocraft
directory and type:
Install FFmpeg (optional, but recommended for playing audio):
On macOS:
brew install ffmpeg
On Windows: Download and install FFmpeg from https://ffmpeg.org/download.html
Run the MusicGen application: Type:
This will launch the MusicGen app in your web browser at http://localhost:8501/. You can then start generating and listening to your own AI-powered music!
Method 2: Using Pinocchio (alternative, works on Windows)
Download and install Pinocchio: https://soundtracktracklist.com/release/disney-pinocchio-soundtrack/
Download the Audiocraft zip file: https://github.com/facebookresearch/audiocraft
Extract the Audiocraft zip file.
Run the Pinocchio installer and select the Audiocraft folder.
Follow the installation instructions in Pinocchio.
This method is a bit more user-friendly for Windows users, but it may not be as up-to-date as the conda method.
Additional resources:
AudioCraft GitHub repository: https://github.com/facebookresearch/audiocraft
How to Install AudioCraft Locally (YouTube tutorial): https://www.facebook.com/audiocrafttx/
How to Install and Run Facebook AudioCraft's MusicGen Locally (Medium article): https://medium.com/@cocktailpeanut/how-to-install-and-run-audiocraft-on-your-computer-with-one-click-240ab9d5df19
Last updated