Audio Overlayer avatar

Audio Overlayer

Pricing

from $120.00 / 1,000 audio overlay results

Go to Apify Store
Audio Overlayer

Audio Overlayer

Merge one or more audio tracks onto a base audio file at specific timestamps. The output duration always matches the base audio — overlapping tracks are automatically trimmed.

Pricing

from $120.00 / 1,000 audio overlay results

Rating

5.0

(1)

Developer

dead minds

dead minds

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

12 days ago

Last modified

Security

Limited permissions

Share

🎵 Audio Overlay Actor

An Apify Actor that merges one or more audio files on top of a base audio track, at specific points in time. Supports any combination of input formats — MP3, WAV, OGG, FLAC, AAC, OPUS, and more.

How it works

  • The base audio (baseAudioUrl) always determines the total duration of the output.
  • Each audio in overlays is mixed in starting at its own startTimeSec (in seconds from the beginning of the result).
  • If an overlay extends beyond the end of the base audio, it is automatically trimmed. The final duration always equals the duration of the base audio — no exceptions.
  • Input tracks can be in any format — FFmpeg handles the conversion automatically. You can mix an MP3 base with a WAV overlay and export to FLAC, for example.

Input

{
"baseAudioUrl": "https://example.com/base.mp3",
"overlays": [
{
"audioUrl": "https://example.com/overlay.wav",
"startTimeSec": 5
}
],
"outputFormat": "mp3"
}
FieldTypeRequiredDescription
baseAudioUrlstring✅Public URL of the base audio file. Its duration defines the output duration.
overlaysarray✅List of audio files to mix in, each with their own start time. Can be empty.
overlays[].audioUrlstring✅Public URL of the audio to overlay. Any format supported by FFmpeg.
overlays[].startTimeSecnumber✅Second at which this overlay starts playing in the final result. Must be ≥ 0.
outputFormatstring❌Output file format (default: mp3). See supported formats below.

Supported formats

Input and output formats are handled by FFmpeg — inputs are detected automatically, no matter the file extension.

FormatInputOutput
MP3✅✅
WAV✅✅
OGG✅✅
FLAC✅✅
AAC✅✅
M4A✅✅
OPUS✅✅
WMA✅✅

You can freely mix formats — e.g. MP3 base + WAV overlay → FLAC output.

Supported audio sources

The Actor downloads audio files directly via URL. The URL must return the raw audio binary — not an HTML page or a redirect confirmation screen.

✅ Works: raw.githubusercontent.com, direct Dropbox links (?dl=1), any direct download URL.
❌ Doesn't work: Google Drive share links, YouTube, SoundCloud, or any URL that requires login or redirects to a webpage.

Multiple overlays example

You can mix more than one audio on top of the base:

{
"baseAudioUrl": "https://example.com/music.mp3",
"overlays": [
{ "audioUrl": "https://example.com/voiceover.wav", "startTimeSec": 0 },
{ "audioUrl": "https://example.com/jingle.ogg", "startTimeSec": 30 }
],
"outputFormat": "flac"
}

Output

The Actor saves the resulting audio file to the run's Key-Value Store under the key OUTPUT. You can access it from:

  • The Storage tab in the Apify Console after the run completes.
  • Directly via the API:
    https://api.apify.com/v2/key-value-stores/{storeId}/records/OUTPUT

The run log also prints the full download URL at the end:

[INFO] Audio final disponible en: https://api.apify.com/v2/key-value-stores/.../records/OUTPUT

Tech stack

  • Python 3.12
  • Pydub — audio mixing and processing
  • FFmpeg — underlying audio engine, handles all format conversions automatically
  • Requests — downloading audio files from URLs

Roadmap (v2)

  • Per-overlay volume control (volumeDb)
  • Fade in / fade out
  • Audio sequencing (back-to-back, not just simultaneous)
  • Loop an overlay N times
  • Trim the base audio before processing