Skip to the tool workspace
Browser 123

How-to AI music

How to make background music for a video

Generate a music bed of the right length, trim and fade it, and set its loudness so it sits under a voice instead of fighting it.

A music bed has one job: fill the silence without being noticed. That means the right length, a clean start and end, and a level well under the voice.

Generate the bed

Describe something steady. A bed with a lead melody, vocals or big changes competes with the speaker.

Light, upbeat background music, acoustic guitar, soft claps, steady, no lead melody
Calm corporate ambient, soft pads, gentle piano, slow, minimal
Warm lo-fi beat, mellow keys, vinyl crackle, relaxed, no vocals

Make it a few seconds longer than you need. Fading the end of a longer track sounds better than a track that stops on its own.

Trim and fade

The direct wayFFmpegmacOS · Linux · Windows

Cut the bed to 30 seconds, fade it in over 1 second and out over the last 3:

ffmpeg -i music.wav -t 30 -af "afade=t=in:d=1,afade=t=out:st=27:d=3" bed.wav

-t is the length, and st is where the fade-out starts: the length minus the fade.

In a video editor the same thing is a trim and two fade handles. Use whichever you are already in.

Set the level

Loudness is measured in LUFS, which follows how loud something sounds rather than its peaks. Measure first:

ffmpeg -i bed.wav -af ebur128 -f null -

The summary at the end prints I:, the integrated loudness of the whole file.

To bring a file to a target, loudnorm does it in one pass. This sets a podcast mix to -16 LUFS with peaks below -1.5 dB:

ffmpeg -i mix.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 mix-16.wav

Run it on the finished mix, voice and music together, not on the bed alone. The bed's own level is set by ear against the voice in your editor.

From prompt to finished bed
  1. Generate an instrumental a few seconds longer than the edit, and download the WAV.
  2. Trim it to length and fade both ends.
  3. Put it under the voice in your editor and lower it until it supports rather than competes. Check on a phone speaker.
  4. Export the mix and measure it. Normalise to the target of the platform it is going to.

Questions people ask

What loudness should the finished video have?

It depends on where it goes. YouTube and most streaming services turn playback down to around -14 LUFS, and Apple's podcast guidelines ask for about -16 LUFS. Measure the whole mix, music and voice together, not the music alone.

How loud should the music be under speech?

Well below the voice. Start low, listen on small speakers or a phone, and raise it only until you notice it is gone when muted.

Can I use AI music in a monetised video?

Music from ACE-Step 1.5 is MIT licensed, and its authors allow commercial use of what you make. Platforms can still flag music that resembles something else; keep your generation settings in case you need to show where it came from.

Why does the bed sound busy under my voice?

The prompt asked for too much. Ask for one mood and a few instruments, with no lead melody or vocals, and pick a steady genre.

Tools in this guide

Everything runs on your device

All guides First published 12 Oct 2026

/
123 items
Runs in your browser·Your files stay on this device
Out0 B
Ready—