Function analyserPeakLevel

Basic audio analyser which reports the peak sound level.

analyserPeakLevel(level => {
console.log(level);
});

Note: Browers won't allow microphone access unless the call has come from a user-interaction, eg pointerup event handler.