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)

  1. Create a conda environment: Open a terminal and type:

conda create -n ac python=3.9

This creates a new environment called ac with Python 3.9, the recommended version for Audiocraft.

  1. Activate the environment: Type:

conda activate ac
  1. Clone the Audiocraft repository: Type:

git clone https://github.com/facebookresearch/audiocraft.git
  1. Install dependencies: Navigate to the audiocraft directory and type:

pip install -r requirements.txt
  1. Install FFmpeg (optional, but recommended for playing audio):

  1. Run the MusicGen application: Type:

python demos/musicgen_app.py dash --share

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)

  1. Download the Audiocraft zip file: https://github.com/facebookresearch/audiocraft

  2. Extract the Audiocraft zip file.

  3. Run the Pinocchio installer and select the Audiocraft folder.

  4. 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:

Last updated