Web Audio API

Modern web browsers support the Web Audio API, which allows us to create and manipulate audio streams. Audio Context The AudioContext object is the main entry point for the Web Audio API. Audio Nodes and Chains The AudioNode interface is the base interface for all nodes in the audio processing graph. We can connect audio nodes together to create a chain of nodes. For example, we can start with the OscillatorNode to generate a sine wave, and then connect it to the GainNode to control the volume of the sound, and then connect it to the DestinationNode to play the sound to the speakers (or any other output device connected to the computer). ...