Added dynamic variance threshold to audio test and visualization
Fixed bug where threshold was not being set properly