How to Generate Sound Effects & Music with AI

Updated
How to Generate Sound Effects & Music with AI
Effortlessly generate high-quality sound effects and music with Stable Audio Open! Learn how to set up and create custom audio with our simple tutorial.

1. Introduction Stable Audio Open

Introducing Stable Audio Open: your new go-to for effortless sound generation! Bid farewell to costly sound libraries and complicated audio production software. With this cutting-edge AI model, you can generate any sound with just one click. From drum beats and instrument riffs to ambient sounds and sound effects, this revolutionary tool creates up to 47 seconds of high-quality audio from a simple text prompt. In this tutorial, I'll demonstrate how to quickly generate the perfect sound for your project. Ideal for music producers, sound designers, and anyone aiming to elevate their audio projects with ease!

2. Requirements Stable Audio Open

To start off let's make sure we have all the requirements to begin. Here’s what you need.

Python

To run Stable Audio Tools you need to have Python installed on your computer.

GIT for Windows

You need Git for Windows to easily download software or tools directly from repositories like GitHub.

AI Image Generator⚡️Create Stunning AI Images within seconds
20% discount on First Order

3. Downloading Stable Audio Tools

To begin, create an empty folder on your hard drive.

  • Click on the folder path and type “cmd”, press enter.
  • Wait for the command prompt to launch
  • In the command prompt paste the following line: “git clone https://github.com/Stability-AI/stable-audio-tools.git” and press enter.

ai-generated-sound-effects-music-stable-audio-open-github.webp

Next we need to paste a few more lines in the same command prompt to install the cuda version of torch.

  • First we navigate inside the folder by typing: “cd stable-audio-tools”
  • Then create a python environment with “python -m venv env”
  • Activate the virtual environment with “env\Scripts\activate”
  • Install the cuda version of torch with this command: “pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121”

ai-generated-sound-effects-music-stable-audio-open-download.webp

Once Torch is installed, the final step is to install the packages using “pip install .”

ai-generated-sound-effects-music-stable-audio-open-packages.webp

4. Downloading the Stable Audio Open Model

While the packages are being installed we can go ahead and download the stable-audio-open-1.0 model from Hugging Face. You need to create an account and fill out the information to access this model.

ai-generated-sound-effects-music-stable-audio-open-model-information.webp

Once you’ve done that go and head to “Files and versions” and download “model.safetensors” and “model_config.json”.

ai-generated-sound-effects-music-stable-audio-open-model-download.webp

Once the model and the config have been downloaded we will move them inside a new folder that we have to create inside the stable-audio-tools folder. Create a new folder named “ckpt” and move the safetensors and json file in here. ai-generated-sound-effects-music-stable-audio-open-ckpt.webp

AI Image Generator⚡️Create Stunning AI Images within seconds
20% discount on First Order

5. Run the Stable Audio Tools WebUI

We can now run the WebUI by running the following command in the command prompt.

python run_gradio.py --ckpt-path ".\ckpt\model.safetensors" --model-config ".\ckpt\model_config.json"

ai-generated-sound-effects-music-stable-audio-open-run-webui.webp

Now you should see a local URL, hold CTRL and click on the link to launch the WebUI!

ai-generated-sound-effects-music-stable-audio-open-launch-webui.webp

6. Using the Stable Audio Tools WebUI

With the WebUI launched we can finally have some fun and start generating some awesome sound effects!

  • In the Prompt section simply type what you want to generate, for example “guitar solo”.
  • Set the length of the audio by adjusting the “Seconds total” slider (max 47).
  • We can increase the steps to get a better quality output.

I recommend starting at 100 steps to test your prompts and when you’re satisfied increase the steps to 300-400.

With the settings adjusted hit “Generate” and listen as AI creates amazing sounds for you! It’s that easy!

ai-generated-sound-effects-music-stable-audio-open-generate.webp

AI Image Generator⚡️Create Stunning AI Images within seconds
20% discount on First Order

7. Relaunching the WebUI

As you may have noticed there is no .bat file to launch the stable-audio-tools WebUI. Luckily it’s very easy to create one ourselves. Head to the stable-audio-tools root folder and create a new text document, name it “start_webui”. Open the text file and paste the following:

@echo off

python -m venv env

timeout /t 2 /nobreak > nul

call env\Scripts\activate

timeout /t 1 /nobreak > nul

python run_gradio.py --ckpt-path ".\ckpt\model.safetensors" --model-config ".\ckpt\model_config.json"

ai-generated-sound-effects-music-stable-audio-open-relaunch-txt-file.webp

Now we will save it as a .bat file that we can run to launch the WebUI.

  • Go to File
  • Click Save As
  • Change the Save As type to “all files”
  • Change the file name to “start_webui.bat”
  • Click Save

ai-generated-sound-effects-music-stable-audio-open-relaunch-bat-file.webp

Now when you want to run Stable Audio Tools simply double click the “start_webui.bat” file. This will launch the command prompt and will create the local URL for you.

8. Conclusion Stable Audio Open

Congratulations! You've now mastered the use of Stable Audio Open to effortlessly generate high-quality sound effects and music. By following this tutorial, you've set up the necessary tools, installed the required software, and learned how to operate the Stable Audio Tools WebUI to create custom audio with just a few clicks. Keep experimenting with different prompts and settings to explore the full potential of this innovative tool. Happy sound generating!

Frequently Asked Questions

Stable Audio Open is an AI-powered tool that generates high-quality sound effects and music from simple text prompts, ideal for music producers and sound designers.

Install Python and Git, then clone the Stable Audio Tools repository. Follow the setup instructions to create a virtual environment and install necessary packages

Stable Audio Open simplifies the process of creating custom audio, saving time and money on costly sound libraries and complex production software.

character creation tool card

AI Image Generation Tool

Create Your AI Images in Seconds!

News & Updates