Background Noise Removal API


Here is how you remove background noise with a simple API. Please pick your favorite supported programming language. If it's not listed, no problem! You can just do a simple post request to the url with the file you want to fix as the body. See details here: Reference

To get started, first you need to install the API library. Should be pretty easy. If you want another language, please contact hdtruelson@gmail.com for help!

JavaScript
Python
C#
npm i @noisedestroyer/api

Make sure to get your API key at https://www.noisedestroyer.com/webapp/#/api-reference.

Then you'll want to copy this code which will set up the system. You need to make sure to either have a callback url, or a server. Note, there is a built in download function, so you don't have to worry about writing any hard or difficult code. It's so easy to remove background noise with Noise Destroyer! Have fun!

JavaScript
Python
C#
import { createWriteStream } from "fs";
import { removeBackgroundNoise, getStatus, download } from "@noisedestroyer/api";

const token = "get your token at www.noisedestroyer.com!";

async function main() {
    let { data, error } = await removeBackgroundNoise({
        token,
        data: "path to your file",
    });
    if (error) {
        console.error(error);
        return;
    }

    console.log(data);
    for(let i = 0; i < 500; ++i) {
        let { data: statusInfo, error } = await getStatus({
            token,
            guid: data.guid,
        });
        if (error) {
            console.error(error);
            return;
        }
        console.log(statusInfo);
        if(statusInfo.status == "DONE") {
            console.log("DONE");
            await download({ url: statusInfo.url, outputPath: "./out3.mp3" });
            break;
        }
        if(statusInfo.status == "FAILED") {
            break;
        }
        await new Promise(resolve => setTimeout(resolve, 1000));
    }
}
main();