How do I get the error to stop in my console.log?
Cannot use 'new' with an expression whose type lacks a call or construct signature.
var audioContext = new window.AudioContext();
Is the the only way to do it?
var AudioContext = <any>window.AudioContext || <any>window.webkitAudioContext;
var audioContext = new AudioContext();