The Sound API provides functions to control the volume level for several sound types and to check whether a specified sound device type is connected. You can get the maximum volume level for system, notifications, alarm, media and so on. Also, you can change or get the current volume level.
What is modern audio API?
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.
How do I use Web Audio API?
To produce a sound using the Web Audio API, create one or more sound sources and connect them to the sound destination provided by the AudioContext instance. This connection doesn’t need to be direct, and can go through any number of intermediate AudioNodes which act as processing modules for the audio signal.