Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Run Local Audio Stem Separation with Stem Separator and Docker

If you want to remove vocals from a song, isolate drums, or export several instrument tracks, sending audio to a third-party API is not your only option. Stem Separator is an open-source, self-hosted web application that runs the separation pipeline on your own machine, homelab, or NAS. This tutorial uses the project's stable v1.0.0 release and Docker Compose. You will start the CPU version,…

Stem Separator is an open-source, self-hosted web application that separates audio tracks on your own machine. It uses the stem-separator/stem-separator project, which is MIT licensed, and can run the separation pipeline using Docker Compose. The tutorial uses the stable v1.0.0 release.

To start, clone the repository with the specific version and change into the directory. Then, build the service using Docker Compose. The service listens on port 7860, which can be accessed through a web browser at http://localhost:7860.

After verifying the service's health and logs, you can upload an audio file in one of the supported formats (MP3, WAV, FLAC, M4A, AAC, OGG, or OPUS). The default separation mode divides the file into vocals and music tracks using the MDX-Net Inst HQ 3 model.

The application stores model weights in a Docker volume and outputs the processed files in the ./data/output directory. It does not have built-in authentication or rate limiting, so it should only be used on localhost or a trusted LAN unless an authenticated reverse proxy is added.

Prerequisites for running Stem Separator include Docker Engine with the Compose plugin and Git, along with at least 4 GB of RAM and an audio file in a supported format. The default deployment includes FFmpeg, which is not required for Python, PyTorch, or FFmpeg installation on the host.

After running the application, you can verify its health and logs before uploading an audio file. The resulting files are stored in the ./data/output directory, and the application retains completed or failed job folders for 24 hours by default.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

fm-cli is in the official Omarchy package repo

I have been waiting on this one. fm-cli, my little terminal client for Fastmail, is now an optional package in the official Omarchy repo.

  • fm-cli added to Omarchy package repo
  • Install via menu or 'omarchy pkg add'
  • Provides Fastmail JMAP API client

More from Thursday 26 November →