Local Stem Separation and Speech Cleanup SDK

Build the LALAL.AI SDK into your software or device. It runs on your users’ computers, your own servers or embedded boards and does not send your audio to our servers. Stem separation includes a low-latency mode for live audio.

Request SDK Access
A tablet shows C code using the LALAL.AI SDK. One audio track splits into stems for vocals, drums, bass, piano and guitar.

What the SDK Does

Stem Separator

Split a song into vocals, drums, bass, piano, acoustic guitar and electric guitar. Get one stem on its own, a mix of the stems you choose, or the track without them.

Speech Cleaner

Remove background noise, instrumental music and other sounds from speech. You get two outputs: the clean speech and the isolated background audio.

Made for speech. For vocals in songs, use Stem Separator.

Voice Dereverb

Reduce room echo and reverb in recorded speech. You get two outputs: the voice with less reverb and the isolated reverb.

For recordings with background noise, run Speech Cleaner first.

Two Processing Modes

Streaming works on small blocks of audio as they arrive, non-streaming on large ones.

Streaming For live audio with the lowest delay. Non-Streaming For stored audio and batch jobs.
LatencyLow (~100 ms model latency)Adjustable; lower latency takes more compute
ThroughputLower than non-streamingHigh
PlatformsWindows, macOS, Linux x86_64 and embedded Linux boards with an NPUWindows, macOS and Linux x86_64iOS and Android builds are made on request. We confirm the modes for your device during evaluation.
Features

Stem Separator

  • Vocals
  • Drums
  • Bass
  • Piano

In development

  • Acoustic Guitar
  • Electric Guitar
  • Speech Cleaner

Stem Separator

  • Vocals
  • Drums
  • Bass
  • Piano
  • Acoustic Guitar
  • Electric Guitar

Speech

  • Speech Cleaner
  • Voice Dereverb

Where the SDK Runs

One C API from your backend to your devices. Packages for Windows, macOS and Linux are ready for evaluation. We build the SDK for your board or phone.

Desktop and Server

Packages Ready

  • Windows

    x64

    GPU (DirectML) or CPU.

  • macOS

    13.3+, Apple silicon

    Core ML or CPU. Intel builds on request.

  • Linux

    x86_64

    NVIDIA GPU (CUDA) or CPU.

Run it on a workstation or a server. Several instances can run in parallel; your hardware sets the limit.

Embedded Linux Boards

Built for Your Target

  • Chips With an NPU

    Allwinner, Rockchip, Amlogic and Sophgo.

    Some configurations run on boards with as little as 128 MB of RAM. Capabilities depend on the target platform.

Requires the chip vendor’s NPU driver.

See the SDK on a real board: Stem Splitter Box.

Mobile

Built for Your Target

  • iOS

    iPhone and iPad with Core ML.

  • Android

    Phones and tablets; support depends on the chipset.

We confirm the feature set for each device class during evaluation.

Other Chips

Port Assessed With You

  • A New NPU or SoC

    Share your toolchain, the model operations your NPU supports and its runtime.

    We assess the port and plan the integration with your engineers.

What You Can Build With the SDK

Video and Podcast Editing Apps

Clean dialogue, remove room echo and background noise inside your editor, with nothing uploaded.

Localization and Dubbing Tools

Isolate the dialogue and keep the music and effects as a separate track, on your own infrastructure.

Music Learning and DJ Apps

Let students isolate an instrument to learn a part. Let DJs split tracks into vocals, drums, bass and piano live, during a set.

Transcription and Call Recording Tools

Clean up speech before transcription or archiving, on your servers or inside your app.

TVs, Speakers and Practice Devices

Add sing-along and play-along modes that run on your device.

Post-Production and Broadcast Systems

Process material that cannot leave the facility: archives, unreleased content and projects under NDA.

What You Get With the SDK

Audio Stays With You

The SDK processes audio inside your product and does not send it anywhere. Use it for content you cannot upload to a cloud service.

Real-Time Streaming

Separate stems as the audio arrives, with low latency. Our web app and API work only with uploaded files.

No Per-Minute Fees

You do not pay LALAL.AI for processing minutes.

One API From Servers to Devices

Use the same C API in your backend, your apps and your devices.

How to Get the SDK

  1. Request Access

    Tell us what you are building, which features you need and where they will run.

  2. Try the SDK for Free

    Test an evaluation build with your own audio on your own hardware. We help you integrate the SDK and assess the results.

  3. Get a Commercial License

    If you decide to proceed, we agree on commercial terms. Your build includes only the features you license.

Request SDK Access

For Developers

A C API for your audio pipeline. Choose your features, pass decoded audio, read the output buffers. The same calls work in streaming and non-streaming mode.

Excerpt: processing decoded audio after setup.

split_stems.c
const float *inputs[] = {pcm};
CHECK(lal_proc_instance_process(
    instance, inputs, 1, frames, 1, &result));

for (size_t i = 0; i < result.output_buffer_count; ++i)
    save_stem(i, result.output_buffers[i],
              result.produced_frame_count);
Language
C API. Call it from C++, Rust, Python, C#, Swift, Go or any language that can call C.
Package
C header, shared library (.dll, .dylib or .so), bundled runtimes, CMake package, documentation and C examples.
Input
Decoded 32-bit float PCM, stereo, any sample rate. Your app decodes the file or stream.
Output
One buffer per stem or output, at the input sample rate.
  1. 1

    Create a Factory

    Load the SDK and see which features your build contains.

  2. 2

    Choose Your Features

    Pick vocals, drums, bass or other outputs with one parameter.

  3. 3

    Create an Instance

    Set the sample rate, the buffer layout and the processing mode.

  4. 4

    Process the Audio

    Pass blocks of decoded audio of any size. Every mode uses the same calls.

  5. 5

    Read the Outputs

    Each output comes back as its own buffer, ready for playback or export.

Developer Example: Setup, Error Checks and Cleanup

split_stems.c
#include <stdio.h>
#include <lalalai_proc_capi.h>

#define CHECK(call) \
    if ((status = (call)) != LAL_PROC_STATUS_OK) goto done

/* find_feature() and save_stem() are app helpers,
   not SDK functions. find_feature() picks a
   non-streaming feature with a stem_mask parameter. */

/* Split a decoded stereo track into drums and bass */
int split_drums_and_bass(const float *pcm, size_t frames,
                         double sample_rate)
{
    lal_proc_status_t status;
    lal_proc_factory_t *factory = NULL;
    lal_proc_instance_t *instance = NULL;
    lal_proc_process_result_t result = {0};

    CHECK(lal_proc_factory_create(&factory));

    /* Choose the stems you need */
    lal_proc_init_param_value_t stems[] = {
        {"stem_mask",
         LAL_PROC_STEM_MASK_DRUMS | LAL_PROC_STEM_MASK_BASS},
    };
    lal_proc_instance_config_t config = {
        .struct_size = sizeof config,
        .input_sample_rate_hz = sample_rate,
        .buffer_layout = LAL_PROC_BUFFER_LAYOUT_INTERLEAVED,
        /* OFFLINE: process stored audio as fast as possible */
        .processing_mode = LAL_PROC_PROCESSING_MODE_OFFLINE,
        .init_params = stems,
        .init_param_count = 1,
    };
    const char *feature = find_feature(factory, "stem_mask");
    CHECK(lal_proc_factory_create_instance(factory, feature,
                                           &config, &instance));

    /* Process a block of decoded audio */
    const float *inputs[] = {pcm};
    CHECK(lal_proc_instance_process(instance, inputs, 1,
                                    frames, 1, &result));

    /* Each output is a selected stem, the rest of the track
       or their mix */
    for (size_t i = 0; i < result.output_buffer_count; ++i)
        save_stem(i, result.output_buffers[i],
                  result.produced_frame_count);

done:
    if (status != LAL_PROC_STATUS_OK)
        fprintf(stderr, "SDK error: %s\n",
                lal_proc_last_error_message());
    lal_proc_instance_destroy(instance);
    lal_proc_factory_destroy(factory);
    return status == LAL_PROC_STATUS_OK ? 0 : -1;
}

Check every returned status. The package examples cover setup, streaming and cleanup.

  • Layout: interleaved stereo, or one planar buffer with all left-channel samples followed by all right-channel samples. Copy mono audio into both channels.
  • Sample rate: any. The SDK resamples internally and returns audio at the input rate.
  • Processing: calls are synchronous. Run them on a worker thread, outside the audio callback.
  • Output: a call can return zero frames while the model collects input. Buffers belong to the instance. Copy any output you need before the next process, reset or destroy call.
  • Lifecycle: one calling thread per instance. Mark the last block, then reset for a new stream. Destroy the instance before its factory.
  • Parallel streams: several instances can run at once. Your hardware sets the limit.

The SDK is a shared library. Include the libraries with your app. Linux GPU builds need CUDA 12 and cuDNN 9 installed separately. Embedded builds require the chip vendor’s NPU driver.

Each package includes the license notices for its third-party components.

Questions About the SDK

How is the SDK priced?

Pricing depends on your project. The evaluation build is free, and we agree on commercial terms if you decide to license the SDK.

Do you use our audio to train your models?

No. The SDK processes audio locally and does not send it to LALAL.AI.

What hardware do we need to run the SDK?

The SDK runs on a CPU or on a GPU or NPU. On embedded boards, it uses the chip’s NPU. During evaluation, we confirm which features and modes your hardware supports.

What can we ship inside our product?

Under your license, you can ship the libraries your product needs to run. Headers, documentation and examples stay with your team.

How is the SDK different from the plugins and the API?

The plugins are ready-made tools that run inside a DAW or video editor. The SDK is a library your developers build into your own product. To process files in the cloud, use our web app or API.

Which languages does Speech Cleaner support?

It separates speech from other sounds and does not depend on the language.

What Are You Building?

Tell us about your project and ask for a free evaluation build to test with your own audio.

Request SDK Access
Cookies

For magic to happen, we use cookies. Read our Privacy Policy to learn more.

Please wait...

Your payment is now being processed by PayPal.It usually takes a few minutes.

Your payment is still being processed by Paypal.

You can see the payment status in your profile.