To plot audio, there are two options:

The downside of the later is that it only works with newer web-browsers If you are viewing this on Chrome, the WebAudio API will be used to produce a real-time spectral plot. If you are using Firefox or Safari you will only see the time domain plot. This page was tested with: