audio

About

Open audio layer for JavaScript. Fast, portable, modular DSP.

  1. Performance first

    Plays while it decodes. Every figure is timed against FFmpeg and SoX, in the open.

  2. Modular

    300+ packages, one job each, composable: use one alone, or all of them through audio.

  3. Cross-runtime

    Browsers, Node, Deno and Bun, tested in CI. Nothing to compile.

    BrowsersNodeDenoBunLLRTworkerdPorfforJZ

  4. Tested & verified

    web-audio-api passes 100% of its W3C tests; audio is checked against 14 other tools, feature by feature.

  5. Designed for builders

    One chain from file to file, the same in a script, the CLI, the editor and MCP.

  6. No Web Audio, no FFmpeg

    Codecs and processing are its own, in JavaScript and WebAssembly. None of it needs Web Audio, none of it FFmpeg.

Roadmap

  1. Shipped

    Modules

    The core units, one job each: codecs, filters, analysis, synthesis. Web Audio outside the browser.

  2. Shipped

    Tools

    A CLI, an editor, an MCP server, and 24 tools in the browser.

  3. Now

    Apps

    Audio for Mac. A demo on every module's page. A VS Code plugin.

  4. Next

    Plugins

    Processors to try in the browser and download. A VST creator: JavaScript compiled to plugins, into the DAWs. Native speed with JZ.

  5. Later

    On top

    audio-lab, nodes to connect. pitch, a prosody editor. An enhancer. mel, a music language.

Contribute

The source is on GitHub, under audiojs: report what breaks, send a fix, add a codec or an edit.

github.com/audiojs

Sponsor

Maintenance is funded by sponsorship: compatibility fixes, issue triage, releases, tests and documentation (funding details).

github.com/sponsors/audiojs

Follow

Releases are posted on X; every package is on npm.

x.com/audio_js

In the wild

Built on audiojs by others. Each is credited to its maker, and comes off this list at its maker's request.

  • audio/ui

    Cécé Lucien Loua, Ouest Labs

    Audio UI components for the web: knobs, faders, meters, waveforms, timelines, piano rolls. Its engine runs @audio dynamics, filters, reverbs and effects in an AudioWorklet.

    github.com/ouestlabs/audio-ui, MIT

FAQ

How is it different from the Web Audio API?

Audio.js is platform independent stack with own DSP.

See web-audio-api

Does it need ffmpeg or native addons?

No FFmpeg: codecs and DSP are JavaScript and WebAssembly. In Node, the speaker and the microphone use one small addon, prebuilt for macOS, Linux and Windows. Nothing compiles at install.

Is it as fast as FFmpeg or SoX?

Not as fast as FFmpeg yet: FFmpeg wins four of the six timed against it. Ahead of SoX in four of five.

10-minute fileaudioFFmpegSoX
WAV decode246 ms73 ms50 ms
MP3 decode306 ms484 ms–
LUFS229 ms336 ms–
Peak normalize405 ms–555 ms
Resample to 48 kHz450 ms292 ms1.04 s
Time stretch 0.8×3.09 s665 ms5.82 s
Pitch shift +2 st2.83 s821 ms6.02 s

How it was measured, 2026-11. Shorter is faster.

How does it compare to Essentia, librosa or Tone.js?
audioedit, analyze, play, record
pydubhigh-level edit: slice, fade, normalize
librosamusic analysis
aubiopitch, onset, beat, MFCC
Essentiamusic analysis, 240+ algorithms
Pedalboardeffects, VST hosting
Tone.js, Howlerplay in a page
SoXcommand-line batch DSP
FFmpegcommand-line multimedia
Audacitydesktop editor

See comparison

How big is it?
In a page155.5 KB gzipped; codecs load on first use
One package@audio/decode-wav: 24 KB
All of itnpm i audio: 16.6 MB, the 24 decoders and 14 encoders in it, nothing compiled
For scaleFFmpeg in WebAssembly, @ffmpeg/core: 64.7 MB

Sizes unpacked, as npm states them, 26 Nov 2026.

What is the licence?
MITaudio and most packages
GPL-2.0the AAC, AC-3 and DTS decoders
LGPLa few others, MP3 among them

A decoder keeps the licence of the code it is built from. Each package’s page states its own.