Over the past nine years, the W3C (the folks who help maintain web standards) have developed the Web Audio API to help web developers work with audio. The Web Audio API is a very deep topic; we’ll hardly crack the surface in this essay. But it all starts with something called the AudioContext.
🔗 https://css-tricks.com/making-an-audio-waveform-visualizer-with-vanilla-javascript/