Volume Detection for a Audio Stream

Recently I was tasked with developing a solution for detecting the volume level of a audio stream coming from Icecast. Our SAM Broadcaster streams would sometimes keep their mount on the Icecast server but would not play any audio. This is still being investigated at the time of writing this post. ¯\_(ツ)_/¯

So as a check I decided to write a small NodeJS script to periodically check the stream and…