Open source · MIT · Plain JavaScript

Libs

Small, dependency-free JavaScript audio libraries we built for our own apps and published under the MIT license. Each one has a write-up, a live demo and a download.

  1. Library

    audioblur.js: a Low-CPU Multiband Noise Gate for Voice, in Plain JavaScript

    A three-band noise gate that takes the hiss and room noise between the words down 12 to 16 dB, offline or live in an AudioWorklet. About 15 times less CPU than the RNNoise WebAssembly build we measured, because it is a gate and not a neural network: an alternative to RNNoise, not a replacement. MIT licensed.

  2. Library

    radiogrit.js: an AM/FM Radio Simulator in Plain JavaScript

    Mains hum, heterodyne whistles, skywave fades, lightning static, picket-fence nulls and stereo collapse: make any audio sound like it came off a real AM or FM radio. MIT licensed, deterministic, with spectrograms and figures for every ingredient.

  3. Library

    gamedac.js: Game Console Audio, Read and Written in Plain JavaScript

    PlayStation, GameCube, Dreamcast and ADX audio formats, with encoders as well as decoders, in one small JavaScript file under the MIT licence — and the six bugs that checking against vgmstream found in our first version.

  4. Library

    micromp2.js: an MP2 Audio Encoder in Plain JavaScript

    MP2 is the format of digital radio and broadcast audio, and browsers can't encode it. We wrote an encoder and decoder in plain JavaScript and are releasing them under the MIT licence — with diagrams, measurements and what we have not tested.

  5. Library

    sbr-crystalizer.js: Artificially Adding Fidelity to Low-Quality Voice

    Phone-line and low-bitrate speech loses its top end and sounds dull. We wrote a small JavaScript library that finds the cutoff and rebuilds a plausible top end above it, and we are releasing it under the MIT licence — with diagrams, measurements and honest limits.

  6. Library

    microflac.js: a FLAC Encoder in Plain JavaScript

    Browsers can't encode FLAC, and the JavaScript options we found are the reference library compiled to WebAssembly. So we wrote one from scratch for BOiNK and are releasing it under the MIT licence — with the real numbers and the limits.