Media and documents · API

Web Audio API

A browser feature for generating, processing and analysing sound in real time, used for games, music tools, audio visualisers and voice apps.

Video and audio · Free · updated

How it works

Everything happens inside an AudioContext, where you connect nodes into a graph: sources (an oscillator, a decoded sound file, a microphone stream), processing nodes (volume, filters, delay, reverb, stereo panning, compression) and a destination, usually the speakers. An AnalyserNode exposes frequency and waveform data for visualisers, and AudioWorklet runs custom processing code on the audio thread, so busy page scripts do not interrupt the sound.

It is lower level than an audio element, which is enough for simply playing a file. Browsers only let a page start sound after a user gesture such as a click, so an AudioContext begins suspended until then. Libraries such as Tone.js (music and synthesis) and Howler.js (game and interface sounds) build on it.

Web Audio API pricing

Free

Free; it is part of the browser.

Approximate, checked September 2026.What the other tools cost

More in Media and documents

Video and audio

All 14 Media and documents terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.