Repo·github.com
audio-generationmusic-generationsound-effectsopen-sourcemeta-aitext-to-audiomachine-learningpython
AudioCraft
AudioCraft is Meta AI's open-source framework unifying MusicGen, AudioGen, and EnCodec for text-to-audio generation, offering a complete pipeline for generative audio research and production.
intermediate30-60 minutes3 steps
The play
- Install AudioCraftClone the AudioCraft repository and install the necessary dependencies. It's recommended to use a virtual environment.
- Download Pre-trained ModelsDownload the pre-trained models for MusicGen or AudioGen. Choose the appropriate model based on your desired output (music or sound effects).
- Generate Audio from TextUse the command-line interface or Python API to generate audio from a text prompt. Specify the model you downloaded and the desired output file.
Starter code
Start by exploring the pre-trained models and example scripts provided in the AudioCraft repository. Experiment with different text prompts to understand the capabilities of each model.
Source