Web ArticlePromoted
Extracting Vocals with AI in the Browser: A Technical Deep Dive - DEV Community
Created on September 20, 2026

The article details the development of an in-browser AI vocal extraction tool, leveraging Demucs, a state-of-the-art music source separation model from Meta, which has been adapted to run in web browsers using ONNX Runtime Web. It advocates for client-side processing over cloud-based services, emphasizing several key advantages. These benefits include enhanced user privacy, as audio files never leave the user's device; the elimination of time-consuming upload processes; and the ability to operate offline once the initial model download is complete.
The author provides an architectural overview of the tool, explaining how Demucs functions to separate mixed audio into its constituent parts: drums, bass, other instruments, and vocals. The article clarifies that Demucs performs an estimation rather than a direct extraction of hidden multitracks, by learning from thousands of pre-separated songs. It also discusses the varying quality of separation for different instruments, noting that bass and drums typically separate most cleanly, while vocals can be more challenging due to their frequency overlap with other instruments.
Summarized using AI, subject to mistakes
Loading...