Browser-based audio tool · voice + music → one mix as WAV or MP3

Auto-Duck Music Under Voice

Lay a music bed under a voiceover and let the music dip whenever the voice speaks. The page measures the voice, drops the music by the amount you set with attack and release times, and draws the gain curve over the music waveform before you export.

Voice and music tracks

Each up to 60 minutes. Both are decoded at 44.1 kHz; the mix is as long as the voice.

Drop the voice track here

the speech: .mp3, .wav, .m4a, a video

Drop the music track here

the music bed: .mp3, .wav, .m4a, .flac

Choose both tracks to see the speech detection and the gain curve.

Ducking settings

Mix and export

File type

16-bit PCM at the working sample rate.

Auto-Duck Music Under Voice

Operator: Abdulla Al Fahad. How tools are built and checked

Music under a voiceover has to get out of the way when the speaker starts and come back when they stop, without pumping between words. Auto-ducking does that by letting the voice track steer the music's volume, the job a sidechain compressor does in a studio.

Here the steering is visible: a threshold on the voice, a depth in dB, attack and release times, and a gain curve drawn over the music waveform before anything is mixed. With the defaults, music under a voice that starts at 4.0 s is already 1.7 dB down at 3.9 s and 13.9 dB down by 4.3 s; after the voice stops at 8.0 s it is held down briefly, then climbs back to within 2 dB of its normal level by 9.5 s.

Key features

  • Speech found from the voice track's level, with a threshold, a hold time and a look-ahead
  • Music depth from 1 to 40 dB, with separate attack and release time constants
  • Music level, fade-in, fade-out and looping for music shorter than the voice
  • The gain curve drawn over the music waveform, and WAV or MP3 export

How speech is detected and how the music gain follows it

Both tracks are decoded at 44.1 kHz and mixed to stereo, a mono track being copied to both sides and a 5.1 or 7.1 source folded down first, with the centre and surround channels at 0.707 in both sides and the LFE left out, so a voice carried by the centre channel is still heard; each may be up to 60 minutes, and the voice can be an audio or a video file. The mix is as long as the voice. A music track that is shorter loops when looping is on and otherwise ends, and the page says by how much. If the sum would pass 0.98 of full scale, the whole mix is turned down to 0.98 so the 16-bit file does not clip. The output is a 16-bit WAV or an MP3 at 64 to 320 kbit/s.

How it works

The voice is measured in 10 ms blocks as RMS in dBFS across its channels. A block above the threshold, -42 dBFS by default, counts as speech, and speech stays on for the hold time, 350 ms by default, after the last loud block, so the gaps between words do not let the music bounce up.

The gain target is minus the depth while speech is on and 0 dB otherwise, read the look-ahead early (100 ms) so the music is already moving when the first word begins. The gain follows its target one block at a time, in dB, with a time constant of 80 ms going down (attack) and 600 ms going up (release): each 10 ms step closes a fraction 1 − e^(−0.01/τ) of the remaining distance, where τ is the time constant in seconds.

The music is multiplied by that gain, interpolated linearly between block centres, then by its fixed level (-6 dB by default) and the fades, and added to the voice, which is left untouched.

Common use cases

  • Putting a 3-minute loopable track under a 9-minute voiceover: looping repeats it three times, with the fade-in only at the start and the fade-out only at the end.
  • Narrating a screencast with long pauses: a hold of 1,500 ms keeps the music low through short pauses, while 350 ms lets it rise between sentences.
  • Mixing an interview that exists only as a video file: drop the video as the voice track and the page uses its soundtrack.

How to use this tool

  1. Drop the voice track on the left; speech is shaded on its waveform as soon as it has decoded.
  2. Drop the music track on the right.
  3. Move the speech threshold until the amber shading covers the phrases and little else.
  4. Set the depth, attack, release and hold; the curve and the music waveform update.
  5. Set the music level, the fades and looping.
  6. Press Mix and export, choose WAV or MP3, and play the result in the page.

Example

A 20-second voice track with speech at 4.0 to 8.0 s and 12.0 to 13.0 s, silent elsewhere, with the default settings

Threshold -42 dBFS, depth 14 dB
Attack 80 ms, release 600 ms
Hold 350 ms, look-ahead 100 ms

Music gain below its own level, and what the page reports

3.5 s:  0.0 dB
3.9 s: -1.7 dB
4.0 s: -10.5 dB
4.3 s: -13.9 dB
8.7 s: -6.6 dB
9.5 s: -1.7 dB
Speech flagged 5.7 s (5 s of voice plus hold); music 3 dB or more down for 7.5 s

Common pitfalls

Detection uses level alone. A fan, loud room noise or music leaking into the voice microphone can look like speech, so clean the voice first with Audio Noise Reducer on this site or raise the threshold.

Look-ahead cannot tell a word from a loud click or breath; the music dips for those as well.

Between phrases the music returns to full level, 14 dB higher than under speech with the default depth, so check the finished mix against your platform's loudness target with LUFS Loudness Meter.

  • Watch the amber shading while you move the threshold: it should start at the first syllable and end shortly after the last. If breaths are shaded, raise the threshold by 3 to 5 dB.
  • A release of 1 to 2 s sounds smooth under sustained notes, while 200 to 300 ms suits a rhythmic bed whose beat should return between lines.

Common errors and how to fix them

No speech passed the threshold
Lower the threshold, or check that the voice track is the one that contains speech.
Decoded, this track would take more memory than the page allows
Each track may hold the equivalent of 60 minutes of 48 kHz stereo. Cut the file shorter with Audio Cutter, or use a mono copy.

Best practices

  • Set the threshold on voice-only passages first, then listen to one exported mix: the curve shows when the music moves, and only the ear tells whether the depth is right.
  • Leave 2 to 4 seconds of fade-out so the music ends under the last words instead of stopping with the voice.

Frequently asked questions

When is a fixed music level enough?

For a short clip with one voice line, a constant level is simpler, and Replace Audio in Video on this site mixes under at a set volume. Ducking pays off when speech comes and goes, since a fixed level is either too loud under the words or too quiet in the gaps.

How does this differ from a compressor's sidechain input?

The idea is the same, but the controls sit on the voice level itself and the whole gain curve is worked out in advance. That is what makes look-ahead and the drawn curve possible.

Why does the music start to dip before the voice does?

That is the look-ahead, 100 ms by default. Set it to 0 and the dip begins with the first block that passes the threshold.