Web Audio API - Web APIs | MDN
The Web Audio API provides a powerful and versatile system for controlling audio on the Web, allowing developers to choose audio sources, add effects to audio, create audio visualizations, apply spatial effects (such as panning) and much more. The Web Audio API involves handling audio operations inside an audio context, and has been designed to allow modular routing.
https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API