Web Audio API is an advanced audio processing API directly available inside browser that helps to create, manipulate and analyze audio data using JavaScript.
Web Audio API is a powerful model completely different from the HTML5 <audio>
element that helps to synthesis audio using JavaScript in browser.
The API uses Modular Routing architecture to create simple or complex mixings and effects. It comes with a low-latency precise-timing model that enables to schedule events at specific times in the future which is very crucial for musical applications.
It also has integration points with <audio>
and <video>
elements.
Some of the powerful features provided by the API are:
- Processing live audio input
- Integration with WebRTC
- Spatialized audio
- Convolution engine to create effects in Concert, Cathedral, Tunnel etc.
- Dynamics Compression
- Real-time time-domain and frequency analysis
- Filters and Oscillators
References:
- https://www.w3.org/TR/webaudio/
- http://webaudioapi.com/
- https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API
Demos: